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

SoNodeSensor — sensor class that can be attached to Inventor nodes

Description

       Node  sensors  detect changes to nodes, calling a callback function whenever any field of the node or, if
       the node is a group node, any children of the node change.

Inherits From

       SoSensor > SoDelayQueueSensor > SoDataSensor > SoNodeSensor

Methods

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

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

     voidattach(SoNode*node)voiddetach()SoNode*getAttachedNode()const
          The  attach()  method  makes  this  sensor  detect  changes  to  the  given  node. The detach() method
          unschedules this sensor (if it is scheduled) and makes it ignore  changes  to  the  scene  graph.  The
          getAttachedNode()  method  returns the node that this sensor is sensing, or NULL if it is not attached
          to any node.

Name

       SoNodeSensor — sensor class that can be attached to Inventor nodes

See Also

SoFieldSensor,SoPathSensor,SoDataSensorSoNodeSensor(3IV)()

Synopsis

#include<Inventor/sensors/SoNodeSensor.h>

          Methods from class SoNodeSensor:

                         SoNodeSensor()SoNodeSensor(SoSensorCB*func,void*data)~SoNodeSensor()voidattach(SoNode*node)voiddetach()SoNode*getAttachedNode()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