sofa::simulation::BehaviorUpdatePositionVisitor Class Reference

Update the position of a new simulation step. More...

#include <BehaviorUpdatePositionVisitor.h>

Inheritance diagram for sofa::simulation::BehaviorUpdatePositionVisitor:

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

Collaboration graph
[legend]

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

Detailed Description

Update the position of a new simulation step.

Definition at line 44 of file BehaviorUpdatePositionVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::BehaviorUpdatePositionVisitor::BehaviorUpdatePositionVisitor ( double  _dt  )  [inline]

Definition at line 48 of file BehaviorUpdatePositionVisitor.h.


Member Function Documentation

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]

Definition at line 60 of file BehaviorUpdatePositionVisitor.h.

References dt.

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 
)

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]

Definition at line 59 of file BehaviorUpdatePositionVisitor.h.

References dt.


Field Documentation

Definition at line 62 of file BehaviorUpdatePositionVisitor.h.

Referenced by getDt(), processBehaviorModel(), and setDt().


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

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