1SoFieldSensor(3IV)()                                      SoFieldSensor(3IV)()
2
3
4

NAME

6       SoFieldSensor — sensor class that can be attached to Inventor fields
7

INHERITS FROM

9       SoSensor > SoDelayQueueSensor > SoDataSensor > SoFieldSensor
10

SYNOPSIS

12       #include <Inventor/sensors/SoFieldSensor.h>
13
14          Methods from class SoFieldSensor:
15
16                         SoFieldSensor()
17                         SoFieldSensor(SoSensorCB *func, void *data)
18                         ~SoFieldSensor()
19     void                attach(SoField *field)
20     void                detach()
21     SoField *           getAttachedField() 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       Field  sensors  detect  changes  to fields, calling a callback function
51       whenever the field changes. The field may be part of a node,  an  input
52       of an engine, or a global field.
53

METHODS

55                         SoFieldSensor()
56                         SoFieldSensor(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                         ~SoFieldSensor()
61          Destroys the sensor, freeing up any memory associated with it  after
62          unscheduling it.
63
64     void                attach(SoField *field)
65     void                detach()
66     SoField *           getAttachedField() const
67          The  attach()  method  makes this sensor detect changes to the given
68          field. The detach() method unschedules this sensor (if it is  sched‐
69          uled)  and  makes  it  ignore changes to the scene graph. The getAt‐
70          tachedField() method returns the field that this sensor is  sensing,
71          or NULL if it is not attached to any field.
72
73

SEE ALSO

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