Home | Download | Screen shots | Discussion | Documentation |
---|
Inheritance diagram for openvrml::vrml97_node::proximity_sensor_node:
Public Member Functions | |
proximity_sensor_node (const node_type &type, const scope_ptr &scope) | |
Construct. | |
virtual | ~proximity_sensor_node () throw () |
Destroy. | |
virtual void | render (openvrml::viewer &viewer, rendering_context context) |
Render the node: generate proximity events. | |
Private Member Functions | |
void | process_set_center (const field_value &value, double timestamp) throw (std::bad_cast) |
set_center eventIn handler. | |
void | process_set_size (const field_value &value, double timestamp) throw (std::bad_cast) |
set_size eventIn handler. | |
void | process_set_enabled (const field_value &value, double timestamp) throw (std::bad_cast) |
set_enabled eventIn handler. | |
Private Attributes | |
sfvec3f | center |
center exposedField. | |
sfbool | enabled |
enabled exposedField. | |
sfvec3f | size |
size exposedField. | |
sfbool | active |
isActive eventOut. | |
sfvec3f | position |
position_changed eventOut. | |
sfrotation | orientation |
orientation_changed eventOut. | |
sftime | enterTime |
enterTime eventOut. | |
sftime | exitTime |
exitTime eventOut. | |
Friends | |
class | proximity_sensor_class |
Class object for ProximitySensor instances. |
|
Construct.
|
|
Destroy.
|
|
set_center eventIn handler.
|
|
set_enabled eventIn handler.
|
|
set_size eventIn handler.
|
|
Render the node: generate proximity events. If necessary, events prior to the current time are generated due to interpolation of enterTimes and exitTimes. The timestamp should never be increased. This is in a render() method since the it needs the viewer position with respect to the local coordinate system. Could do this with Node::inverseTransform(double [4][4]) now... The positions and times are not interpolated to report the exact place and time of entries and exits from the sensor regions as required by the spec, since that would require the last viewer position to be stored in the node, which is problematic in the presence of DEF/USEd nodes... I suppose the scene could keep the last viewer position in the global coordinate system and it could be transformed all the way down the scenegraph, but that sounds painful.
Reimplemented from openvrml::node. |
|
Class object for ProximitySensor instances.
|
|
isActive eventOut.
|
|
center exposedField.
|
|
enabled exposedField.
|
|
enterTime eventOut.
|
|
exitTime eventOut.
|
|
orientation_changed eventOut.
|
|
position_changed eventOut.
|
|
size exposedField.
|