Marine systems simulation
CAbsolute.h
1#ifndef CAbsolute_H
2#define CAbsolute_H
3
54#include "SimObject.h"
55
56#include <string>
57
58class CAbsolute : public SimObject
59{
60 public:
62 CAbsolute(std::string sSimObjectName, ISimObjectCreator* pCreator);
63 ~CAbsolute();
64
66 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
67
68 const double* Output(const double T, const double* const X);
69
70#ifdef FH_VISUALIZATION
72 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
73
75 virtual void RenderUpdate(const double T, const double* const X) { }
76#endif
77 protected:
79 ISignalPort* m_Input;
80 double* m_Signal;
81};
82
83
84#endif
Definition: CAbsolute.h:59
CAbsolute(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
int m_iPortWidth
The width of the input and output ports.
Definition: CAbsolute.h:78
void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CAbsolute.h:66