FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
ScalarPlane.h
1#pragma once
2#ifdef FH_VISUALIZATION
3
9# include <OgreEntity.h>
10# include <OgreMesh.h>
11# include <OgreRoot.h>
12# include <OgreSceneNode.h>
13
14namespace visual
15{
16
18struct ScalarPlaneSettings
19{
21 double position[3] = {0.0, 0.0, 0.0};
23 double localX[3] = {1.0, 0.0, 0.0};
25 double localY[3] = {0.0, 1.0, 0.0};
27 double size[2] = {50.0, 50.0};
28};
29
36class ScalarPlane
37{
38public:
45 ScalarPlane(Ogre::Root* ogreRoot, const ScalarPlaneSettings& settings, const Ogre::String& materialName);
46
48 ~ScalarPlane();
49
50 ScalarPlane(const ScalarPlane&) = delete;
51 ScalarPlane& operator=(const ScalarPlane&) = delete;
52
56 void SetFrame(const ScalarPlaneSettings& settings);
57
58private:
60 void Release();
61
62 Ogre::SceneManager* m_sceneMgr;
63 Ogre::Entity* m_entity;
64 Ogre::SceneNode* m_node;
65 Ogre::MeshPtr m_mesh;
66};
67
68} // namespace visual
69#endif // FH_VISUALIZATION
Visualization utilities.
Definition EnvironmentSettings.h:18