#include <BehaviorUpdatePositionVisitor.h>


Public Member Functions | |
| BehaviorUpdatePositionVisitor (double _dt) | |
| void | processBehaviorModel (simulation::Node *node, core::BehaviorModel *b) |
| 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 bool | isThreadSafe () const |
| Specify whether this action can be parallelized. | |
| virtual const char * | getCategoryName () const |
| Return a category name for this action. | |
| void | setDt (double _dt) |
| double | getDt () |
Protected Attributes | |
| double | dt |
Definition at line 44 of file BehaviorUpdatePositionVisitor.h.
| sofa::simulation::BehaviorUpdatePositionVisitor::BehaviorUpdatePositionVisitor | ( | double | _dt | ) | [inline] |
Definition at line 48 of file BehaviorUpdatePositionVisitor.h.
| virtual const char* sofa::simulation::BehaviorUpdatePositionVisitor::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 57 of file BehaviorUpdatePositionVisitor.h.
| double sofa::simulation::BehaviorUpdatePositionVisitor::getDt | ( | ) | [inline] |
| virtual bool sofa::simulation::BehaviorUpdatePositionVisitor::isThreadSafe | ( | ) | const [inline, virtual] |
Specify whether this action can be parallelized.
Reimplemented from sofa::simulation::Visitor.
Definition at line 53 of file BehaviorUpdatePositionVisitor.h.
| void sofa::simulation::BehaviorUpdatePositionVisitor::processBehaviorModel | ( | simulation::Node * | node, | |
| core::BehaviorModel * | b | |||
| ) |
Definition at line 33 of file BehaviorUpdatePositionVisitor.cpp.
References dt, and sofa::core::BehaviorModel::updatePosition().
Referenced by processNodeTopDown().
| Visitor::Result sofa::simulation::BehaviorUpdatePositionVisitor::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 40 of file BehaviorUpdatePositionVisitor.cpp.
References sofa::simulation::Node::behaviorModel, sofa::simulation::Visitor::for_each(), processBehaviorModel(), and sofa::simulation::Visitor::RESULT_CONTINUE.
| void sofa::simulation::BehaviorUpdatePositionVisitor::setDt | ( | double | _dt | ) | [inline] |
double sofa::simulation::BehaviorUpdatePositionVisitor::dt [protected] |
Definition at line 62 of file BehaviorUpdatePositionVisitor.h.
Referenced by getDt(), processBehaviorModel(), and setDt().
1.5.7.1