openvrml::vrml97_node::visibility_sensor_node Class Reference

Inheritance diagram for openvrml::vrml97_node::visibility_sensor_node:
[legend]
List of all members.

Detailed Description

VisibilitySensor node instances.


Public Member Functions

 visibility_sensor_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope)
 Construct.
virtual ~visibility_sensor_node () throw ()
 Destroy.

Private Member Functions

virtual void do_render_child (openvrml::viewer &viewer, rendering_context context)
 Generate visibility events.

Private Attributes

exposedfield< sfvec3fcenter_
 center exposedField.
exposedfield< sfboolenabled_
 enabled exposedField.
exposedfield< sfvec3fsize_
 size exposedField.
sfbool is_active_
 isActive eventOut value.
sfbool_emitter is_active_emitter_
 isActive eventOut emitter.
sftime enter_time_
 enterTime eventOut value.
sftime_emitter enter_time_emitter_
 enterTime eventOut emitter.
sftime exit_time_
 exitTime eventOut value.
sftime_emitter exit_time_emitter_
 exitTime eventOut emitter.

Friends

class visibility_sensor_class
 Class object for VisibilitySensor instances.

Constructor & Destructor Documentation

openvrml::vrml97_node::visibility_sensor_node::visibility_sensor_node ( const node_type type,
const boost::shared_ptr< openvrml::scope > &  scope 
)

Construct.

Parameters:
type the node_type associated with the instance.
scope the scope that the new node will belong to.

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

Destroy.


Member Function Documentation

void openvrml::vrml97_node::visibility_sensor_node::do_render_child ( openvrml::viewer viewer,
rendering_context  context 
) [private, virtual]

Generate visibility events.

Todo:
This is in a render() method since the it needs to be computed with respect to the accumulated transformations above it in the scene graph. Move to update() when xforms are accumulated in Groups...
Parameters:
viewer viewer.
context rendering_context.

Reimplemented from openvrml::child_node.


Friends And Related Function Documentation

openvrml::vrml97_node::visibility_sensor_node::visibility_sensor_class [friend]

Class object for VisibilitySensor instances.


Member Data Documentation

center exposedField.

enabled exposedField.

size exposedField.

isActive eventOut value.

isActive eventOut emitter.

enterTime eventOut value.

enterTime eventOut emitter.

exitTime eventOut value.

exitTime eventOut emitter.