Marine systems simulation
CGain.h
1#ifndef CGain_H
2#define CGain_H
3
57#include "SimObject.h"
58
59#include <string>
60
61class CGain : public SimObject
62{
63 public:
65 CGain(std::string sSimObjectName, ISimObjectCreator* pCreator);
66 ~CGain();
68 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
69
70
71 const double* Out(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 private:
81 ISignalPort* m_InPort;
82
83 double* m_Signal;
85 double* m_Gain;
87 int m_iPortWidth;
88 bool m_ScalarGain;
89};
90
91
92#endif
Definition: CGain.h:62
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CGain.h:68
CGain(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.