SOFA API  caf3b296
Open source framework for multi-physics simuation
sofa::core::behavior::MultiMatrixAccessor Class Referenceabstract

#include <MultiMatrixAccessor.h>

Inheritance diagram for sofa::core::behavior::MultiMatrixAccessor:

Detailed Description

Abstract class allowing to find the part of the mechanical matrix associated with a given MechanicalState or pair of MechanicalState (for interaction forces and mappings).


class  InteractionMatrixRef
 Simple structure holding a reference to the submatrix related to the interactions between two MechanicalStates. More...
class  MatrixRef
 Simple structure holding a reference to the submatrix related to one MechanicalState. More...

Public Member Functions

virtual ~MultiMatrixAccessor ()
virtual void addMechanicalState (const BaseMechanicalState *mstate)
virtual void addMechanicalMapping (BaseMapping *mapping)
virtual void addMappedMechanicalState (const BaseMechanicalState *mstate)
virtual int getGlobalDimension () const =0
virtual int getGlobalOffset (const BaseMechanicalState *mstate) const =0
virtual MatrixRef getMatrix (const BaseMechanicalState *mstate) const =0
virtual InteractionMatrixRef getMatrix (const BaseMechanicalState *mstate1, const BaseMechanicalState *mstate2) const =0

Constructor details

sofa::core::behavior::MultiMatrixAccessor::~MultiMatrixAccessor ( )

Function details

void sofa::core::behavior::MultiMatrixAccessor::addMappedMechanicalState ( const BaseMechanicalState mstate)
void sofa::core::behavior::MultiMatrixAccessor::addMechanicalMapping ( BaseMapping mapping)
void sofa::core::behavior::MultiMatrixAccessor::addMechanicalState ( const BaseMechanicalState mstate)