FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
VisualScalarPlane.h
1#pragma once
2
8#include "VisualBakedScalarField.h"
9
10#include <memory>
11#include <string>
12
13#ifdef FH_VISUALIZATION
14# include "visual/ScalarPlane.h"
15#endif
16
17namespace environmentmodels
18{
19
73{
74public:
82 VisualScalarPlane(std::string SimObjectName, ISimObjectCreator* Creator);
83
86
87#ifdef FH_VISUALIZATION
95 void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* Creator) override;
96
102 void RenderUpdate(const double T, const double* const X) override;
103#endif
104
105private:
112 void ResolvePlaneAxes(ISimObjectCreator* Creator);
113
114 double m_position[3];
115 double m_localX[3];
116 double m_localY[3];
117 double m_size[2];
118
119 int m_counts[3];
120
121#ifdef FH_VISUALIZATION
122 std::unique_ptr<visual::ScalarPlane> m_scalarPlane;
123#endif
124};
125
126} // namespace environmentmodels
Definition VisualBakedScalarField.h:46
Definition VisualScalarPlane.h:73
~VisualScalarPlane() override
Releases the plane geometry; the base releases the material and the textures.
VisualScalarPlane(std::string SimObjectName, ISimObjectCreator *Creator)
Environment SimObjects.
Definition Environment.h:25