Marine systems simulation
CTextBox.h
1
11
12#ifndef CTEXTBOX_H
13#define CTEXTBOX_H
14
15#include <SimObject.h>
16#include <string>
17
18#ifdef FH_VISUALIZATION
19# pragma warning(push)
20# pragma warning(disable : 4251)
21# include "CTextRenderer.h"
22# pragma warning(pop)
23#endif
24class CTextBox : public SimObject
25{
26 public:
28 CTextBox(std::string sSimObjectName, ISimObjectCreator* pCreator);
29 ~CTextBox(void);
30
32 virtual void OdeFcn(const double dTime, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep){};
33
34#ifdef FH_VISUALIZATION
35 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator);
36 virtual void RenderUpdate(const double T, const double* const X);
37#endif
38 private:
39 std::string m_sPrefix;
40 std::string m_sSuffix;
41 int m_aiPosition[4];
42 double m_dInputGain;
43};
44
45#endif
This objects implements the text box overlay for OGRE 3D world.
Definition: CTextBox.h:25
virtual void OdeFcn(const double dTime, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CTextBox.h:32
CTextBox(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.