sofa::simulation::MechanicalPropagateDxVisitor Class Reference

Apply a hypothetical displacement. More...

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalPropagateDxVisitor:

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

Collaboration graph
[legend]

Public Member Functions

 MechanicalPropagateDxVisitor (VecId dx)
virtual Result fwdMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState if it is not mapped from the parent level.
virtual Result fwdMechanicalMapping (simulation::Node *, core::componentmodel::behavior::BaseMechanicalMapping *map)
 Process the BaseMechanicalMapping.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.

Data Fields

VecId dx

Detailed Description

Apply a hypothetical displacement.

This action does not modify the state (i.e. positions and velocities) of the objects. It is typically applied before a MechanicalComputeDfVisitor, in order to compute the df corresponding to a given dx (i.e. apply stiffness). Dx is propagated to all the layers through the mappings.

Definition at line 314 of file MechanicalVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalPropagateDxVisitor::MechanicalPropagateDxVisitor ( VecId  dx  )  [inline]

Definition at line 318 of file MechanicalVisitor.h.


Member Function Documentation

Visitor::Result sofa::simulation::MechanicalPropagateDxVisitor::fwdMechanicalMapping ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalMapping *   
) [virtual]

Visitor::Result sofa::simulation::MechanicalPropagateDxVisitor::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 224 of file MechanicalVisitor.cpp.

References dx, sofa::simulation::Visitor::RESULT_CONTINUE, and sofa::core::componentmodel::behavior::BaseMechanicalState::setDx().

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

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 323 of file MechanicalVisitor.h.


Field Documentation

Definition at line 317 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().


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

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