Open Inventor Reference
SoNodeSensor Class Reference

Sensor class that can be attached to Inventor nodes. More...

#include <Inventor/sensors/SoNodeSensor.h>

Inheritance diagram for SoNodeSensor:
SoDataSensor SoDelayQueueSensor SoSensor

List of all members.

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.
SoNodegetAttachedNode () const
 Returns the node that this sensor is sensing, or NULL if it is not attached to any node.

Detailed 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.

See Also
SoFieldSensor, SoPathSensor, SoDataSensor

Definition at line 77 of file SoNodeSensor.h.


Constructor & Destructor Documentation

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]

Member Function Documentation

void SoNodeSensor::attach ( SoNode node)
void SoNodeSensor::detach ( )
SoNode* SoNodeSensor::getAttachedNode ( ) const [inline]

Definition at line 102 of file SoNodeSensor.h.


The documentation for this class was generated from the following file: