Marine systems simulation
CValuesDisplay.h
1#ifndef C_VALUES_DISPLAY_H
2#define C_VALUES_DISPLAY_H
3
56#include <SimObject.h>
57#include "trawl/subroutines/CValuesDisplayBase.h"
58#include "sfh/filters/FIR.h"
59
60class CValuesDisplay : public SimObject
61{
62public:
63
64 CValuesDisplay(const std::string& simObjectName, ISimObjectCreator* const creator);
65 virtual ~CValuesDisplay();
66
67 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep){};
68
69#ifdef FH_VISUALIZATION
70
71 void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator);
72
73 void RenderUpdate(const double T, const double* const X);
74#endif
75
76protected:
77# ifdef FH_VISUALIZATION
78 sfh::filters::FIR m_filter;
79 ISignalPort** m_inSignals;
80 std::vector<int> m_signalSizes;
81 std::string m_material;
82 double m_displayBox[4];
83 double* m_measurements;
84 int m_numSignals;
85 int m_numSignalsElements;
86 std::vector<CValuesDisplayBase::DisplayValue> m_displayValues;
87 CValuesDisplayBase* m_valueDisplay;
88# endif
89};
90#endif
Class for displaying a range of values in Ogre.
Definition: CValuesDisplay.h:61