Marine systems simulation
CSphere.h
1#ifndef CSphere_h__
2#define CSphere_h__
3
62#include "CSphereBase.h"
63#include <SimObject.h>
64#include <CEnvironment.h>
65
66class CSphere:public SimObject
67{
68
69public:
70 CSphere(std::string SimObjectName, ISimObjectCreator* Creator);
71 void OdeFcn(const double T, const double* const X, double* const XDot, const bool MajorTimeStep);
72 void FinalSetup(const double T, const double *const X, ISimObjectCreator* const Creator);
73 const double * Position( const double T, const double *const X);
74 const double * Velocity( const double T, const double *const X);
75
76private:
77 ISignalPort *m_IForce;
78
79 int m_PosIdx;
80 int m_VelIdx;
81
82 double m_adSphereD;
83 double m_adSphereMass;
84 double m_dDragCoeffSphere;
85 double m_Rho;
86 double m_adCableD;
87 double m_lift;
88
89 CEnvironment *m_Environment;
90
91#ifdef FH_VISUALIZATION
92public:
93 void RenderInit(Ogre::Root* const pOgreRoot, ISimObjectCreator* const pCreator);
94 void RenderUpdate(const double dT, const double* const adX);
95
96private:
97 Ogre::SceneNode *m_Node;
98 Ogre::Entity *m_Entity;
99 Ogre::String m_Material;
100 std::string m_SphereMesh;
101#endif
102
103};
104#endif // CSphere_h__
Definition: CEnvironment.h:10
Definition: CSphere.h:67