Debian Codegraph @

doc/man/man3/ivm/sensors/SoSensor.ivm

raw
1 NAME SoSensor SoSens "" { abstract base class for Inventor sensors }
2 INCLUDE sensors/SoSensor.h
3 DESC {
4 Sensors detect changes either to time or to Inventor objects in a
5 scene graph, and call a user-defined callback function. Sensors are
6 \escheduled\. when the thing they are attached to changes, and sometime
7 after they are scheduled they are \etriggered\., calling the user's
8 callback function.
9 }
10 TYPEDEF void SoSensorCB "(void *data, SoSensor *sensor)"
11
12 METHOD setFunc void setFunction(SoSensorCB *callbackFunction) {
13 Sets the callback function that is called when the sensor is
14 triggered. The function must take two arguments \(em user-supplied
15 callback data (of type void *) and a pointer to the sensor that is
16 triggering the function (of type SoSensor *).
17 }
18 METHOD getFunc SoSensorCB * getFunction() const {
19 Returns the callback function that will be called when the sensor is
20 triggered.
21 }
22 METHOD "" void setData(void *callbackData) {
23 Sets the callback data passed to the callback function.
24 }
25 METHOD "" void * getData() const {
26 Returns the user-supplied pointer that will be passed to the callback
27 function.
28 }
29 ALSO { SoAlarmSensor, SoDataSensor, SoFieldSensor, SoIdleSensor,
30 SoNodeSensor, SoPathSensor, SoSensorManager }
31