57#ifndef _SO_NODE_SENSOR_
58#define _SO_NODE_SENSOR_
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
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.
virtual void dyingReference()=0
This is called when the base (path, field, node, whatever) is deleted.
Sensor class that can be attached to 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()
Creation methods.
void attach(SoNode *node)
Makes this sensor detect changes to the given node.
SoNodeSensor(SoSensorCB *func, void *data)
Creation methods.
Abstract base class for all database nodes.