58#ifndef _SO_DATA_SENSOR_
59#define _SO_DATA_SENSOR_
106 { deleteFunc = f; deleteData = data; }
#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.
Base class for all nodes, paths, and engines.
Abstract base class for sensors attached to parts of a scene.
virtual void unschedule()
Override unschedule() to reset trigNode and trigPath.
SoDataSensor(SoSensorCB *func, void *data)
SoDataSensor()
Constructors. The second form takes standard callback function and data.
SoField * getTriggerField() const
Like getTriggerNode(), but returns the field that started notification (NULL if the sensor isn't prio...
virtual ~SoDataSensor()
Destructor.
virtual void dyingReference()=0
This is called when the base (path, field, node, whatever) is deleted.
virtual void notify(SoNotList *list)
Propagates modification notification through an instance.
virtual void trigger()
Override trigger to reset trigNode and trigPath, if necessary.
bool getTriggerPathFlag() const
SoPath * getTriggerPath() const
Returns the path from the node to which this sensor is attached down to the child node that changed.
SoNode * getTriggerNode() const
If this is a priority 0 data sensor, returns the node/field that was modified that caused this sensor...
void invokeDeleteCallback()
Invokes the delete callback.
void setTriggerPathFlag(bool flag)
void setDeleteCallback(SoSensorCB *f, void *data=NULL)
Sets a callback that will be called when the object the sensor is sensing is deleted.
Abstract base class for sensors not dependent on time.
Base class for all fields.
Abstract base class for all database nodes.
Holds a list of SoNotRec notification records.
Path that points to a list of hierarchical nodes.