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

openvrml::vrml97_node::cylinder_sensor_node Class Reference

CylinderSensor node instances. More...

Inheritance diagram for openvrml::vrml97_node::cylinder_sensor_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~cylinder_sensor_node () throw ()
 Destroy.

virtual cylinder_sensor_node * to_cylinder_sensor () const
 Cast to a cylinder_sensor_node.

virtual void render (openvrml::viewer &viewer, rendering_context context)
 Render the node.

void activate (double timeStamp, bool isActive, double *p)
 Called in response to user interaction.

bool enabled () const
 Indicate whether the sensor 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_diskAngle (const field_value &value, double timestamp) throw (std::bad_cast)
 set_diskAngle eventIn handler.

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

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

void process_set_minAngle (const field_value &value, double timestamp) throw (std::bad_cast)
 set_minAngle 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.

sffloat diskAngle
 diskAngle exposedField.

sfbool enabled_
 enabled exposedField.

sffloat maxAngle
 maxAngle exposedField.

sffloat minAngle
 minAngle exposedField.

sffloat offset
 offset exposedField.

sfbool active
 isActive eventOut.

sfrotation rotation
 rotation_changed eventOut.

sfvec3f trackPoint
 trackPoint_changed eventOut.

float rotation_val
 The rotation value.

vec3f activationPoint
 The activation point.

bool disk
mat4f activationMatrix
 Activation matrix.

mat4f modelview
 Modelview matrix.


Friends

class cylinder_sensor_class
 Class object for CylinderSensor nodes.


Detailed Description

CylinderSensor node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::cylinder_sensor_node::cylinder_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::cylinder_sensor_node::~cylinder_sensor_node  )  throw () [virtual]
 

Destroy.


Member Function Documentation

void openvrml::vrml97_node::cylinder_sensor_node::activate double  timeStamp,
bool  isActive,
double *  p
 

Called in response to user interaction.

bool openvrml::vrml97_node::cylinder_sensor_node::enabled  )  const
 

Indicate whether the sensor is enabled.

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

void openvrml::vrml97_node::cylinder_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::cylinder_sensor_node::process_set_diskAngle const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_diskAngle eventIn handler.

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

void openvrml::vrml97_node::cylinder_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::cylinder_sensor_node::process_set_maxAngle const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_maxAngle eventIn handler.

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

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

set_minAngle eventIn handler.

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

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

set_offset eventIn handler.

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

void openvrml::vrml97_node::cylinder_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.

cylinder_sensor_node * openvrml::vrml97_node::cylinder_sensor_node::to_cylinder_sensor  )  const [virtual]
 

Cast to a cylinder_sensor_node.

Returns:
a pointer to the cylinder_sensor_node.

Reimplemented from openvrml::node.


Friends And Related Function Documentation

openvrml::vrml97_node::cylinder_sensor_node::cylinder_sensor_class [friend]
 

Class object for CylinderSensor nodes.


Member Data Documentation

mat4f openvrml::vrml97_node::cylinder_sensor_node::activationMatrix [private]
 

Activation matrix.

vec3f openvrml::vrml97_node::cylinder_sensor_node::activationPoint [private]
 

The activation point.

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

isActive eventOut.

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

autoOffset exposedField.

sffloat openvrml::vrml97_node::cylinder_sensor_node::diskAngle [private]
 

diskAngle exposedField.

sfbool openvrml::vrml97_node::cylinder_sensor_node::enabled_ [private]
 

enabled exposedField.

sffloat openvrml::vrml97_node::cylinder_sensor_node::maxAngle [private]
 

maxAngle exposedField.

sffloat openvrml::vrml97_node::cylinder_sensor_node::minAngle [private]
 

minAngle exposedField.

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

Modelview matrix.

sffloat openvrml::vrml97_node::cylinder_sensor_node::offset [private]
 

offset exposedField.

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

rotation_changed eventOut.

float openvrml::vrml97_node::cylinder_sensor_node::rotation_val [private]
 

The rotation value.

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

trackPoint_changed eventOut.