sofa::core::componentmodel::behavior::MechanicalMatrix Class Reference

Helper class allowing to construct mechanical expressions. More...

#include <MultiMatrix.h>

Collaboration diagram for sofa::core::componentmodel::behavior::MechanicalMatrix:

Collaboration graph
[legend]

Public Member Functions

 MechanicalMatrix (double m, double b, double k)
 MechanicalMatrix (const defaulttype::Vec< 3, double > &f)
double getMFact () const
double getBFact () const
double getKFact () const
MechanicalMatrix operator+ (const MechanicalMatrix &m2) const
MechanicalMatrix operator- (const MechanicalMatrix &m2) const
MechanicalMatrix operator- () const
MechanicalMatrix operator* (double f) const
MechanicalMatrix operator/ (double f) const

Static Public Attributes

static const MechanicalMatrix M
static const MechanicalMatrix B
static const MechanicalMatrix K

Protected Types

enum  { MFACT = 0, BFACT = 1, KFACT = 2 }

Protected Attributes

defaulttype::Vec< 3, double > factors

Friends

std::ostream & operator<< (std::ostream &out, const MechanicalMatrix &m)

Detailed Description

Helper class allowing to construct mechanical expressions.

Definition at line 46 of file MultiMatrix.h.


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
MFACT 
BFACT 
KFACT 

Definition at line 49 of file MultiMatrix.h.


Constructor & Destructor Documentation

sofa::core::componentmodel::behavior::MechanicalMatrix::MechanicalMatrix ( double  m,
double  b,
double  k 
) [inline]

Definition at line 52 of file MultiMatrix.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

sofa::core::componentmodel::behavior::MechanicalMatrix::MechanicalMatrix ( const defaulttype::Vec< 3, double > &  f  )  [inline, explicit]

Definition at line 53 of file MultiMatrix.h.


Member Function Documentation

double sofa::core::componentmodel::behavior::MechanicalMatrix::getBFact (  )  const [inline]

Definition at line 60 of file MultiMatrix.h.

References BFACT, and factors.

Referenced by sofa::core::componentmodel::behavior::MultiMatrix< Parent >::operator=().

double sofa::core::componentmodel::behavior::MechanicalMatrix::getKFact (  )  const [inline]

Definition at line 61 of file MultiMatrix.h.

References factors, and KFACT.

Referenced by sofa::core::componentmodel::behavior::MultiMatrix< Parent >::operator=().

double sofa::core::componentmodel::behavior::MechanicalMatrix::getMFact (  )  const [inline]

Definition at line 59 of file MultiMatrix.h.

References factors, and MFACT.

Referenced by sofa::core::componentmodel::behavior::MultiMatrix< Parent >::operator=().

MechanicalMatrix sofa::core::componentmodel::behavior::MechanicalMatrix::operator* ( double  f  )  const [inline]

Definition at line 66 of file MultiMatrix.h.

References factors, and MechanicalMatrix().

MechanicalMatrix sofa::core::componentmodel::behavior::MechanicalMatrix::operator+ ( const MechanicalMatrix &  m2  )  const [inline]

Definition at line 63 of file MultiMatrix.h.

References factors, and MechanicalMatrix().

MechanicalMatrix sofa::core::componentmodel::behavior::MechanicalMatrix::operator- (  )  const [inline]

Definition at line 65 of file MultiMatrix.h.

References factors, and MechanicalMatrix().

MechanicalMatrix sofa::core::componentmodel::behavior::MechanicalMatrix::operator- ( const MechanicalMatrix &  m2  )  const [inline]

Definition at line 64 of file MultiMatrix.h.

References factors, and MechanicalMatrix().

MechanicalMatrix sofa::core::componentmodel::behavior::MechanicalMatrix::operator/ ( double  f  )  const [inline]

Definition at line 68 of file MultiMatrix.h.

References factors, and MechanicalMatrix().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const MechanicalMatrix &  m 
) [friend]

Definition at line 69 of file MultiMatrix.h.


Field Documentation

Definition at line 56 of file MultiMatrix.h.

Definition at line 50 of file MultiMatrix.h.

Referenced by getBFact(), getKFact(), getMFact(), operator*(), operator+(), operator-(), and operator/().


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

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