OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
SceneNodeMultiVisualisation.h
Go to the documentation of this file.
1#pragma once
2
3namespace osg
4{
5 class Node;
6 class Switch;
7}
8
9#include "SceneNodeBase.h"
10#include "TextVisualiser.h"
11#include "Model.h"
12
13#include <string>
14#include <map>
15class Model;
16
18{
19public:
22
23 void setViewChange(const ot::ViewChangedStates& _state, const ot::WidgetViewBase::ViewType& _viewType);
24
25 virtual void setSelected(bool _selection, bool _selectionFromNavigationTree) override;
26
27 void setStorage(const std::string& _projectName) { projectName = _projectName; }
28
29 std::string getProjectName(void) { return projectName; }
30
31 Model* getModel(void) { return model; };
32 void setModel(Model* _model) { model = _model; };
33
34 virtual bool isItem1D(void) { return false; };
35 virtual bool isItem3D(void) { return false; };
36
37private:
38 std::string projectName;
39 Model* model = nullptr;
40};
41
The Model class is the main interface to the model. There may be multiple instances of this class....
Definition Model.h:94
Definition SceneNodeBase.h:14
Definition SceneNodeMultiVisualisation.h:18
virtual bool isItem3D(void)
Definition SceneNodeMultiVisualisation.h:35
void setStorage(const std::string &_projectName)
Definition SceneNodeMultiVisualisation.h:27
void setModel(Model *_model)
Definition SceneNodeMultiVisualisation.h:32
virtual void setSelected(bool _selection, bool _selectionFromNavigationTree) override
Definition SceneNodeMultiVisualisation.cpp:69
virtual ~SceneNodeMultiVisualisation()
Definition SceneNodeMultiVisualisation.cpp:8
std::string getProjectName(void)
Definition SceneNodeMultiVisualisation.h:29
void setViewChange(const ot::ViewChangedStates &_state, const ot::WidgetViewBase::ViewType &_viewType)
Definition SceneNodeMultiVisualisation.cpp:29
virtual bool isItem1D(void)
Definition SceneNodeMultiVisualisation.h:34
Model * getModel(void)
Definition SceneNodeMultiVisualisation.h:31
ViewType
Definition WidgetViewBase.h:49
Definition RubberbandOsgWrapper.h:22
ViewChangedStates
Definition ViewChangedStates.h:6