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

Public Member Functions | |
| SceneCallback (Callback *evaluateAction=(Callback *) 0, Callback *traverseAction=(Callback *) 0, Callback *installAction=(Callback *) 0, Callback *deinstallAction=(Callback *) 0) | |
| void | setEvaluateAction (Callback *action) |
| Callback * | getEvaluateAction () const |
| void | setTraverseAction (Callback *action) |
| Callback * | getTraverseAction () const |
| void | setInstallAction (Callback *action) |
| Callback * | getInstallAction () const |
| void | setDeinstallAction (Callback *action) |
| Callback * | getDeinstallAction () 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) | |
| 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.
| 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 | ||||
| ) |