Marine systems simulation
CDerivative.h
1#ifndef CDerivative_H
2#define CDerivative_H
3
58#include "SimObject.h"
59
60#include <string>
61
62class CDerivative : public SimObject
63{
64 public:
66 CDerivative(std::string sSimObjectName, ISimObjectCreator* pCreator);
68
69 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
70
71 const double* Output(const double T, const double* const X);
72
73#ifdef FH_VISUALIZATION
75 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
76
78 virtual void RenderUpdate(const double T, const double* const X) { }
79#endif
80
81 protected:
82 ISignalPort* m_Input;
83
84 double* m_Signal;
85
86
88 double* m_LastInput;
90};
91
92
93#endif
Definition: CDerivative.h:63
int m_iPortWidth
The width of the input and output ports.
Definition: CDerivative.h:87
double * m_LastInput
Variable at the previous point in time.
Definition: CDerivative.h:88
CDerivative(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
double m_LastOutputTime
Previous point in time.
Definition: CDerivative.h:89