sofa::simulation::InitVisitor Class Reference

Initialize a newly created (or modified) scene graph. More...

#include <InitVisitor.h>

Inheritance diagram for sofa::simulation::InitVisitor:

Inheritance graph
[legend]
Collaboration diagram for sofa::simulation::InitVisitor:

Collaboration graph
[legend]

Public Member Functions

 InitVisitor ()
virtual Result processNodeTopDown (simulation::Node *node)
 Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.
virtual void processNodeBottomUp (simulation::Node *node)
 Callback method called after child node have been processed and before going back to the parent node.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.
virtual const char * getCategoryName () const
 Return a category name for this action.

Detailed Description

Initialize a newly created (or modified) scene graph.

Forward: simulation::Node::initialize() This method puts the OdeSolver, if any, first in the list of components. Then BaseObject::init() for all components.

Backward: OdeSolver::bwdInit()

Definition at line 50 of file InitVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::InitVisitor::InitVisitor (  )  [inline]

Definition at line 54 of file InitVisitor.h.


Member Function Documentation

virtual const char* sofa::simulation::InitVisitor::getCategoryName (  )  const [inline, virtual]

Return a category name for this action.

Only used for debugging / profiling purposes

Reimplemented from sofa::simulation::Visitor.

Definition at line 65 of file InitVisitor.h.

virtual bool sofa::simulation::InitVisitor::isThreadSafe (  )  const [inline, virtual]

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 61 of file InitVisitor.h.

void sofa::simulation::InitVisitor::processNodeBottomUp ( simulation::Node *   )  [virtual]

Callback method called after child node have been processed and before going back to the parent node.

Reimplemented from sofa::simulation::Visitor.

Definition at line 48 of file InitVisitor.cpp.

References sofa::simulation::Node::object, and sofa::simulation::Node::setDefaultVisualContextValue().

Visitor::Result sofa::simulation::InitVisitor::processNodeTopDown ( simulation::Node *   )  [virtual]

Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.

Reimplemented from sofa::simulation::Visitor.

Definition at line 36 of file InitVisitor.cpp.

References sofa::simulation::Node::initialize(), sofa::simulation::Node::object, and sofa::simulation::Visitor::RESULT_CONTINUE.


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

Generated on Sun Nov 23 04:24:23 2008 for Sofa by  doxygen 1.5.7.1