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
53private:
55 void Release();
56
58 void UpdateOgreNodeOrientation(const ScalarPlaneSettings& settings);
59
60 Ogre::SceneManager* m_sceneMgr;
61 Ogre::Entity* m_entity;
62 Ogre::SceneNode* m_node;
63 Ogre::MeshPtr m_mesh;
64};
65
66} // namespace visual
67#endif // FH_VISUALIZATION
Visualization utilities.
Definition EnvironmentSettings.h:15