SOFA API  99934cbc
Open source framework for multi-physics simuation
sofa::simulation::BaseMechanicalVisitor Class Reference

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::BaseMechanicalVisitor:

Detailed Description

Base class for easily creating new actions for mechanical simulation.

During the first traversal (top-down), method processNodeTopDown(simulation::Node*) is applied to each simulation::Node. Each component attached to this node is processed using the appropriate method, prefixed by fwd. During the second traversal (bottom-up), method processNodeBottomUp(simulation::Node*) is applied to each simulation::Node. Each component attached to this node is processed using the appropriate method, prefixed by bwd. The default behavior of the fwd* and bwd* is to do nothing. Derived actions typically overload these methods to implement the desired processing.

Protected Attributes

simulation::Noderoot
 root node from which the visitor was executed More...
 
SReal * rootData
 data for root node More...
 
- Protected Attributes inherited from sofa::simulation::Visitor
const core::ExecParamsparams
 

Public Member Functions

 BaseMechanicalVisitor (const core::ExecParams *params)
 
virtual bool readNodeData () const
 Return true if this visitor need to read the node-specific data if given. More...
 
virtual bool writeNodeData () const
 Return true if this visitor need to write to the node-specific data if given. More...
 
virtual void setNodeData (simulation::Node *, SReal *nodeData, const SReal *parentData)
 
virtual void addNodeData (simulation::Node *, SReal *parentData, const SReal *nodeData)
 
const char * getClassName () const override
 
const char * getCategoryName () const override
 
virtual bool stopAtMechanicalMapping (simulation::Node *, core::BaseMapping *map)
 
Forward processing

Methods called during the forward (top-down) traversal of the data structure. Method processNodeTopDown(simulation::Node*) calls the fwd* methods in the order given here. When there is a mapping, it is processed first, then method fwdMappedMechanicalState is applied to the BaseMechanicalState. When there is no mapping, the BaseMechanicalState is processed first using method fwdMechanicalState. Then, the other fwd* methods are applied in the given order.

Result processNodeTopDown (simulation::Node *node) override
 This method calls the fwd* methods during the forward traversal. You typically do not overload it. More...
 
Result processNodeTopDown (simulation::Node *node, LocalStorage *stack) override
 
virtual Result fwdOdeSolver (simulation::Node *, core::behavior::OdeSolver *)
 Process the OdeSolver. More...
 
virtual Result fwdOdeSolver (VisitorContext *ctx, core::behavior::OdeSolver *solver)
 Process the OdeSolver. More...
 
virtual Result fwdConstraintSolver (simulation::Node *, core::behavior::ConstraintSolver *)
 Process the ConstraintSolver. More...
 
virtual Result fwdConstraintSolver (VisitorContext *ctx, core::behavior::ConstraintSolver *solver)
 Process the ConstraintSolver. More...
 
virtual Result fwdMechanicalMapping (simulation::Node *, core::BaseMapping *)
 Process the BaseMechanicalMapping. More...
 
virtual Result fwdMechanicalMapping (VisitorContext *ctx, core::BaseMapping *map)
 Process the BaseMechanicalMapping. More...
 
virtual Result fwdMappedMechanicalState (simulation::Node *, core::behavior::BaseMechanicalState *)
 Process the BaseMechanicalState if it is mapped from the parent level. More...
 
virtual Result fwdMappedMechanicalState (VisitorContext *ctx, core::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState if it is mapped from the parent level. More...
 
virtual Result fwdMechanicalState (simulation::Node *, core::behavior::BaseMechanicalState *)
 Process the BaseMechanicalState if it is not mapped from the parent level. More...
 
virtual Result fwdMechanicalState (VisitorContext *ctx, core::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState if it is not mapped from the parent level. More...
 
virtual Result fwdMass (simulation::Node *, core::behavior::BaseMass *)
 Process the BaseMass. More...
 
virtual Result fwdMass (VisitorContext *ctx, core::behavior::BaseMass *mass)
 Process the BaseMass. More...
 
virtual Result fwdForceField (simulation::Node *, core::behavior::BaseForceField *)
 Process all the BaseForceField. More...
 
virtual Result fwdForceField (VisitorContext *ctx, core::behavior::BaseForceField *ff)
 Process all the BaseForceField. More...
 
virtual Result fwdInteractionForceField (simulation::Node *node, core::behavior::BaseInteractionForceField *ff)
 Process all the InteractionForceField. More...
 
virtual Result fwdInteractionForceField (VisitorContext *ctx, core::behavior::BaseInteractionForceField *ff)
 Process all the InteractionForceField. More...
 
virtual Result fwdProjectiveConstraintSet (simulation::Node *, core::behavior::BaseProjectiveConstraintSet *)
 Process all the BaseProjectiveConstraintSet. More...
 
virtual Result fwdConstraintSet (simulation::Node *, core::behavior::BaseConstraintSet *)
 Process all the BaseConstraintSet. More...
 
virtual Result fwdProjectiveConstraintSet (VisitorContext *ctx, core::behavior::BaseProjectiveConstraintSet *c)
 Process all the BaseProjectiveConstraintSet. More...
 
virtual Result fwdConstraintSet (VisitorContext *ctx, core::behavior::BaseConstraintSet *c)
 Process all the BaseConstraintSet. More...
 
virtual Result fwdInteractionProjectiveConstraintSet (simulation::Node *, core::behavior::BaseInteractionProjectiveConstraintSet *)
 Process all the InteractionConstraint. More...
 
virtual Result fwdInteractionConstraint (simulation::Node *, core::behavior::BaseInteractionConstraint *)
 Process all the InteractionConstraint. More...
 
virtual Result fwdInteractionProjectiveConstraintSet (VisitorContext *ctx, core::behavior::BaseInteractionProjectiveConstraintSet *c)
 Process all the InteractionConstraint. More...
 
virtual Result fwdInteractionConstraint (VisitorContext *ctx, core::behavior::BaseInteractionConstraint *c)
 Process all the InteractionConstraint. More...
 
Backward processing

Methods called during the backward (bottom-up) traversal of the data structure. Method processNodeBottomUp(simulation::Node*) calls the bwd* methods. When there is a mapping, method bwdMappedMechanicalState is applied to the BaseMechanicalState. When there is no mapping, the BaseMechanicalState is processed using method bwdMechanicalState. Finally, the mapping (if any) is processed using method bwdMechanicalMapping.

void processNodeBottomUp (simulation::Node *node) override
 This method calls the bwd* methods during the backward traversal. You typically do not overload it. More...
 
void processNodeBottomUp (simulation::Node *, LocalStorage *stack) override
 
virtual void bwdMechanicalState (simulation::Node *, core::behavior::BaseMechanicalState *)
 Process the BaseMechanicalState when it is not mapped from parent level. More...
 
virtual void bwdMechanicalState (VisitorContext *ctx, core::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState when it is not mapped from parent level. More...
 
virtual void bwdMappedMechanicalState (simulation::Node *, core::behavior::BaseMechanicalState *)
 Process the BaseMechanicalState when it is mapped from parent level. More...
 
virtual void bwdMappedMechanicalState (VisitorContext *ctx, core::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState when it is mapped from parent level. More...
 
virtual void bwdMechanicalMapping (simulation::Node *, core::BaseMapping *)
 Process the BaseMechanicalMapping. More...
 
virtual void bwdMechanicalMapping (VisitorContext *ctx, core::BaseMapping *map)
 Process the BaseMechanicalMapping. More...
 
virtual void bwdOdeSolver (simulation::Node *, core::behavior::OdeSolver *)
 Process the OdeSolver. More...
 
virtual void bwdOdeSolver (VisitorContext *ctx, core::behavior::OdeSolver *solver)
 Process the OdeSolver. More...
 
virtual void bwdConstraintSolver (simulation::Node *, core::behavior::ConstraintSolver *)
 Process the ConstraintSolver. More...
 
virtual void bwdConstraintSolver (VisitorContext *ctx, core::behavior::ConstraintSolver *solver)
 Process the ConstraintSolver. More...
 
virtual void bwdProjectiveConstraintSet (simulation::Node *, core::behavior::BaseProjectiveConstraintSet *)
 Process all the BaseProjectiveConstraintSet. More...
 
virtual void bwdConstraintSet (simulation::Node *, core::behavior::BaseConstraintSet *)
 Process all the BaseConstraintSet. More...
 
virtual void bwdProjectiveConstraintSet (VisitorContext *ctx, core::behavior::BaseProjectiveConstraintSet *c)
 Process all the BaseProjectiveConstraintSet. More...
 
virtual void bwdConstraintSet (VisitorContext *ctx, core::behavior::BaseConstraintSet *c)
 Process all the BaseConstraintSet. More...
 
- Public Member Functions inherited from sofa::simulation::Visitor
 Visitor (const core::ExecParams *params)
 
virtual ~Visitor ()
 
const core::ExecParamsexecParams () const
 
virtual bool childOrderReversed (simulation::Node *)
 Return true to reverse the order of traversal of child nodes. More...
 
virtual bool treeTraversal (TreeTraversalRepetition &repeat)
 
virtual std::string getInfos () const
 
void debug_write_state_before (core::objectmodel::BaseObject *)
 
void debug_write_state_after (core::objectmodel::BaseObject *)
 
template<class Visit , class VContext , class Container , class Object >
void for_each (Visit *visitor, VContext *ctx, const Container &list, void(Visit::*fn)(VContext *, Object *))
 Helper method to enumerate objects in the given list. The callback gets the pointer to node. More...
 
template<class Visit , class VContext , class Container , class Object >
Visitor::Result for_each_r (Visit *visitor, VContext *ctx, const Container &list, Visitor::Result(Visit::*fn)(VContext *, Object *))
 Helper method to enumerate objects in the given list. The callback gets the pointer to node. More...
 
bool testTags (core::objectmodel::BaseObject *obj)
 
virtual void execute (core::objectmodel::BaseContext *node, bool precomputedOrder=false)
 Alias for context->executeVisitor(this) More...
 
virtual ctime_t begin (simulation::Node *node, core::objectmodel::BaseObject *obj, const std::string &typeInfo=std::string("type"))
 
virtual void end (simulation::Node *node, core::objectmodel::BaseObject *obj, ctime_t t0)
 
ctime_t begin (simulation::Visitor::VisitorContext *node, core::objectmodel::BaseObject *obj, const std::string &typeInfo=std::string("type"))
 
void end (simulation::Visitor::VisitorContext *node, core::objectmodel::BaseObject *obj, ctime_t t0)
 
virtual bool isThreadSafe () const
 Specify whether this visitor can be parallelized. More...
 
VisitorsetTags (const TagSet &t)
 
VisitoraddTag (Tag t)
 
VisitorremoveTag (Tag t)
 

Static Public Member Functions

static void ForceMaskActivate (const helper::vector< core::behavior::BaseMechanicalState * > &v)
 
static void ForceMaskDeactivate (const helper::vector< core::behavior::BaseMechanicalState * > &v)
 

Protected Member Functions

virtual Result processNodeTopDown (simulation::Node *node, VisitorContext *ctx)
 
virtual void processNodeBottomUp (simulation::Node *node, VisitorContext *ctx)
 

Additional Inherited Members

- Public Attributes inherited from sofa::simulation::Visitor
TagSet subsetsToManage
 list of the subsets More...
 
bool canAccessSleepingNode
 Can the visitor access sleeping nodes? More...
 

Attribute details

simulation::Node* sofa::simulation::BaseMechanicalVisitor::root
protected

root node from which the visitor was executed

SReal* sofa::simulation::BaseMechanicalVisitor::rootData
protected

data for root node

Constructor details

sofa::simulation::BaseMechanicalVisitor::BaseMechanicalVisitor ( const core::ExecParams params)
inline

Function details

virtual void sofa::simulation::BaseMechanicalVisitor::addNodeData ( simulation::Node ,
SReal *  parentData,
const SReal *  nodeData 
)
inlinevirtual
virtual void sofa::simulation::BaseMechanicalVisitor::bwdConstraintSet ( simulation::Node ,
core::behavior::BaseConstraintSet  
)
inlinevirtual

Process all the BaseConstraintSet.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdConstraintSet ( VisitorContext ctx,
core::behavior::BaseConstraintSet c 
)
inlinevirtual

Process all the BaseConstraintSet.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdConstraintSolver ( simulation::Node ,
core::behavior::ConstraintSolver  
)
inlinevirtual

Process the ConstraintSolver.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdConstraintSolver ( VisitorContext ctx,
core::behavior::ConstraintSolver solver 
)
inlinevirtual

Process the ConstraintSolver.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdMappedMechanicalState ( simulation::Node ,
core::behavior::BaseMechanicalState  
)
inlinevirtual

Process the BaseMechanicalState when it is mapped from parent level.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdMappedMechanicalState ( VisitorContext ctx,
core::behavior::BaseMechanicalState mm 
)
inlinevirtual

Process the BaseMechanicalState when it is mapped from parent level.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdMechanicalMapping ( VisitorContext ctx,
core::BaseMapping map 
)
inlinevirtual

Process the BaseMechanicalMapping.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdMechanicalState ( VisitorContext ctx,
core::behavior::BaseMechanicalState mm 
)
inlinevirtual

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

virtual void sofa::simulation::BaseMechanicalVisitor::bwdOdeSolver ( simulation::Node ,
core::behavior::OdeSolver  
)
inlinevirtual

Process the OdeSolver.

Reimplemented in sofa::simulation::MechanicalIntegrationVisitor.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdOdeSolver ( VisitorContext ctx,
core::behavior::OdeSolver solver 
)
inlinevirtual

Process the OdeSolver.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdProjectiveConstraintSet ( simulation::Node ,
core::behavior::BaseProjectiveConstraintSet  
)
inlinevirtual

Process all the BaseProjectiveConstraintSet.

Reimplemented in sofa::simulation::MechanicalApplyConstraintsVisitor.

virtual void sofa::simulation::BaseMechanicalVisitor::bwdProjectiveConstraintSet ( VisitorContext ctx,
core::behavior::BaseProjectiveConstraintSet c 
)
inlinevirtual

Process all the BaseProjectiveConstraintSet.

static void sofa::simulation::BaseMechanicalVisitor::ForceMaskActivate ( const helper::vector< core::behavior::BaseMechanicalState * > &  v)
inlinestatic
static void sofa::simulation::BaseMechanicalVisitor::ForceMaskDeactivate ( const helper::vector< core::behavior::BaseMechanicalState * > &  v)
inlinestatic
virtual Result sofa::simulation::BaseMechanicalVisitor::fwdConstraintSet ( VisitorContext ctx,
core::behavior::BaseConstraintSet c 
)
inlinevirtual

Process all the BaseConstraintSet.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdConstraintSolver ( simulation::Node ,
core::behavior::ConstraintSolver  
)
inlinevirtual

Process the ConstraintSolver.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdConstraintSolver ( VisitorContext ctx,
core::behavior::ConstraintSolver solver 
)
inlinevirtual

Process the ConstraintSolver.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdForceField ( VisitorContext ctx,
core::behavior::BaseForceField ff 
)
inlinevirtual

Process all the BaseForceField.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdInteractionConstraint ( simulation::Node ,
core::behavior::BaseInteractionConstraint  
)
inlinevirtual

Process all the InteractionConstraint.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdInteractionConstraint ( VisitorContext ctx,
core::behavior::BaseInteractionConstraint c 
)
inlinevirtual

Process all the InteractionConstraint.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdInteractionForceField ( simulation::Node node,
core::behavior::BaseInteractionForceField ff 
)
inlinevirtual
virtual Result sofa::simulation::BaseMechanicalVisitor::fwdInteractionForceField ( VisitorContext ctx,
core::behavior::BaseInteractionForceField ff 
)
inlinevirtual

Process all the InteractionForceField.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdInteractionProjectiveConstraintSet ( simulation::Node ,
core::behavior::BaseInteractionProjectiveConstraintSet  
)
inlinevirtual

Process all the InteractionConstraint.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdInteractionProjectiveConstraintSet ( VisitorContext ctx,
core::behavior::BaseInteractionProjectiveConstraintSet c 
)
inlinevirtual

Process all the InteractionConstraint.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdMappedMechanicalState ( VisitorContext ctx,
core::behavior::BaseMechanicalState mm 
)
inlinevirtual

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

Reimplemented in sofa::simulation::MechanicalVMultiOpVisitor, and sofa::simulation::MechanicalVOpVisitor.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdMass ( VisitorContext ctx,
core::behavior::BaseMass mass 
)
inlinevirtual

Process the BaseMass.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdMechanicalMapping ( VisitorContext ctx,
core::BaseMapping map 
)
inlinevirtual

Process the BaseMechanicalMapping.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdMechanicalState ( simulation::Node ,
core::behavior::BaseMechanicalState  
)
inlinevirtual

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

Reimplemented in sofa::simulation::MechanicalVSizeVisitor, sofa::simulation::MechanicalPickParticlesWithTagsVisitor, sofa::simulation::MechanicalPickParticlesVisitor, sofa::simulation::MechanicalComputeContactForceVisitor, sofa::simulation::MechanicalEndIntegrationVisitor, sofa::simulation::MechanicalBeginIntegrationVisitor, sofa::simulation::MechanicalApplyConstraintsVisitor, sofa::simulation::MechanicalResetConstraintVisitor, sofa::simulation::MechanicalAddMBKdxVisitor, sofa::simulation::MechanicalComputeDfVisitor, sofa::simulation::MechanicalComputeForceVisitor, sofa::simulation::MechanicalResetForceVisitor, sofa::simulation::MechanicalSetPositionAndVelocityVisitor, sofa::simulation::MechanicalPropagateOnlyVelocityVisitor, sofa::simulation::MechanicalPropagateOnlyPositionAndVelocityVisitor, sofa::simulation::MechanicalPropagateOnlyPositionVisitor, sofa::simulation::MechanicalAccFromFVisitor, sofa::simulation::MechanicalAddMDxVisitor, sofa::simulation::MechanicalPropagateOnlyPositionAndResetForceVisitor, sofa::simulation::MechanicalPropagateDxAndResetForceVisitor, sofa::simulation::MechanicalPropagateDxVisitor, sofa::simulation::MechanicalVFreeVisitor< vtype >, sofa::simulation::MechanicalVReallocVisitor< vtype >, sofa::simulation::MechanicalVAllocVisitor< vtype >, sofa::simulation::MechanicalVInitVisitor< vtype >, sofa::simulation::MechanicalVAvailVisitor< vtype >, sofa::simulation::MechanicalMultiVectorFromBaseVectorVisitor, sofa::simulation::MechanicalMultiVectorPeqBaseVectorVisitor, sofa::simulation::MechanicalMultiVectorToBaseVectorVisitor, sofa::simulation::MechanicalApplyProjectiveConstraint_ToMatrixVisitor, sofa::simulation::MechanicalAddSubMBK_ToMatrixVisitor, sofa::simulation::ParallelMechanicalVDotVisitor, sofa::simulation::MechanicalAddMBK_ToMatrixVisitor, sofa::simulation::ParallelMechanicalVOpVisitor, sofa::simulation::MechanicalIntegrateConstraintsVisitor, sofa::simulation::ParallelMechanicalVOpMecVisitor, sofa::simulation::MechanicalGetConstraintJacobianVisitor, and sofa::simulation::MechanicalGetMatrixDimensionVisitor.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdMechanicalState ( VisitorContext ctx,
core::behavior::BaseMechanicalState mm 
)
inlinevirtual
virtual Result sofa::simulation::BaseMechanicalVisitor::fwdOdeSolver ( simulation::Node ,
core::behavior::OdeSolver  
)
inlinevirtual

Process the OdeSolver.

Reimplemented in sofa::simulation::MechanicalIntegrationVisitor.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdOdeSolver ( VisitorContext ctx,
core::behavior::OdeSolver solver 
)
inlinevirtual

Process the OdeSolver.

virtual Result sofa::simulation::BaseMechanicalVisitor::fwdProjectiveConstraintSet ( VisitorContext ctx,
core::behavior::BaseProjectiveConstraintSet c 
)
inlinevirtual

Process all the BaseProjectiveConstraintSet.

const char* sofa::simulation::BaseMechanicalVisitor::getCategoryName ( ) const
inlineoverridevirtual

Return a category name for this action. Only used for debugging / profiling purposes

Reimplemented from sofa::simulation::Visitor.

const char* sofa::simulation::BaseMechanicalVisitor::getClassName ( ) const
inlineoverridevirtual

Return a class name for this visitor Only used for debugging / profiling purposes

Reimplemented from sofa::simulation::Visitor.

Reimplemented in sofa::simulation::MechanicalVSizeVisitor, sofa::simulation::MechanicalPickParticlesWithTagsVisitor, sofa::simulation::MechanicalPickParticlesVisitor, sofa::simulation::MechanicalAddSeparateGravityVisitor, sofa::simulation::MechanicalComputeContactForceVisitor, sofa::simulation::MechanicalIntegrationVisitor, sofa::simulation::MechanicalEndIntegrationVisitor, sofa::simulation::MechanicalBeginIntegrationVisitor, sofa::simulation::MechanicalApplyConstraintsVisitor, sofa::simulation::MechanicalAccumulateMatrixDeriv, sofa::simulation::MechanicalBuildConstraintMatrix, sofa::simulation::MechanicalAccumulateConstraint, sofa::simulation::MechanicalWriteLMConstraint, sofa::simulation::MechanicalResetConstraintVisitor, sofa::simulation::MechanicalAddMBKdxVisitor, sofa::simulation::MechanicalComputeGeometricStiffness, sofa::simulation::MechanicalComputeDfVisitor, sofa::simulation::MechanicalComputeForceVisitor, sofa::simulation::MechanicalResetForceVisitor, sofa::simulation::MechanicalSetPositionAndVelocityVisitor, sofa::simulation::MechanicalPropagateOnlyVelocityVisitor, sofa::simulation::MechanicalPropagateOnlyPositionAndVelocityVisitor, sofa::simulation::MechanicalPropagateOnlyPositionVisitor, sofa::simulation::MechanicalProjectPositionAndVelocityVisitor, sofa::simulation::MechanicalProjectPositionVisitor, sofa::simulation::MechanicalProjectVelocityVisitor, sofa::simulation::MechanicalProjectJacobianMatrixVisitor, sofa::simulation::MechanicalAccFromFVisitor, sofa::simulation::MechanicalAddMDxVisitor, sofa::simulation::MechanicalPropagateOnlyPositionAndResetForceVisitor, sofa::simulation::MechanicalPropagateDxAndResetForceVisitor, sofa::simulation::MechanicalPropagateDxVisitor, sofa::simulation::MechanicalVNormVisitor, sofa::simulation::MechanicalVDotVisitor, sofa::simulation::MechanicalVMultiOpVisitor, sofa::simulation::MechanicalVOpVisitor, sofa::simulation::MechanicalVFreeVisitor< vtype >, sofa::simulation::MechanicalVReallocVisitor< vtype >, sofa::simulation::MechanicalVAllocVisitor< vtype >, sofa::simulation::MechanicalVInitVisitor< vtype >, sofa::simulation::MechanicalVAvailVisitor< vtype >, sofa::simulation::MechanicalGetDimensionVisitor, sofa::simulation::ParallelMechanicalVDotVisitor, sofa::simulation::ParallelMechanicalVOpVisitor, and sofa::simulation::ParallelMechanicalVOpMecVisitor.

void sofa::simulation::BaseMechanicalVisitor::processNodeBottomUp ( simulation::Node node,
VisitorContext ctx 
)
protectedvirtual
void sofa::simulation::BaseMechanicalVisitor::processNodeBottomUp ( simulation::Node node)
overridevirtual

This method calls the bwd* methods during the backward traversal. You typically do not overload it.

Reimplemented from sofa::simulation::Visitor.

void sofa::simulation::BaseMechanicalVisitor::processNodeBottomUp ( simulation::Node node,
LocalStorage stack 
)
overridevirtual

Parallel version of processNodeBottomUp. This method calls the bwd* methods during the backward traversal. You typically do not overload it.

Reimplemented from sofa::simulation::Visitor.

Visitor::Result sofa::simulation::BaseMechanicalVisitor::processNodeTopDown ( simulation::Node node,
VisitorContext ctx 
)
protectedvirtual
Visitor::Result sofa::simulation::BaseMechanicalVisitor::processNodeTopDown ( simulation::Node node)
overridevirtual

This method calls the fwd* methods during the forward traversal. You typically do not overload it.

Reimplemented from sofa::simulation::Visitor.

Visitor::Result sofa::simulation::BaseMechanicalVisitor::processNodeTopDown ( simulation::Node node,
LocalStorage stack 
)
overridevirtual

Parallel version of processNodeTopDown. This method calls the fwd* methods during the forward traversal. You typically do not overload it.

Reimplemented from sofa::simulation::Visitor.

virtual bool sofa::simulation::BaseMechanicalVisitor::readNodeData ( ) const
inlinevirtual

Return true if this visitor need to read the node-specific data if given.

Reimplemented in sofa::simulation::MechanicalVMultiOpVisitor, and sofa::simulation::MechanicalVOpVisitor.

virtual void sofa::simulation::BaseMechanicalVisitor::setNodeData ( simulation::Node ,
SReal *  nodeData,
const SReal *  parentData 
)
inlinevirtual
virtual bool sofa::simulation::BaseMechanicalVisitor::stopAtMechanicalMapping ( simulation::Node ,
core::BaseMapping map 
)
inlinevirtual
virtual bool sofa::simulation::BaseMechanicalVisitor::writeNodeData ( ) const
inlinevirtual

Return true if this visitor need to write to the node-specific data if given.

Reimplemented in sofa::simulation::MechanicalVNormVisitor, sofa::simulation::MechanicalVDotVisitor, and sofa::simulation::MechanicalGetDimensionVisitor.