MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Eu2PhiWrap Class Reference
Inheritance diagram for Eu2PhiWrap:
Collaboration diagram for Eu2PhiWrap:

Public Member Functions

 Eu2PhiWrap (TplDriveCaller< Vec3 > *pDC, OrientationDescription od)
 
virtual ~Eu2PhiWrap (void)
 
virtual TplDriveCaller< Vec3 > * pCopy (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
virtual std::ostream & Restart_int (std::ostream &out) const
 
virtual Vec3 Get (const doublereal &dVar) const
 
virtual Vec3 Get (void) const
 
virtual bool bIsDifferentiable (void) const
 
virtual Vec3 GetP (void) const
 
virtual int getNDrives (void) const
 
- Public Member Functions inherited from TplDriveCaller< Vec3 >
virtual ~TplDriveCaller (void)
 

Private Attributes

TplDriveCaller< Vec3 > * m_pDC
 
OrientationDescription m_od
 

Detailed Description

Definition at line 41 of file module-eu2phi.cc.

Constructor & Destructor Documentation

Eu2PhiWrap::Eu2PhiWrap ( TplDriveCaller< Vec3 > *  pDC,
OrientationDescription  od 
)
inline

Definition at line 47 of file module-eu2phi.cc.

References NO_OP.

Referenced by pCopy().

47  : m_pDC(pDC), m_od(od) {
48  NO_OP;
49  };
TplDriveCaller< Vec3 > * m_pDC
OrientationDescription m_od
#define NO_OP
Definition: myassert.h:74
virtual Eu2PhiWrap::~Eu2PhiWrap ( void  )
inlinevirtual

Definition at line 51 of file module-eu2phi.cc.

References m_pDC.

51  {
52  delete m_pDC;
53  };
TplDriveCaller< Vec3 > * m_pDC

Member Function Documentation

virtual bool Eu2PhiWrap::bIsDifferentiable ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< Vec3 >.

Definition at line 99 of file module-eu2phi.cc.

99  {
100  return false;
101  };
virtual Vec3 Eu2PhiWrap::Get ( const doublereal dVar) const
inlinevirtual

Implements TplDriveCaller< Vec3 >.

Definition at line 70 of file module-eu2phi.cc.

References ASSERT, EULER_123, EULER_313, EULER_321, EulerAngles123_2MatR(), EulerAngles313_2MatR(), EulerAngles321_2MatR(), TplDriveCaller< T >::Get(), m_od, m_pDC, R, and RotManip::VecRot().

70  {
71  Vec3 E(m_pDC->Get(dVar));
72 
73  Mat3x3 R;
74  switch (m_od) {
75  case EULER_123:
76  R = EulerAngles123_2MatR(E);
77  break;
78 
79  case EULER_313:
80  R = EulerAngles313_2MatR(E);
81  break;
82 
83  case EULER_321:
84  R = EulerAngles321_2MatR(E);
85  break;
86 
87  default:
88  ASSERT(0);
89  }
90 
91  return RotManip::VecRot(R);
92  };
Definition: matvec3.h:98
TplDriveCaller< Vec3 > * m_pDC
virtual T Get(const doublereal &dVar) const =0
OrientationDescription m_od
Mat3x3 EulerAngles313_2MatR(const Vec3 &v)
Definition: matvec3.cc:1039
Vec3 VecRot(const Mat3x3 &Phi)
Definition: Rot.cc:136
Mat3x3 EulerAngles123_2MatR(const Vec3 &v)
Definition: matvec3.cc:1014
#define ASSERT(expression)
Definition: colamd.c:977
Mat3x3 EulerAngles321_2MatR(const Vec3 &v)
Definition: matvec3.cc:1064
Mat3x3 R

Here is the call graph for this function:

virtual Vec3 Eu2PhiWrap::Get ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< Vec3 >.

Definition at line 94 of file module-eu2phi.cc.

94  {
95  return Get(0.);
96  };
virtual Vec3 Get(void) const
virtual int Eu2PhiWrap::getNDrives ( void  ) const
inlinevirtual

Implements TplDriveCaller< Vec3 >.

Definition at line 106 of file module-eu2phi.cc.

106  {
107  return 1;
108  };
virtual Vec3 Eu2PhiWrap::GetP ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< Vec3 >.

Definition at line 102 of file module-eu2phi.cc.

References MBDYN_EXCEPT_ARGS.

102  {
104  };
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
virtual TplDriveCaller<Vec3>* Eu2PhiWrap::pCopy ( void  ) const
inlinevirtual

Implements TplDriveCaller< Vec3 >.

Definition at line 56 of file module-eu2phi.cc.

References Eu2PhiWrap(), m_od, m_pDC, and TplDriveCaller< T >::pCopy().

56  {
57  return new Eu2PhiWrap(m_pDC->pCopy(), m_od);
58  };
TplDriveCaller< Vec3 > * m_pDC
OrientationDescription m_od
virtual TplDriveCaller< T > * pCopy(void) const =0
Eu2PhiWrap(TplDriveCaller< Vec3 > *pDC, OrientationDescription od)

Here is the call graph for this function:

virtual std::ostream& Eu2PhiWrap::Restart ( std::ostream &  out) const
inlinevirtual

Implements TplDriveCaller< Vec3 >.

Definition at line 61 of file module-eu2phi.cc.

61  {
62  return out;
63  };
virtual std::ostream& Eu2PhiWrap::Restart_int ( std::ostream &  out) const
inlinevirtual

Implements TplDriveCaller< Vec3 >.

Definition at line 65 of file module-eu2phi.cc.

65  {
66  return out;
67  };

Member Data Documentation

OrientationDescription Eu2PhiWrap::m_od
private

Definition at line 44 of file module-eu2phi.cc.

Referenced by Get(), and pCopy().

TplDriveCaller<Vec3>* Eu2PhiWrap::m_pDC
private

Definition at line 43 of file module-eu2phi.cc.

Referenced by Get(), pCopy(), and ~Eu2PhiWrap().


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