Open Inventor Reference
|
Sensor class that can be attached to Inventor nodes. More...
#include <Inventor/sensors/SoNodeSensor.h>
Public Member Functions | |
SoNodeSensor () | |
Creation methods. | |
SoNodeSensor (SoSensorCB *func, void *data) | |
Creation methods. | |
virtual | ~SoNodeSensor () |
Destroys the sensor, freeing up any memory associated with it after unscheduling it. | |
void | attach (SoNode *node) |
Makes this sensor detect changes to the given node. | |
void | detach () |
Unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph. | |
SoNode * | getAttachedNode () const |
Returns the node that this sensor is sensing, or NULL if it is not attached to any node. |
Node sensors detect changes to nodes, calling a callback function whenever any field of the node or, if the node is a group node, any children of the node change.
Definition at line 77 of file SoNodeSensor.h.
SoNodeSensor::SoNodeSensor | ( | ) |
The second method takes the callback function and data to be called when the sensor is triggered.
SoNodeSensor::SoNodeSensor | ( | SoSensorCB * | func, |
void * | data | ||
) |
The second method takes the callback function and data to be called when the sensor is triggered.
virtual SoNodeSensor::~SoNodeSensor | ( | ) | [virtual] |
void SoNodeSensor::attach | ( | SoNode * | node | ) |
void SoNodeSensor::detach | ( | ) |
SoNode* SoNodeSensor::getAttachedNode | ( | ) | const [inline] |
Definition at line 102 of file SoNodeSensor.h.