#include <Inventor/sensors/SoPathSensor.h>
Inheritance diagram for SoPathSensor::
Public Methods | |
SoPathSensor (void) | |
SoPathSensor (SoSensorCB *func, void *data) | |
virtual | ~SoPathSensor (void) |
void | attach (SoPath *path) |
void | detach (void) |
SoPath * | getAttachedPath (void) const |
Protected Methods | |
void | notify (SoNotList *l) |
If you need to know when a path changes (i.e. nodes in the path has been removed, or new nodes is added), use this sensor to get a notification.
|
Default constructor. Use setFunction() to set up a callback function later. |
|
Constructor taking as parameters the sensor callback function and the userdata which will be passed the callback.
|
|
Destructor. |
|
Attach sensor to a path. Whenever the path changes, the sensor will be triggered and call the callback function.
|
|
Detach sensor from path. As long as an SoPathSensor is detached, it will never invoke its callback function.
|
|
Returns a pointer to the path connected to the sensor.
|
|
Called from entity we are monitoring when it changes. If this is an immediate sensor, the field and node (if any) causing the change will be stored and can be fetched by getTriggerField() and getTriggerNode(). If the triggerpath flag has been set, the path down to the node is also found and stored for later retrieval by getTriggerPath().
Reimplemented from SoDataSensor. |