Marine systems simulation
Loading...
Searching...
No Matches
CCenterWeight.h
1#pragma once
2
79#include "SimObject.h"
80#include <EnvironmentProvider.h>
81#include <SeafloorForcesInterface.h>
82
83class CCenterWeight : public SimObject
84{
85public:
86 CCenterWeight(std::string sSimObjectName, ISimObjectCreator* pCreator);
87
89 virtual void OdeFcn(const double dT, const double* const adX,
90 double* const adXDot, const bool bIsMajorTimeStep);
91#ifdef FH_VISUALIZATION
93 void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator);
95 void RenderUpdate( const double T, const double* const X);
96#endif
97 void FinalSetup(const double dT, const double *const adX, ISimObjectCreator* const pCreator);
98 virtual const double* Position(const double dT, const double* const adX);
99 virtual const double* Velocity(const double dT, const double* const adX);
100protected:
101
102 ISignalPort* m_pInForce1;
103 ISignalPort* m_pInForce2;
104 ISignalPort* m_pInForce3;
107
108 double m_dMass;
109 double m_dDensity;
110 double m_dVisualizationScale;
111 double m_dRadius;
112 double m_dWeight;
113
114 environment::EnvironmentProvider *m_environment;
115 environment::SeafloorForcesInterface *m_seafloor;
116
117#ifdef FH_VISUALIZATION
118 std::string m_sMaterial;
119 std::string m_sMeshName;
120 double m_dScale;
121 Ogre::Entity* m_pRenderEntity;
122 Ogre::SceneNode* m_pRenderNode;
123 Ogre::SceneManager* m_pSceneMgr;
124#endif
125};
Definition CCenterWeight.h:84
int m_IStateVel
The index of the velocity state.
Definition CCenterWeight.h:106
int m_IStatePos
The index of the position state.
Definition CCenterWeight.h:105
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
ISignalPort * m_pInForce2
A pointer to the input force 2.
Definition CCenterWeight.h:103
ISignalPort * m_pInForce1
A pointer to the input force 1.
Definition CCenterWeight.h:102
ISignalPort * m_pInForce3
A pointer to the input force 3.
Definition CCenterWeight.h:104