22 CMass(std::string sSimObjectName, ISimObjectCreator* pCreator );
24#ifdef FH_VISUALIZATION
26 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
29 virtual void RenderUpdate(
const double T,
const double*
const X);
33 virtual void OdeFcn(
const double dT,
const double*
const adX,
34 double*
const adXDot,
const bool bIsMajorTimeStep);
37 virtual const double* Position(
const double dT,
const double*
const adX);
38 virtual const double* Velocity(
const double dT,
const double*
const adX);
47#ifdef FH_VISUALIZATION
48 std::string m_sMaterial;
49 std::string m_sMeshName;
51 Ogre::Entity* m_pRenderEntity;
52 Ogre::SceneNode* m_pRenderNode;
53 Ogre::SceneManager* m_pSceneMgr;
Class containing a 3dof mass simObjec without gravity.
Definition: CMass.h:19
double m_dg
The acceleration of gravity.
Definition: CMass.h:41
int m_IStateVel
The index of the velocity state.
Definition: CMass.h:44
double m_dMass
The mass of the object.
Definition: CMass.h:40
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
CMass(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
int m_IStatePos
The index of the position state.
Definition: CMass.h:43
ISignalPort * m_pInForce
A pointer to the input force.
Definition: CMass.h:42