Marine systems simulation
CCameraController2.h
1
60#ifndef C_CAMERA_CONTROLLER2_H
61#define C_CAMERA_CONTROLLER2_H
62
63#include <string>
64
65#ifdef FH_VISUALIZATION
66# pragma warning(push)
67# pragma warning(disable : 4251)
68# pragma warning(disable : 4267)
69# include "CFhCamera.h"
70
71# include <Ogre.h>
72# include <OgreResourceGroupManager.h>
73# pragma warning(pop)
74#endif
75#include <SimObject.h>
76
77class CCameraController2 : public SimObject
78{
79 public:
80 CCameraController2(std::string sSimObjectName, ISimObjectCreator* pCreator);
81 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
82#ifdef FH_VISUALIZATION
83 void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator);
84 void RenderUpdate(const double T, const double* const X);
85
86 protected:
87 CFhCamera* m_FhCamera;
88#endif
89 int m_NumInput;
90 bool m_Interpolate;
91 bool m_UseDegrees;
92
93 ISignalPort** m_InPosition;
94 ISignalPort** m_InYaw;
95 ISignalPort** m_InPitch;
96
97 int m_Target;
98 double* m_StartTime;
99};
100
101#endif //C_CAMERA_CONTROLLER_H
Definition: CCameraController2.h:78