Debian Codegraph @

doc/man/man3/ivm/sensors/SoPathSensor.ivm

raw
1 NAME SoPathSensor SoPathSens "" {
2 sensor class that can be attached to Inventor paths
3 }
4
5 INCLUDE sensors/SoPathSensor.h
6
7 DESC {
8 Path sensors detect changes to paths, calling a callback function
9 whenever the path or any node in the path changes. The definition of
10 "in the path" is the same as the definition used when applying an
11 action to the path \(em any node that can possibly affect the node at the
12 end of the path chain is considered in the path. See the \cSoPath\.
13 manual page for more information on paths.
14 }
15
16 METHOD "" SoPathSensor() {}
17 METHOD CreateCB SoPathSensor(SoSensorCB *func, void *data) {
18 Creation methods. The second method takes the callback function and
19 data to be called when the sensor is triggered.
20 }
21 METHOD "" ~SoPathSensor() {
22 Destroys the sensor, freeing up any memory associated with it after
23 unscheduling it.
24 }
25
26 METHOD "" void attach(SoPath *path) {}
27 METHOD "" void detach() {}
28 METHOD "" SoPath * getAttachedPath() const {
29 The \mattach()\. method makes this sensor detect changes to the given
30 path. The \mdetach()\. method unschedules this sensor (if it is
31 scheduled) and makes it ignore changes to the scene graph. The
32 \mgetAttachedPath()\. method returns the path that this sensor is
33 sensing, or NULL if it is not attached to any path.
34 }
35
36 ALSO { SoNodeSensor, SoPathSensor, SoDataSensor }