Debian Codegraph @

doc/man/man3/ivm/sensors/SoFieldSensor.ivm

raw
1 NAME SoFieldSensor SoFieldSens "" {
2 sensor class that can be attached to Inventor fields
3 }
4
5 INCLUDE sensors/SoFieldSensor.h
6
7 DESC {
8 Field sensors detect changes to fields, calling a callback function
9 whenever the field changes. The field may be part of a node, an input
10 of an engine, or a global field.
11 }
12
13 METHOD "" SoFieldSensor() {}
14 METHOD CreateCB SoFieldSensor(SoSensorCB *func, void *data) {
15 Creation methods. The second method takes the callback function and
16 data to be called when the sensor is triggered.
17 }
18 METHOD "" ~SoFieldSensor() {
19 Destroys the sensor, freeing up any memory associated with it after
20 unscheduling it.
21 }
22
23 METHOD "" void attach(SoField *field) {}
24 METHOD "" void detach() {}
25 METHOD "" SoField * getAttachedField() const {
26 The \mattach()\. method makes this sensor detect changes to the given
27 field. The \mdetach()\. method unschedules this sensor (if it is
28 scheduled) and makes it ignore changes to the scene graph. The
29 \mgetAttachedField()\. method returns the field that this sensor is
30 sensing, or NULL if it is not attached to any field.
31 }
32
33 ALSO { SoNodeSensor, SoPathSensor, SoDataSensor }