Main Page   Modules   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

openvrml::vrml97_node::sphere_sensor_node Class Reference

SphereSensor node instances. More...

Inheritance diagram for openvrml::vrml97_node::sphere_sensor_node:

Inheritance graph
[legend]
Collaboration diagram for openvrml::vrml97_node::sphere_sensor_node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 sphere_sensor_node (const node_type &type, const scope_ptr &scope)
 Construct.

virtual ~sphere_sensor_node () throw ()
 Destroy.

virtual sphere_sensor_node * to_sphere_sensor () const
 Cast to a sphere_sensor_node.

virtual void render (openvrml::viewer &viewer, rendering_context context)
 Render the 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

void process_set_autoOffset (const field_value &value, double timestamp) throw (std::bad_cast)
 set_autoOffset eventIn handler.

void process_set_enabled (const field_value &value, double timestamp) throw (std::bad_cast)
 set_enabled eventIn handler.

void process_set_offset (const field_value &value, double timestamp) throw (std::bad_cast)
 set_offset eventIn handler.


Private Attributes

sfbool autoOffset
 autoOffset exposedField.

sfbool enabled
 enabled exposedField.

sfrotation offset
 offset exposedField.

sfbool active
 isActive eventOut.

sfrotation rotation
 rotation_changed eventOut.

sfvec3f trackPoint
 trackPoint_changed eventOut.

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.


Detailed Description

SphereSensor node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::sphere_sensor_node::sphere_sensor_node const node_type type,
const scope_ptr scope
 

Construct.

Parameters:
type the node_type associated with the node instance.
scope the scope to which the node belongs.

openvrml::vrml97_node::sphere_sensor_node::~sphere_sensor_node  )  throw () [virtual]
 

Destroy.


Member Function Documentation

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.

Parameters:
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.

Returns:
true if the SphereSensor is enabled; false otherwise.

void openvrml::vrml97_node::sphere_sensor_node::process_set_autoOffset const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_autoOffset eventIn handler.

Parameters:
value an sfbool value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfbool.

void openvrml::vrml97_node::sphere_sensor_node::process_set_enabled const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_enabled eventIn handler.

Parameters:
value an sfbool value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfbool.

void openvrml::vrml97_node::sphere_sensor_node::process_set_offset const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_offset eventIn handler.

Parameters:
value an sfrotation value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfrotation.

void openvrml::vrml97_node::sphere_sensor_node::render openvrml::viewer viewer,
rendering_context  context
[virtual]
 

Render the node.

Parameters:
viewer a Viewer.
context a rendering context.

Reimplemented from openvrml::node.

sphere_sensor_node * openvrml::vrml97_node::sphere_sensor_node::to_sphere_sensor  )  const [virtual]
 

Cast to a sphere_sensor_node.

Returns:
a pointer to the node.

Reimplemented from openvrml::node.


Friends And Related Function Documentation

openvrml::vrml97_node::sphere_sensor_node::sphere_sensor_class [friend]
 

Class object for SphereSensor instances.


Member Data Documentation

sfvec3f openvrml::vrml97_node::sphere_sensor_node::activationPoint [private]
 

The start point of a drag operation.

sfbool openvrml::vrml97_node::sphere_sensor_node::active [private]
 

isActive eventOut.

sfbool openvrml::vrml97_node::sphere_sensor_node::autoOffset [private]
 

autoOffset exposedField.

sfvec3f openvrml::vrml97_node::sphere_sensor_node::centerPoint [private]
 

Center point.

sfbool openvrml::vrml97_node::sphere_sensor_node::enabled [private]
 

enabled exposedField.

mat4f openvrml::vrml97_node::sphere_sensor_node::modelview [private]
 

Modelview matrix.

sfrotation openvrml::vrml97_node::sphere_sensor_node::offset [private]
 

offset exposedField.

sfrotation openvrml::vrml97_node::sphere_sensor_node::rotation [private]
 

rotation_changed eventOut.

sfvec3f openvrml::vrml97_node::sphere_sensor_node::trackPoint [private]
 

trackPoint_changed eventOut.