Inheritance diagram for ValueSensor:

Public Member Functions | |
| virtual bool | handleEvent (const Event &event) |
| Callback function that is implemented by the callee. | |
Authoring Interface:
ValueSensor {
// from DeviceSensorNode
field SFBoolean enabled true
field SFURL device ""
field MFString valueOfInterest [ ]
eventOut MFFloat value
}
| enabled | specifies whether this node will emit any events. Default value: true | |
| device | provides a string identifying the device this sensor is listening to. Default value: "" | |
| valueOfInterest | specifies a list of one or more values from the selected device that will cause the value eventOut to fire. If more than one value is given this node will fire when any of those values change. The value event will contain an array containing the most recent value for each element specified in the valueOfInterest array, in the order given. Each element of this array must be a single recognized value enumerant, such as "MOUSEX" or "JOYSTICKY". Default value: [ ] | |
| value | emits an array of floating point values. Each element is the most recent value received from the valuator specified in the valueOfInterest array. |
Functionality:
...
The valuator string constants defined by default include:
| "MOUSEX" | Mouse X location |
| "MOUSEY" | Mouse Y location |
|
|
Callback function that is implemented by the callee.
Reimplemented from DeviceSensorNode. |
1.4.3