FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CFhCameraTrajectoryPlayer.h
1
9
10#pragma once
11
12#ifdef FH_VISUALIZATION
13//#include "CFhVis.h"
14# include <fhsim/visual/renderer/FhCamera.h>
15# include "CFhCameraController.h"
16# include "OgreSimpleSpline.h"
17#endif
18
19#include "CSimObject.h"
20
21#include <string>
22#include <vector>
23
24
25class CFhCameraTrajectoryPlayer : public CSimObject
26{
27 public:
29 CFhCameraTrajectoryPlayer(std::string sSimObjectName, ISimObjectCreator* pCreator);
31
33 virtual void OdeFcn(const double dTime, const double* const adX,
34 double* const adXDot) const;
35
36
37 private:
38 unsigned int m_iNumNodes;
39 std::string m_sType;
40 double m_tBegin;
41 double m_tEnd;
42#ifdef FH_VISUALIZATION
43 CFhCameraController* m_cameraController;
44 FhCamera* m_camera;
45 std::vector<double> m_time;
46 Ogre::SimpleSpline m_pos;
47 Ogre::SimpleSpline m_angle;
48#endif
49};
This objects implements a smooth camera movement, using data that has been read from an input file.
Definition CFhCameraTrajectoryPlayer.h:26
virtual void OdeFcn(const double dTime, const double *const adX, double *const adXDot) const
Calculates the state derivatives.
CFhCameraTrajectoryPlayer(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.