| Home | Download | Screen shots | Discussion | Documentation |
|---|
Public Member Functions | |
| sphere_sensor_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope) | |
| Construct. | |
| virtual | ~sphere_sensor_node () throw () |
| Destroy. | |
| virtual sphere_sensor_node * | to_sphere_sensor () const |
| Cast to a sphere_sensor_node. | |
| void | activate (double timeStamp, bool isActive, double *p) |
| Activate or deactivate the sphere_sensor_node. | |
| bool | isEnabled () const throw () |
| Determine whether the SphereSensor is enabled. | |
Private Member Functions | |
| virtual void | do_render_child (openvrml::viewer &viewer, rendering_context context) |
| Render the node. | |
Private Attributes | |
| exposedfield< sfbool > | auto_offset_ |
| autoOffset exposedField. | |
| exposedfield< sfbool > | enabled_ |
| enabled exposedField. | |
| exposedfield< sfrotation > | offset_ |
| offset exposedField. | |
| sfbool | is_active_ |
| isActive eventOut value. | |
| sfbool_emitter | is_active_emitter_ |
| isActive eventOut emitter. | |
| sfrotation | rotation_changed_ |
| rotation_changed eventOut value. | |
| sfrotation_emitter | rotation_changed_emitter_ |
| rotation_changed eventOut emitter. | |
| sfvec3f | track_point_changed_ |
| trackPoint_changed eventOut. | |
| sfvec3f_emitter | track_point_changed_emitter_ |
| trackPoint_changed eventOut emitter. | |
| sfvec3f | activationPoint |
| The start point of a drag operation. | |
| sfvec3f | centerPoint |
| Center point. | |
| mat4f | modelview |
| Modelview matrix. | |
Friends | |
| class | sphere_sensor_class |
| Class object for SphereSensor instances. | |
| openvrml::vrml97_node::sphere_sensor_node::sphere_sensor_node | ( | const node_type & | type, | |
| const boost::shared_ptr< openvrml::scope > & | scope | |||
| ) |
| openvrml::vrml97_node::sphere_sensor_node::~sphere_sensor_node | ( | ) | throw () [virtual] |
Destroy.
| sphere_sensor_node * openvrml::vrml97_node::sphere_sensor_node::to_sphere_sensor | ( | ) | const [virtual] |
| void openvrml::vrml97_node::sphere_sensor_node::activate | ( | double | timestamp, | |
| bool | isActive, | |||
| double * | p | |||
| ) |
Activate or deactivate the sphere_sensor_node.
Activating a drag sensor means that the pointing device button has been depressed and a drag operation has been initiated. The sensor is deactivated when the button is released at the end of the operation.
| timestamp | the current time. | |
| isActive | true if the drag operation is in progress; false otherwise. | |
| p | the pointing device position. |
| bool openvrml::vrml97_node::sphere_sensor_node::isEnabled | ( | ) | const throw () |
Determine whether the SphereSensor is enabled.
true if the SphereSensor is enabled; false otherwise. | void openvrml::vrml97_node::sphere_sensor_node::do_render_child | ( | openvrml::viewer & | viewer, | |
| rendering_context | context | |||
| ) | [private, virtual] |
Render the node.
| viewer | a Viewer. | |
| context | a rendering context. |
Reimplemented from openvrml::child_node.
openvrml::vrml97_node::sphere_sensor_node::sphere_sensor_class [friend] |
Class object for SphereSensor instances.
autoOffset exposedField.
enabled exposedField.
offset exposedField.
isActive eventOut value.
isActive eventOut emitter.
rotation_changed eventOut value.
rotation_changed eventOut emitter.
trackPoint_changed eventOut.
trackPoint_changed eventOut emitter.
The start point of a drag operation.
Center point.
Modelview matrix.