SoSensor(3IV)NAMESoSensor (SoSens) - abstract base class for Inventor sensors
INHERITS FROMSoSensorSYNOPSIS
#include <Inventor_c/sensors/SoSensor.h>
typedef void SoSensorCB(void *data, SoSensor *sensor)
typedef SoSensor SoSens
Functions from class SoSensor:
void SoSensSetFunc(SoSens *this, SoSensorCB
*callbackFunction)
SoSensorCB * SoSensGetFunc(const SoSens *this)
void SoSensSetData(SoSens *this, void *callbackData)
void * SoSensGetData(const SoSens *this)
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.
FUNCTIONS
void SoSensSetFunc(SoSens *this, 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 * SoSensGetFunc(const SoSens *this)
Returns the callback function that will be called when the sensor is
triggered.
void SoSensSetData(SoSens *this, void *callbackData)
Sets the callback data passed to the callback function.
void * SoSensGetData(const SoSens *this)
Returns the user-supplied pointer that will be passed to the
callback function.
SEE ALSO
SoAlarmSensor, SoDataSensor, SoFieldSensor, SoIdleSensor, SoNodeSensor,
SoPathSensor, SoSensorManager
Page 1