SoFieldSensor — sensor class that can be attached to Inventor fields
Contents
Description
Field sensors detect changes to fields, calling a callback function whenever the field changes. The field
may be part of a node, an input of an engine, or a global field.
Inherits From
SoSensor > SoDelayQueueSensor > SoDataSensor > SoFieldSensor
Methods
SoFieldSensor()SoFieldSensor(SoSensorCB*func,void*data)
Creation methods. The second method takes the callback function and data to be called when the sensor
is triggered.
~SoFieldSensor()
Destroys the sensor, freeing up any memory associated with it after unscheduling it.
voidattach(SoField*field)voiddetach()SoField*getAttachedField()const
The attach() method makes this sensor detect changes to the given field. The detach() method
unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph. The
getAttachedField() method returns the field that this sensor is sensing, or NULL if it is not attached
to any field.
Name
SoFieldSensor — sensor class that can be attached to Inventor fields
See Also
SoNodeSensor,SoPathSensor,SoDataSensorSoFieldSensor(3IV)()
Synopsis
#include<Inventor/sensors/SoFieldSensor.h>
Methods from class SoFieldSensor:
SoFieldSensor()SoFieldSensor(SoSensorCB*func,void*data)~SoFieldSensor()voidattach(SoField*field)voiddetach()SoField*getAttachedField()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