MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
MBDynParser::RefVec3Manip Class Reference

#include <mbpar.h>

Inheritance diagram for MBDynParser::RefVec3Manip:
Collaboration diagram for MBDynParser::RefVec3Manip:

Public Member Functions

 RefVec3Manip (MBDynParser &HP, const ReferenceFrame &rf, VecMatOpType type)
 
virtual ~RefVec3Manip (void)
 
virtual Vec3 Get (const Vec3 &v) const
 
- Public Member Functions inherited from MBDynParser::RefTplManip< Vec3 >
 RefTplManip (MBDynParser &HP, const ReferenceFrame &rf, VecMatOpType type)
 
virtual ~RefTplManip (void)
 
- Public Member Functions inherited from MBDynParser::TplManip< Vec3 >
virtual ~TplManip (void)
 
- Public Member Functions inherited from MBDynParser::Manip
 Manip (void)
 
virtual ~Manip (void)
 

Additional Inherited Members

- Protected Attributes inherited from MBDynParser::RefTplManip< Vec3 >
MBDynParserHP
 
const ReferenceFramerf
 
VecMatOpType type
 

Detailed Description

Definition at line 371 of file mbpar.h.

Constructor & Destructor Documentation

MBDynParser::RefVec3Manip::RefVec3Manip ( MBDynParser HP,
const ReferenceFrame rf,
VecMatOpType  type 
)

Definition at line 2853 of file mbpar.cc.

References NO_OP.

2857 : RefTplManip<Vec3>(HP, rf, type)
2858 {
2859  NO_OP;
2860 }
#define NO_OP
Definition: myassert.h:74
const ReferenceFrame & rf
Definition: mbpar.h:363
MBDynParser::RefVec3Manip::~RefVec3Manip ( void  )
virtual

Definition at line 2862 of file mbpar.cc.

References NO_OP.

2863 {
2864  NO_OP;
2865 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

Vec3 MBDynParser::RefVec3Manip::Get ( const Vec3 v) const
virtual

Implements MBDynParser::TplManip< Vec3 >.

Definition at line 2974 of file mbpar.cc.

References MBDYN_EXCEPT_ARGS, MBDynParser::VM_LAST, MBDynParser::VM_MATABS, MBDynParser::VM_MATREL, MBDynParser::VM_NONE, MBDynParser::VM_OMEABS, MBDynParser::VM_OMEREL, MBDynParser::VM_POSABS, MBDynParser::VM_POSREL, MBDynParser::VM_ROTABS, MBDynParser::VM_ROTREL, MBDynParser::VM_UNITVECABS, MBDynParser::VM_UNITVECREL, MBDynParser::VM_VECABS, MBDynParser::VM_VECREL, MBDynParser::VM_VELABS, and MBDynParser::VM_VELREL.

2975 {
2976  switch (type) {
2977  case VM_NONE:
2979 
2980  case VM_POSREL:
2981  return HP.GetPosRel(rf);
2982 
2983  case VM_POSABS:
2984  return HP.GetPosAbs(rf);
2985 
2986  case VM_VELREL:
2987  case VM_VELABS:
2988  // need offset
2990 
2991  case VM_OMEREL:
2992  return HP.GetOmeRel(rf);
2993 
2994  case VM_OMEABS:
2995  return HP.GetOmeAbs(rf);
2996 
2997  case VM_VECREL:
2998  return HP.GetVecRel(rf);
2999 
3000  case VM_VECABS:
3001  return HP.GetVecAbs(rf);
3002 
3003  case VM_UNITVECREL:
3004  return HP.GetUnitVecRel(rf);
3005 
3006  case VM_UNITVECABS:
3007  return HP.GetUnitVecAbs(rf);
3008 
3009  case VM_MATREL:
3010  case VM_MATABS:
3011  case VM_ROTREL:
3012  case VM_ROTABS:
3013  // fall thru
3014 
3015  default:
3016  case VM_LAST:
3018  }
3019 
3020  return v;
3021 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
Vec3 GetOmeRel(const ReferenceFrame &rf)
Definition: mbpar.cc:1518
Vec3 GetPosRel(const ReferenceFrame &rf)
Definition: mbpar.cc:1331
const ReferenceFrame & rf
Definition: mbpar.h:363
Vec3 GetOmeAbs(const ReferenceFrame &rf)
Definition: mbpar.cc:1551
Vec3 GetPosAbs(const ReferenceFrame &rf)
Definition: mbpar.cc:1401
Vec3 GetUnitVecAbs(const ReferenceFrame &rf)
Definition: mbpar.cc:1716
Vec3 GetVecRel(const ReferenceFrame &rf)
Definition: mbpar.cc:1584
Vec3 GetVecAbs(const ReferenceFrame &rf)
Definition: mbpar.cc:1641
Vec3 GetUnitVecRel(const ReferenceFrame &rf)
Definition: mbpar.cc:1695

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