#include <VisualVisitor.h>


Public Types | |
| typedef core::VisualModel::Pass | Pass |
Public Member Functions | |
| VisualDrawVisitor (Pass pass=core::VisualModel::Std) | |
| 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 void | fwdVisualModel (simulation::Node *node, core::VisualModel *vm) |
| virtual void | processVisualModel (simulation::Node *node, core::VisualModel *vm) |
| virtual void | processObject (simulation::Node *node, core::objectmodel::BaseObject *o) |
| virtual void | bwdVisualModel (simulation::Node *node, core::VisualModel *vm) |
Data Fields | |
| Pass | pass |
| bool | hasShader |
Definition at line 63 of file VisualVisitor.h.
Definition at line 66 of file VisualVisitor.h.
| sofa::simulation::VisualDrawVisitor::VisualDrawVisitor | ( | Pass | pass = core::VisualModel::Std |
) | [inline] |
Definition at line 69 of file VisualVisitor.h.
| void sofa::simulation::VisualDrawVisitor::bwdVisualModel | ( | simulation::Node * | node, | |
| core::VisualModel * | vm | |||
| ) | [virtual] |
Definition at line 66 of file VisualVisitor.cpp.
References sofa::core::VisualModel::bwdDraw(), and pass.
Referenced by processNodeBottomUp().
| void sofa::simulation::VisualDrawVisitor::fwdVisualModel | ( | simulation::Node * | node, | |
| core::VisualModel * | vm | |||
| ) | [virtual] |
Definition at line 61 of file VisualVisitor.cpp.
References sofa::core::VisualModel::fwdDraw(), and pass.
Referenced by processNodeTopDown().
| void sofa::simulation::VisualDrawVisitor::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 50 of file VisualVisitor.cpp.
References bwdVisualModel(), sofa::simulation::Visitor::for_each(), and sofa::simulation::Node::visualModel.
| Visitor::Result sofa::simulation::VisualDrawVisitor::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::VisualVisitor.
Definition at line 34 of file VisualVisitor.cpp.
References sofa::simulation::Visitor::for_each(), fwdVisualModel(), sofa::core::objectmodel::Context::getPositionInWorld(), sofa::simulation::Node::getShader(), hasShader, sofa::simulation::Visitor::RESULT_CONTINUE, sofa::simulation::Node::visualModel, and sofa::defaulttype::Frame::writeOpenGlMatrix().
| void sofa::simulation::VisualDrawVisitor::processObject | ( | simulation::Node * | node, | |
| core::objectmodel::BaseObject * | o | |||
| ) | [virtual] |
Reimplemented from sofa::simulation::VisualVisitor.
Definition at line 55 of file VisualVisitor.cpp.
References sofa::core::objectmodel::BaseObject::draw(), pass, sofa::core::VisualModel::Shadow, and sofa::core::VisualModel::Std.
| void sofa::simulation::VisualDrawVisitor::processVisualModel | ( | simulation::Node * | node, | |
| core::VisualModel * | vm | |||
| ) | [virtual] |
Implements sofa::simulation::VisualVisitor.
Definition at line 71 of file VisualVisitor.cpp.
References sofa::core::VisualModel::drawShadow(), sofa::core::VisualModel::drawTransparent(), sofa::core::VisualModel::drawVisual(), sofa::simulation::Node::getShader(), hasShader, pass, sofa::core::VisualModel::Shadow, sofa::core::Shader::start(), sofa::core::VisualModel::Std, sofa::core::Shader::stop(), and sofa::core::VisualModel::Transparent.
Definition at line 68 of file VisualVisitor.h.
Referenced by processNodeTopDown(), and processVisualModel().
Definition at line 67 of file VisualVisitor.h.
Referenced by bwdVisualModel(), fwdVisualModel(), processObject(), and processVisualModel().
1.5.7.1