OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Visualiser.h
Go to the documentation of this file.
1#pragma once
2#include "OTCore/CoreTypes.h"
4
5class SceneNodeBase;
6
8{
9public:
11 virtual ~Visualiser();
12
13 virtual void visualise(bool _setFocus = true) = 0;
14 bool isVisible() { return m_visible; }
16 void setVisible(bool _visible) { m_visible = _visible;}
17
19 void setViewIsOpen(bool _viewIsOpen) { m_viewIsOpen = _viewIsOpen; }
21
22 SceneNodeBase* getSceneNode(void) const { return m_node; };
23
25
26protected:
28 bool m_visible = true;
29 bool m_viewIsOpen = false;
31};
Definition SceneNodeBase.h:14
Definition Visualiser.h:8
bool m_visible
Definition Visualiser.h:28
virtual ~Visualiser()
Definition Visualiser.cpp:13
ot::WidgetViewBase::ViewType m_viewType
Definition Visualiser.h:30
bool m_viewIsOpen
Definition Visualiser.h:29
SceneNodeBase * m_node
Definition Visualiser.h:27
bool viewIsCurrentlyOpen()
Definition Visualiser.h:20
bool isVisible()
Definition Visualiser.h:14
virtual void visualise(bool _setFocus=true)=0
void setViewIsOpen(bool _viewIsOpen)
Switch for deciding if a data pull is necessary or if a lookup is necessary, if the displayed data ma...
Definition Visualiser.h:19
void setVisible(bool _visible)
Switch to turn a visualisation type off.
Definition Visualiser.h:16
Visualiser(SceneNodeBase *_sceneNode, ot::WidgetViewBase::ViewType _viewType)
Definition Visualiser.cpp:7
ot::WidgetViewBase::ViewType getViewType(void) const
Definition Visualiser.h:24
SceneNodeBase * getSceneNode(void) const
Definition Visualiser.h:22
ViewType
Definition WidgetViewBase.h:49