version 3.3

VRS::SceneCallback Class Reference

Callback Scene Graph Node. More...

#include <vrs/sg/scenecallback.h>

Inheritance diagram for VRS::SceneCallback:

VRS::SceneThing VRS::SceneNode VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 SceneCallback (Callback *evaluateAction=(Callback *) 0, Callback *traverseAction=(Callback *) 0, Callback *installAction=(Callback *) 0, Callback *deinstallAction=(Callback *) 0)
void setEvaluateAction (Callback *action)
CallbackgetEvaluateAction () const
void setTraverseAction (Callback *action)
CallbackgetTraverseAction () const
void setInstallAction (Callback *action)
CallbackgetInstallAction () const
void setDeinstallAction (Callback *action)
CallbackgetDeinstallAction () const
virtual void evaluate (Engine *engine)
 Evaluation of a scene subgraph.
virtual
SceneNodeVisitor::TraversalFlag 
traverse (SceneNodeVisitor *visitor)
virtual void install (Engine *engine)
virtual void deinstall (Engine *engine)
 VRS_TYPEINFO (SceneCallback, SceneThing)


Detailed Description

Callback Scene Graph Node.

Constructor & Destructor Documentation

VRS::SceneCallback::SceneCallback ( Callback evaluateAction = (Callback *) 0,
Callback traverseAction = (Callback *) 0,
Callback installAction = (Callback *) 0,
Callback deinstallAction = (Callback *) 0 
)

An `SceneCallback' node is a general purpose scene graph node for infiltrating actions in a scene graph. Actions can be assigned for the evaluation method, traverse method, install method, and deinstall method. An action - if specified - is called prior to the regular method implementation.


Member Function Documentation

void VRS::SceneCallback::setEvaluateAction ( Callback action  )  [inline]

Callback * VRS::SceneCallback::getEvaluateAction (  )  const [inline]

Sets/returns the action called if the evaluate method is invoked for this node. The action is executed before the SceneThing components are evaluated. If the node is disabled, the eval-action is not triggered. The action can be set to null.

void VRS::SceneCallback::setTraverseAction ( Callback action  )  [inline]

Callback * VRS::SceneCallback::getTraverseAction (  )  const [inline]

Sets/returns the action called if the traverse method is invoked for this node. The action is executed before the SceneThing components are evaluated. If the node is disabled, the eval-action is not triggered. The action can be set to null.

void VRS::SceneCallback::setInstallAction ( Callback action  )  [inline]

Callback * VRS::SceneCallback::getInstallAction (  )  const [inline]

Sets/returns the action called if a rendering engine is installed for that node. The action can be set to null.

void VRS::SceneCallback::setDeinstallAction ( Callback action  )  [inline]

Callback * VRS::SceneCallback::getDeinstallAction (  )  const [inline]

Sets/returns the action called if a rendering engine is deinstalled for that node. The action can be set to null.

virtual void VRS::SceneCallback::evaluate ( Engine engine  )  [virtual]

Evaluation of a scene subgraph.

The evaluation applies all active shared objects to the engine. A shared object is active if its mask and the current filter have common bits. If the node is disabled (see setNodeState), nothing is evaluated.

Reimplemented from VRS::SceneThing.

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

Calls the action (if any), and forwards the request to the base class.

Reimplemented from VRS::SceneThing.

virtual void VRS::SceneCallback::install ( Engine engine  )  [virtual]

Reimplemented from VRS::SceneThing.

virtual void VRS::SceneCallback::deinstall ( Engine engine  )  [virtual]

Calls the action (if any), and forwards the request to the base class.

Reimplemented from VRS::SceneThing.

VRS::SceneCallback::VRS_TYPEINFO ( SceneCallback  ,
SceneThing   
)


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

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