openvrml::vrml97_node::cylinder_sensor_node Class Reference

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

List of all members.


Detailed Description

CylinderSensor node instances.

Public Member Functions

 cylinder_sensor_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope)
 Construct.
virtual ~cylinder_sensor_node () throw ()
 Destroy.
virtual cylinder_sensor_nodeto_cylinder_sensor () const
 Cast to a cylinder_sensor_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

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

Private Attributes

exposedfield< sfboolauto_offset_
 autoOffset exposedField.
exposedfield< sffloatdisk_angle_
 diskAngle exposedField.
exposedfield< sfboolenabled_
 enabled exposedField.
exposedfield< sffloatmax_angle_
 maxAngle exposedField.
exposedfield< sffloatmin_angle_
 minAngle exposedField.
exposedfield< sffloatoffset_
 offset exposedField.
sfbool is_active_
 Active state.
sfbool_emitter is_active_emitter_
 isActive eventOut.
sfrotation rotation_changed_
 Rotation state.
sfrotation_emitter rotation_changed_emitter_
 rotation_changed eventOut.
sfvec3f track_point_changed_
 Track point state.
sfvec3f_emitter track_point_changed_emitter_
 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.

Constructor & Destructor Documentation

openvrml::vrml97_node::cylinder_sensor_node::cylinder_sensor_node ( const node_type type,
const boost::shared_ptr< openvrml::scope > &  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

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.

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::do_render_child ( openvrml::viewer viewer,
rendering_context  context 
) [private, virtual]

Render the node.

Parameters:
viewer a Viewer.
context a rendering context.

Reimplemented from openvrml::child_node.


Friends And Related Function Documentation

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

Class object for CylinderSensor nodes.


Member Data Documentation

autoOffset exposedField.

diskAngle exposedField.

enabled exposedField.

maxAngle exposedField.

minAngle exposedField.

offset exposedField.

Active state.

isActive eventOut.

Rotation state.

rotation_changed eventOut.

Track point state.

trackPoint_changed eventOut.

The rotation value.

The activation point.

Activation matrix.

Modelview matrix.