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

VisibilitySensor Class Reference

VisibilitySensor node instances. More...

Inheritance diagram for VisibilitySensor:

AbstractChild AbstractBase ChildNode Node Node List of all members.

Public Methods

 VisibilitySensor (const NodeType &nodeType, const ScopePtr &scope)
 Constructor.

virtual ~VisibilitySensor () throw ()
 Destructor.

virtual void render (Viewer &viewer, VrmlRenderContext context)
 Generate visibility events.


Private Methods

void processSet_center (const FieldValue &sfvec3f, double timestamp) throw (std::bad_cast)
 set_center eventIn handler.

void processSet_enabled (const FieldValue &sfbool, double timestamp) throw (std::bad_cast)
 set_enabled eventIn handler.

void processSet_size (const FieldValue &sfvec3f, double timestamp) throw (std::bad_cast)
 set_size eventIn handler.


Private Attributes

SFVec3f center
 center exposedField.

SFBool enabled
 enabled exposedField.

SFVec3f size
 size exposedField.

SFBool active
 isActive eventOut.

SFTime enterTime
 enterTime eventOut.

SFTime exitTime
 exitTime eventOut.


Friends

class VisibilitySensorClass
 Class object for VisibilitySensor instances.


Detailed Description

VisibilitySensor node instances.


Constructor & Destructor Documentation

VisibilitySensor const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

Parameters:
nodeType the NodeType associated with the instance.
scope the Scope that the new node will belong to.

~VisibilitySensor   throw () [virtual]
 

Destructor.


Member Function Documentation

void processSet_center const FieldValue   sfvec3f,
double    timestamp
throw (std::bad_cast) [private]
 

set_center eventIn handler.

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

void processSet_enabled const FieldValue   sfbool,
double    timestamp
throw (std::bad_cast) [private]
 

set_enabled eventIn handler.

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

void processSet_size const FieldValue   sfvec3f,
double    timestamp
throw (std::bad_cast) [private]
 

set_size eventIn handler.

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

void render Viewer   viewer,
VrmlRenderContext    context
[virtual]
 

Generate visibility events.

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

Reimplemented from Node.


Friends And Related Function Documentation

VisibilitySensorClass [friend]
 

Class object for VisibilitySensor instances.


Member Data Documentation

active [private]
 

isActive eventOut.

center [private]
 

center exposedField.

enabled [private]
 

enabled exposedField.

enterTime [private]
 

enterTime eventOut.

exitTime [private]
 

exitTime eventOut.

size [private]
 

size exposedField.