Marine systems simulation
CToTrawlDoor.h
1#pragma once
2
107#include "CTrawlDoor_base.h"
108#include "IBottomDepth.h"
109
111{
112public:
114 CToTrawlDoor(std::string sSimObjectName, ISimObjectCreator* pCreator);
115
116 void FinalSetup(const double dT, const double *const adX, ISimObjectCreator* const pCreator);
117
119 const double* OutRoll(const double dT, const double* const adX);
120
121 // Output port returning the pitch angle of the trawl door.
122 const double* OutPitch(const double dT, const double* const adX);
123
124 // Output port returning the angle of attack of the trawl door.
125 const double* OutAngleOfAttack(const double dT, const double* const adX);
126
127#ifdef FH_VISUALIZATION
129 virtual void RenderInit(Ogre::Root* const pOgreRoot, ISimObjectCreator* const pCreator);
130
132 virtual void RenderUpdate(const double dT, const double* const adX);
133#endif
134
135protected:
136
138 virtual void AddBottomForces();
139
140 IBottomDepth** m_ppBottom;
141 double m_dAvgSubmergence;
142 double m_aCornerPos_ned[4][3];
143 double m_adSubmergence[4];
144 double m_roll;
145 double m_pitch;
146
147};
Definition: CToTrawlDoor.h:111
CToTrawlDoor(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
virtual void AddBottomForces()
Adds the bottom forces to the trawl door.
const double * OutRoll(const double dT, const double *const adX)
Output port returning the roll angle of the trawl door.
Definition: CTrawlDoor_base.h:122
Definition: IBottomDepth.h:12