SoNodeSensor(3IV)
SoNodeSensor (SoNodeSens) - sensor class that can be attached to Inventor nodes
As shipped in IRIX 6.5.22. Added in IRIX 6.5.22.
NAME SoNodeSensor (SoNodeSens) - sensor class that can be attached to Inventor nodes INHERITS FROM SoSensor > SoDelayQueueSensor > SoDataSensor > SoNodeSensor SYNOPSIS #include <Inventor_c/sensors/SoNodeSensor.h> typedef SoNodeSensor SoNodeSens Functions from class SoNodeSensor: SoNodeSensor * SoNodeSensCreate() SoNodeSensor * SoNodeSensCreateCB(SoSensorCB *func, void *data) void SoNodeSensDelete(SoNodeSens *this) void SoNodeSensAttach(SoNodeSens *this, SoNode *node) void SoNodeSensDetach(SoNodeSens *this) SoNode * SoNodeSensGetAttachedNode(const SoNodeSens *this) Functions from class SoDataSensor: void SoNodeSensSetDelCB(SoNodeSens *this, SoSensorCB *function, void *data) SoNode * SoNodeSensGetTrigNode(const SoNodeSens *this) SoField * SoNodeSensGetTrigField(const SoNodeSens *this) SoPath * SoNodeSensGetTrigPath(const SoNodeSens *this) void SoNodeSensSetTrigPathFlag(SoNodeSens *this, SbBool flag) SbBool SoNodeSensGetTrigPathFlag(const SoNodeSens *this) Functions from class SoDelayQueueSensor: void SoNodeSensSetPri(SoNodeSens *this, uint32_t pri) uint32_t SoNodeSensGetPri(SoNodeSens *this) uint32_t SoNodeSensGetDefaultPriority() void SoNodeSensSched(SoNodeSens *this) void SoNodeSensUnsched(SoNodeSens *this) SbBool SoNodeSensIsSched(SoNodeSens *this) Functions from class SoSensor: void SoNodeSensSetFunc(SoNodeSens *this, SoSensorCB *callbackFunction) SoSensorCB * SoNodeSensGetFunc(const SoNodeSens *this) void SoNodeSensSetData(SoNodeSens *this, void *callbackData) void * SoNodeSensGetData(const SoNodeSens *this) DESCRIPTION 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. FUNCTIONS SoNodeSensor * SoNodeSensCreate() SoNodeSensor * SoNodeSensCreateCB(SoSensorCB *func, void *data) Creation methods. The second method takes the callback function and data to be called when the sensor is triggered. void SoNodeSensDelete(SoNodeSens *this) Destroys the sensor, freeing up any memory associated with it after unscheduling it. void SoNodeSensAttach(SoNodeSens *this, SoNode *node) void SoNodeSensDetach(SoNodeSens *this) SoNode * SoNodeSensGetAttachedNode(const SoNodeSens *this) The attach() method makes this sensor detect changes to the given node. The detach() method unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph. The getAttachedNode() method returns the node that this sensor is sensing, or NULL if it is not attached to any node. SEE ALSO SoFieldSensor, SoPathSensor, SoDataSensor