Marine systems simulation
CVectorNorm.h
1#ifndef CVectorNorm_H
2#define CVectorNorm_H
3
53#include "SimObject.h"
54
55class CVectorNorm : public SimObject
56{
57 public:
59 CVectorNorm(std::string sSimObjectName, ISimObjectCreator* pCreator);
61
63 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
64
65 const double* Output(const double T, const double* const X);
66
67#ifdef FH_VISUALIZATION
69 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
70
72 virtual void RenderUpdate(const double T, const double* const X) { }
73#endif
74 protected:
75 int m_iPortWidth;
76 ISignalPort* m_Input;
77 double m_Signal;
78};
79
80
81#endif
Definition: CVectorNorm.h:56
CVectorNorm(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
ISignalPort * m_Input
The width of the input port.
Definition: CVectorNorm.h:76
void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CVectorNorm.h:63