| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/sg/monobehavior.h>

Public Member Functions | |
| MonoBehavior (BehaviorNode *body=NULL) | |
| A mono behavior node forwards all method calls to its body node. | |
| void | setBody (BehaviorNode *bodyNode) |
| BehaviorNode * | getBody () 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) | |
| VRS::MonoBehavior::MonoBehavior | ( | BehaviorNode * | body = NULL |
) |
A mono behavior node forwards all method calls to its body node.
| 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 | ) |