50#ifndef _SO_PATH_SENSOR_
51#define _SO_PATH_SENSOR_
53#include <Inventor/SoPath.h>
54#include <Inventor/sensors/SoDataSensor.h>
116 virtual void notify(SoNotList *list);
123 std::vector<SoNode*> m_forwardTraversedHeads;
126 virtual void dyingReference();
129 void detach(
SoNode* head,
SoPath* path,
const std::vector<SoNode*>& forwardTraversedHeads);
Abstract base class for sensors attached to parts of a scene.
Path that allows access to hidden children.
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.
Sensor class that can be attached to Open Inventor paths.
SoPathSensor()
Default constructor.
SoPath * getAttachedPath() const
Returns the path that this sensor is sensing, or NULL if it is not attached to any path.
SoPathSensor(SoSensorCB *func, void *data)
Constructor that takes the callback function and data to be called when the sensor is triggered.
void detach()
Unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph.
virtual ~SoPathSensor()
Destroys the sensor, freeing up any memory associated with it after unscheduling it.
void attach(SoPath *path)
Makes this sensor detect changes to the given path.
void SoSensorCB(void *data, SoSensor *sensor)
This typedef defines the calling sequence for all callbacks from sensors.