version 3.3

VRS::MonoBehavior Class Reference

Abstract Base Class for Transitive Behavior Nodes. More...

#include <vrs/sg/monobehavior.h>

Inheritance diagram for VRS::MonoBehavior:

VRS::BehaviorNode VRS::SharedObj VRS::Visitable VRS::EventFilter VRS::EventSwitch VRS::TimeCopy VRS::TimeDuration VRS::TimeModifier

List of all members.

Public Member Functions

 MonoBehavior (BehaviorNode *body=NULL)
 A mono behavior node forwards all method calls to its body node.
void setBody (BehaviorNode *bodyNode)
BehaviorNodegetBody () const
 Sets/returns the body behavior node.
virtual TimeRequirement timeRequirement () const
virtual void activate (int hint=BehaviorNode::NoHint)
virtual void deactivate (int hint=BehaviorNode::NoHint)
virtual
BehaviorNode::InvalidationHint 
handle (Event *e)
virtual
SceneNodeVisitor::TraversalFlag 
traverse (SceneNodeVisitor *visitor)
 VRS_TYPEINFO (MonoBehavior, BehaviorNode)
 VRS_SERIALIZABLE_ABSTRACT_CLASS (MonoBehavior)


Detailed Description

Abstract Base Class for Transitive Behavior Nodes.

Constructor & Destructor Documentation

VRS::MonoBehavior::MonoBehavior ( BehaviorNode body = NULL  ) 

A mono behavior node forwards all method calls to its body node.


Member Function Documentation

void VRS::MonoBehavior::setBody ( BehaviorNode bodyNode  ) 

BehaviorNode* VRS::MonoBehavior::getBody (  )  const

Sets/returns the body behavior node.

virtual TimeRequirement VRS::MonoBehavior::timeRequirement (  )  const [virtual]

The time requirement of a mono behavior node is the time requirement of its body. If no body is specified, an "undefine" time requirement is returned.

Reimplemented from VRS::BehaviorNode.

Reimplemented in VRS::TimeCopy, VRS::TimeDuration, and VRS::TimeModifier.

virtual void VRS::MonoBehavior::activate ( int  hint = BehaviorNode::NoHint  )  [virtual]

Reimplemented from VRS::BehaviorNode.

virtual void VRS::MonoBehavior::deactivate ( int  hint = BehaviorNode::NoHint  )  [virtual]

An inactive mono behavior node does not handle events, but does forward the events to its body even if it is inactive. Mono behavior nodes are thought to be transparent in this case.

Reimplemented from VRS::BehaviorNode.

virtual BehaviorNode::InvalidationHint VRS::MonoBehavior::handle ( Event e  )  [virtual]

'handle' is forwarded to the body. If no body is specified, nothing is done.

Implements VRS::BehaviorNode.

Reimplemented in VRS::EventFilter, VRS::EventSwitch, and VRS::TimeModifier.

virtual SceneNodeVisitor::TraversalFlag VRS::MonoBehavior::traverse ( SceneNodeVisitor visitor  )  [virtual]

Traverses first the mono behavior node and then its body node.

Reimplemented from VRS::BehaviorNode.

VRS::MonoBehavior::VRS_TYPEINFO ( MonoBehavior  ,
BehaviorNode   
)

VRS::MonoBehavior::VRS_SERIALIZABLE_ABSTRACT_CLASS ( MonoBehavior   ) 


The documentation for this class was generated from the following file:

Generated on Tue May 22 06:00:29 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact