1SoNodeSensor(3IV)()                                        SoNodeSensor(3IV)()
2
3
4

NAME

6       SoNodeSensor — sensor class that can be attached to Inventor nodes
7

INHERITS FROM

9       SoSensor > SoDelayQueueSensor > SoDataSensor > SoNodeSensor
10

SYNOPSIS

12       #include <Inventor/sensors/SoNodeSensor.h>
13
14          Methods from class SoNodeSensor:
15
16                         SoNodeSensor()
17                         SoNodeSensor(SoSensorCB *func, void *data)
18                         ~SoNodeSensor()
19     void                attach(SoNode *node)
20     void                detach()
21     SoNode *            getAttachedNode() const
22
23          Methods from class SoDataSensor:
24
25     void                setDeleteCallback(SoSensorCB *function, void *data)
26     SoNode *            getTriggerNode() const
27     SoField *           getTriggerField() const
28     SoPath *            getTriggerPath() const
29     void                setTriggerPathFlag(SbBool flag)
30     SbBool              getTriggerPathFlag() const
31
32          Methods from class SoDelayQueueSensor:
33
34     void                setPriority(uint32_t pri)
35     uint32_t            getPriority()
36     static uint32_t     getDefaultPriority()
37     virtual void        schedule()
38     virtual void        unschedule()
39     virtual SbBool      isScheduled()
40
41          Methods from class SoSensor:
42
43     void                setFunction(SoSensorCB *callbackFunction)
44     SoSensorCB *        getFunction() const
45     void                setData(void *callbackData)
46     void *              getData() const
47
48

DESCRIPTION

50       Node sensors detect changes to nodes, calling a callback function when‐
51       ever any field of the node or, if the node is a group node,  any  chil‐
52       dren of the node change.
53

METHODS

55                         SoNodeSensor()
56                         SoNodeSensor(SoSensorCB *func, void *data)
57          Creation  methods. The second method takes the callback function and
58          data to be called when the sensor is triggered.
59
60                         ~SoNodeSensor()
61          Destroys the sensor, freeing up any memory associated with it  after
62          unscheduling it.
63
64     void                attach(SoNode *node)
65     void                detach()
66     SoNode *            getAttachedNode() const
67          The  attach()  method  makes this sensor detect changes to the given
68          node. The detach() method unschedules this sensor (if it  is  sched‐
69          uled)  and  makes  it  ignore changes to the scene graph. The getAt‐
70          tachedNode() method returns the node that this sensor is sensing, or
71          NULL if it is not attached to any node.
72
73

SEE ALSO

75       SoFieldSensor, SoPathSensor, SoDataSensor
76
77
78
79
80                                                           SoNodeSensor(3IV)()
Impressum