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

SoSensor — abstract base class for Inventor sensors

Description

       Sensors  detect  changes  either to time or to Inventor objects in a scene graph, and call a user-defined
       callback function. Sensors are scheduled when the thing they are attached to changes, and sometime  after
       they are scheduled they are triggered, calling the user's callback function.

Inherits From

       SoSensor

Methods

voidsetFunction(SoSensorCB*callbackFunction)
          Sets  the  callback  function  that is called when the sensor is triggered. The function must take two
          arguments — user-supplied callback data (of type  void  *)  and  a  pointer  to  the  sensor  that  is
          triggering the function (of type SoSensor *).

     SoSensorCB*getFunction()const
          Returns the callback function that will be called when the sensor is triggered.

     voidsetData(void*callbackData)
          Sets the callback data passed to the callback function.

     void*getData()const
          Returns the user-supplied pointer that will be passed to the callback function.

Name

       SoSensor — abstract base class for Inventor sensors

See Also

SoAlarmSensor,SoDataSensor,SoFieldSensor,SoIdleSensor,SoNodeSensor,SoPathSensor,SoSensorManagerSoSensor(3IV)()

Synopsis

#include<Inventor/sensors/SoSensor.h>typedefvoidSoSensorCB(void*data,SoSensor*sensor)

          Methods from class SoSensor:

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

See Also