logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoPathSensor — sensor class that can be attached to Inventor paths

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.

Inherits From

       SoSensor > SoDelayQueueSensor > SoDataSensor > SoPathSensor

Methods

SoPathSensor()SoPathSensor(SoSensorCB*func,void*data)
          Creation methods. The second method takes the callback function and data to be called when the  sensor
          is triggered.

                         ~SoPathSensor()
          Destroys the sensor, freeing up any memory associated with it after unscheduling it.

     voidattach(SoPath*path)voiddetach()SoPath*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.

Name

       SoPathSensor — sensor class that can be attached to Inventor paths

See Also

SoNodeSensor,SoPathSensor,SoDataSensorSoPathSensor(3IV)()

Synopsis

#include<Inventor/sensors/SoPathSensor.h>

          Methods from class SoPathSensor:

                         SoPathSensor()SoPathSensor(SoSensorCB*func,void*data)~SoPathSensor()voidattach(SoPath*path)voiddetach()SoPath*getAttachedPath()const

          Methods from class SoDataSensor:

     voidsetDeleteCallback(SoSensorCB*function,void*data)SoNode*getTriggerNode()constSoField*getTriggerField()constSoPath*getTriggerPath()constvoidsetTriggerPathFlag(SbBoolflag)SbBoolgetTriggerPathFlag()const

          Methods from class SoDelayQueueSensor:

     voidsetPriority(uint32_tpri)uint32_tgetPriority()staticuint32_tgetDefaultPriority()virtualvoidschedule()virtualvoidunschedule()virtualSbBoolisScheduled()

          Methods from class SoSensor:

     voidsetFunction(SoSensorCB*callbackFunction)SoSensorCB*getFunction()constvoidsetData(void*callbackData)void*getData()const

See Also