man SoPathSensor () - sensor class that can be attached to Inventor paths

NAME

SoPathSensor - sensor class that can be attached to Inventor paths

INHERITS FROM

SoSensor > SoDelayQueueSensor > SoDataSensor > SoPathSensor

SYNOPSIS

#include <Inventor/sensors/SoPathSensor.h> Methods from class SoPathSensor: c } c } SoPathSensor()

c } c } SoPathSensor(SoSensorCB *func, void *data)

c } c } ~SoPathSensor()

c } c } attach(SoPath *path)

c } c } detach()

c } c } getAttachedPath() const Methods from class SoDataSensor: c } c } setDeleteCallback(SoSensorCB *function, void *data)

c } c } getTriggerNode() const

c } c } getTriggerField() const

c } c } getTriggerPath() const

c } c } setTriggerPathFlag(SbBool flag)

c } c } getTriggerPathFlag() const Methods from class SoDelayQueueSensor: c } c } setPriority(uint32_t pri)

c } c } getPriority()

c } c } getDefaultPriority()

c } c } schedule()

c } c } unschedule()

c } c } isScheduled() Methods from class SoSensor: c } c } setFunction(SoSensorCB *callbackFunction)

c } c } getFunction() const

c } c } setData(void *callbackData)

c } c } getData() const

DESCRIPTION

Path sensors detect changes to paths, calling a callback function whenever the path or any node in the path changes. The definition of "in the path" is the same as the definition used when applying an action to the path - any node that can possibly affect the node at the end of the path chain is considered in the path. See the SoPath manual page for more information on paths.

METHODS

c } c } SoPathSensor()

c } c } SoPathSensor(SoSensorCB *func, void *data)

Creation methods. The second method takes the callback function and data to be called when the sensor is triggered. c } c } ~SoPathSensor()

Destroys the sensor, freeing up any memory associated with it after unscheduling it. c } c } attach(SoPath *path)

c } c } detach()

c } c } getAttachedPath() const

The attach() method makes this sensor detect changes to the given path. The detach() method unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph. The getAttachedPath() method returns the path that this sensor is sensing, or NULL if it is not attached to any path.

SEE ALSO

SoNodeSensor, SoPathSensor, SoDataSensor