Marine systems simulation
CSceneDefinition.h
1
11
12#ifndef CSCENEDEFINITION_H
13#define CSCENEDEFINITION_H
14
15#ifdef FH_VISUALIZATION
16# include "CTextRenderer.h"
17//#include "CFhVis.h"
18# include "CFhCamera.h"
19
20# include <time.h>
21#endif
22
23#include "CSimObject.h"
24
25#include <string>
26
27class CSceneDefinition : public CSimObject
28{
29 public:
31 CSceneDefinition(std::string sSimObjectName, ISimObjectCreator* pCreator);
33#ifdef FH_VISUALIZATION
35 void RenderInit(Ogre::Root* pOgreRoot, ISimObjectCreator* pCreator);
36
38 void RenderUpdate(double dT, const double* adX);
39#endif
40
42 virtual void OdeFcn(const double dTime, const double* const adX,
43 double* const adXDot, const bool bIsMajorTimeStep){};
44
45
46 private:
47#ifdef FH_VISUALIZATION
48 double m_adCameraPos[3];
49 double m_dRealTimeFactor;
50 bool m_bShowRelTime;
51 time_t m_StartTime;
52
53#endif
54
55#ifdef FH_VISUALIZATION
56 int m_iRealTimePrec;
57 int m_iSimTimePrec;
58 int m_iRealTimeFacPrec;
59 //Ogre::Entity* m_RenderAC;
60 //Ogre::SceneNode** m_RenderNode;
61 //Ogre::SceneNode* m_RenderNodeLine;
62 //CDynamicLines* m_lines;
63#endif
64};
65
66#endif
This objects implements basic settings for a 3D OGRE scene that the user can change via the input fil...
Definition: CSceneDefinition.h:28
virtual void OdeFcn(const double dTime, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CSceneDefinition.h:42
CSceneDefinition(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.