sofa::simulation::MechanicalBeginIntegrationVisitor Class Reference

Visitor used to prepare a time integration step. More...

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalBeginIntegrationVisitor:

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

Collaboration graph
[legend]

Public Member Functions

 MechanicalBeginIntegrationVisitor (double dt)
virtual Result fwdMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState if it is not mapped from the parent level.
virtual Result fwdMappedMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState if it is mapped from the parent level.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.

Data Fields

double dt

Detailed Description

Visitor used to prepare a time integration step.

Typically, does nothing.

Definition at line 663 of file MechanicalVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalBeginIntegrationVisitor::MechanicalBeginIntegrationVisitor ( double  dt  )  [inline]

Definition at line 667 of file MechanicalVisitor.h.


Member Function Documentation

Visitor::Result sofa::simulation::MechanicalBeginIntegrationVisitor::fwdMappedMechanicalState ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalState *   
) [virtual]

Process the BaseMechanicalState if it is mapped from the parent level.

Reimplemented from sofa::simulation::MechanicalVisitor.

Definition at line 502 of file MechanicalVisitor.cpp.

References sofa::core::componentmodel::behavior::BaseMechanicalState::beginIntegration(), dt, and sofa::simulation::Visitor::RESULT_CONTINUE.

Visitor::Result sofa::simulation::MechanicalBeginIntegrationVisitor::fwdMechanicalState ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalState *   
) [virtual]

Process the BaseMechanicalState if it is not mapped from the parent level.

Reimplemented from sofa::simulation::MechanicalVisitor.

Definition at line 497 of file MechanicalVisitor.cpp.

References sofa::core::componentmodel::behavior::BaseMechanicalState::beginIntegration(), dt, and sofa::simulation::Visitor::RESULT_CONTINUE.

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

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 674 of file MechanicalVisitor.h.


Field Documentation

Definition at line 666 of file MechanicalVisitor.h.

Referenced by fwdMappedMechanicalState(), and fwdMechanicalState().


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

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