Marine systems simulation
CBillboardText.h
1#ifndef CBILLBOARDTEXT_H
2#define CBILLBOARDTEXT_H
3
64#ifdef FH_VISUALIZATION
65# pragma warning(push)
66# pragma warning(disable : 4251)
67# pragma warning(disable : 4267)
68# include "CFhCamera.h"
69# pragma warning(pop)
70# include "sfh/ogre/CMovableText.h"
71#endif
72
73#include "SimObject.h"
74
75#include <string>
76
77class CBillboardText : public SimObject
78{
79 public:
81 CBillboardText(std::string sSimObjectName, ISimObjectCreator* pCreator);
82 ~CBillboardText(void);
83#ifdef FH_VISUALIZATION
85 void RenderInit(Ogre::Root* const pOgreRoot, ISimObjectCreator* const pCreator);
86
88 void RenderUpdate(const double dT, const double* const adX);
89#endif
90
92 virtual void OdeFcn(const double dTime, const double* const adX,
93 double* const adXDot, const bool bIsMajorTimeStep){};
94
95 private:
96 ISignalPort* m_pInPos;
97 ISignalPort* m_pInVal;
98
99 //String prefix and suffix
100 std::string m_sPrefix;
101 std::string m_sSuffix;
102
103 int m_iSizeValPort;
104 double m_dTxtSize;
105 double m_dNormMultiplier;
106 int m_iValPrecision;
107 std::string m_arrayInterpretation;
108 std::string m_listOpeningBracket;
109 std::string m_listClosingBracket;
110 std::string m_listSeparator;
111
112#ifdef FH_VISUALIZATION
113 Ogre::SceneNode* m_RenderNode;
114 Ogre::CMovableText* m_BBTxt;
115#endif
116};
117
118#endif
Definition: CBillboardText.h:78
CBillboardText(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
virtual void OdeFcn(const double dTime, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CBillboardText.h:92