man SoNodeSensor () - sensor class that can be attached to Inventor nodes

NAME

SoNodeSensor - sensor class that can be attached to Inventor nodes

INHERITS FROM

SoSensor > SoDelayQueueSensor > SoDataSensor > SoNodeSensor

SYNOPSIS

#include <Inventor/sensors/SoNodeSensor.h> Methods from class SoNodeSensor: c } c } SoNodeSensor()

c } c } SoNodeSensor(SoSensorCB *func, void *data)

c } c } ~SoNodeSensor()

c } c } attach(SoNode *node)

c } c } detach()

c } c } getAttachedNode() const Methods from class SoDataSensor: c } c } setDeleteCallback(SoSensorCB *function, void *data)

c } c } getTriggerNode() const

c } c } getTriggerField() const

c } c } getTriggerPath() const

c } c } setTriggerPathFlag(SbBool flag)

c } c } getTriggerPathFlag() const Methods from class SoDelayQueueSensor: c } c } setPriority(uint32_t pri)

c } c } getPriority()

c } c } getDefaultPriority()

c } c } schedule()

c } c } unschedule()

c } c } isScheduled() Methods from class SoSensor: c } c } setFunction(SoSensorCB *callbackFunction)

c } c } getFunction() const

c } c } setData(void *callbackData)

c } c } getData() const

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.

METHODS

c } c } SoNodeSensor()

c } c } SoNodeSensor(SoSensorCB *func, void *data)

Creation methods. The second method takes the callback function and data to be called when the sensor is triggered. c } c } ~SoNodeSensor()

Destroys the sensor, freeing up any memory associated with it after unscheduling it. c } c } attach(SoNode *node)

c } c } detach()

c } c } getAttachedNode() const

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