#include <PrintVisitor.h>


Public Member Functions | |
| PrintVisitor () | |
| void | setVerbose (int v) |
| int | getVerbose () const |
| template<class T > | |
| void | processObject (T obj) |
| template<class Seq > | |
| void | processObjects (Seq &list, const char *name) |
| 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. | |
Protected Attributes | |
| int | verbose |
| int | level |
Definition at line 39 of file PrintVisitor.h.
| sofa::simulation::PrintVisitor::PrintVisitor | ( | ) | [inline] |
Definition at line 45 of file PrintVisitor.h.
| int sofa::simulation::PrintVisitor::getVerbose | ( | ) | const [inline] |
| void sofa::simulation::PrintVisitor::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 86 of file PrintVisitor.cpp.
References level.
| Visitor::Result sofa::simulation::PrintVisitor::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 59 of file PrintVisitor.cpp.
References sofa::simulation::Node::behaviorModel, sofa::simulation::Node::collisionModel, sofa::simulation::Node::collisionPipeline, sofa::simulation::Node::constraint, sofa::simulation::Node::contextObject, sofa::simulation::Node::forceField, sofa::core::objectmodel::Base::getName(), sofa::simulation::Node::interactionForceField, level, sofa::simulation::Node::mapping, sofa::simulation::Node::mass, sofa::simulation::Node::mechanicalMapping, sofa::simulation::Node::mechanicalState, processObjects(), sofa::simulation::Visitor::RESULT_CONTINUE, sofa::simulation::Node::solver, sofa::simulation::Node::topology, sofa::simulation::Node::unsorted, and sofa::simulation::Node::visualModel.
| void sofa::simulation::PrintVisitor::processObject | ( | T | obj | ) | [inline] |
| void sofa::simulation::PrintVisitor::processObjects | ( | Seq & | list, | |
| const char * | name | |||
| ) | [inline] |
Definition at line 43 of file PrintVisitor.cpp.
References level.
Referenced by processNodeTopDown().
| void sofa::simulation::PrintVisitor::setVerbose | ( | int | v | ) | [inline] |
int sofa::simulation::PrintVisitor::level [protected] |
Definition at line 43 of file PrintVisitor.h.
Referenced by processNodeBottomUp(), processNodeTopDown(), and processObjects().
int sofa::simulation::PrintVisitor::verbose [protected] |
1.5.7.1