51#ifndef _SO_NODE_SENSOR_
52#define _SO_NODE_SENSOR_
141 virtual void notify(SoNotList *list);
144 virtual void dyingReference();
void SoSensorCB(void *data, SoSensor *sensor)
This typedef defines the calling sequence for all callbacks from sensors.
Abstract base class for sensors attached to parts of a scene.
Abstract base class for all database nodes.
Sensor class that can be attached to Open Inventor nodes.
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.
virtual ~SoNodeSensor()
Destroys the sensor, freeing up any memory associated with it after unscheduling it.
SoNodeSensor()
Default constructor.
void attach(SoNode *node)
Makes this sensor detect changes to the given node.
SoNodeSensor(SoSensorCB *func, void *data)
Constructor that takes the callback function and data to be called when the sensor is triggered.