OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ViewerComponent.h
Go to the documentation of this file.
1/*
2 * ViewerComponent.h
3 *
4 * Created on: September 21, 2020
5 * Author: Alexander Kuester, Peter Thoma
6 * Copyright (c) 2020 openTwin
7 */
8
9#pragma once
10
11// C++ header
12#include <vector>
13
14// Wrapper header
15#include <uiServiceTypes.h> // Model and View types
16
17// Viewer header
18#include "ViewerAPI.h"
19#include "FrontendAPI.h"
20
21// openTwin header
22#include "OTCore/ServiceBase.h"
23
24// AK header
25#include <akCore/aNotifier.h>
26
27namespace ak { class aTreeWidget; };
28namespace ot { class Property; }
29namespace ot { class WidgetView; }
30
31#define VIEWER_SETTINGS_NAME "Viewer"
32
33class ViewerComponent : public FrontendAPI, public ak::aNotifier, public ot::ServiceBase
34{
35public:
37 virtual ~ViewerComponent();
38
39 // #####################################################################################################################################
40
41 // Extern calls
42
43 // Tree
44
45 virtual void clearTree(void) override;
46 virtual ot::UID addTreeItem(const std::string &treePath, bool editable, bool selectChildren) override;
47 virtual void removeTreeItems(std::list<ot::UID> treeItemIDList) override;
48 virtual void selectTreeItem(ot::UID treeItemID) override;
49 virtual void selectSingleTreeItem(ot::UID treeItemID) override;
50 virtual void expandSingleTreeItem(ot::UID treeItemID) override;
51 virtual bool isTreeItemExpanded(ot::UID treeItemID) override;
52 virtual void toggleTreeItemSelection(ot::UID treeItemID, bool considerChilds) override;
53 virtual void clearTreeSelection(void) override;
54 virtual void setTreeItemIcon(ot::UID treeItemID, int iconSize, const std::string &iconName) override;
55 virtual void setTreeItemText(ot::UID treeItemID, const std::string &text) override;
56 virtual void refreshSelection(void) override;
57 virtual void addKeyShortcut(const std::string &keySequence) override;
58 virtual void fillPropertyGrid(const ot::PropertyGridCfg& configuration) override;
59 virtual void setDoublePropertyValue(const std::string& _groupName, const std::string& _itemName, double value) override;
60 virtual double getDoublePropertyValue(const std::string& _groupName, const std::string& _itemName) override;
61 virtual void lockSelectionAndModification(bool flag) override;
62 virtual void removeViewer(ot::UID viewerID) override;
63
64 virtual void closeView(const std::string& _entityName, ot::WidgetViewBase::ViewType _viewType) override;
65
66 virtual ot::WidgetView* getCurrentView(void) override;
67
68 virtual bool getCurrentViewIsModified(void) override;
69
70 // Menu/Widgets
71
72 virtual ViewerUIDtype addMenuPage(const std::string &pageName) override;
73 virtual ViewerUIDtype addMenuGroup(ViewerUIDtype menuPageID, const std::string &groupName) override;
74 virtual ViewerUIDtype addMenuSubGroup(ViewerUIDtype _menuGroupID, const std::string& _subGroupName) override;
75 virtual ViewerUIDtype addMenuPushButton(ViewerUIDtype menuGroupID, const std::string &buttonName, const std::string &iconName) override;
76 virtual ViewerUIDtype addMenuPushButton(ViewerUIDtype menuGroupID, const std::string &buttonName, const std::string &iconName, const std::string &keySequence) override;
77 virtual void setMenuPushButtonToolTip(ViewerUIDtype _buttonID, const std::string& _toolTip) override;
78
79 virtual void setCurrentMenuPage(const std::string& _pageName) override;
80 virtual std::string getCurrentMenuPage(void) override;
81
82 virtual void removeUIElements(std::list<ViewerUIDtype> &itemIDList) override;
83
84 virtual void displayText(const std::string &text) override;
85
86 virtual void setCurrentVisualizationTabFromEntityName(const std::string& _entityName, ot::WidgetViewBase::ViewType _viewType) override;
87 virtual void setCurrentVisualizationTabFromTitle(const std::string& _tabTitle) override;
88 virtual std::string getCurrentVisualizationTabTitle(void) override;
89
90 virtual void requestSaveForCurrentVisualizationTab(void) override;
91
92 virtual void enableDisableControls(const ot::UIDList& _enabledControls, const ot::UIDList& _disabledControls) override;
93
94 virtual void entitiesSelected(ot::serviceID_t replyTo, const std::string &selectionAction, const std::string &selectionInfo, std::list<std::string> &optionNames, std::list<std::string> &optionValues) override;
95
96 virtual void rubberbandFinished(ot::serviceID_t creatorId, const std::string &note, const std::string &pointJson, const std::vector<double> &transform) override;
97
98 virtual void updateSettings(const ot::PropertyGridCfg& _config) override;
99
100 virtual void loadSettings(ot::PropertyGridCfg& _config) override;
101
102 virtual void saveSettings(const ot::PropertyGridCfg& _config) override;
103
104 virtual void updateVTKEntity(unsigned long long modelEntityID) override;
105
106 virtual void messageModelService(const std::string& _message) override;
107
108 virtual void removeGraphicsElements(ot::UID _modelID) override;
109
110 virtual std::string getOpenFileName(const std::string& _title, const std::string& _path, const std::string& _filters) override;
111
112 virtual std::string getSaveFileName(const std::string& _title, const std::string& _path, const std::string& _filters) override;
113
114 // #####################################################################################################################################
115
116 void setProcessingGroupOfMessages(bool _flag);
117
118 // Intern calls
119
120 virtual void notify(
121 ak::UID _senderId,
122 ak::eventType _event,
123 int _info1,
124 int _info2
125 ) override;
126
129 void resetAllViews3D(ViewerUIDtype visualizationModelID);
130 void refreshAllViews(ViewerUIDtype visualizationModelID);
131 void clearSelection(ViewerUIDtype visualizationModelID);
132 void refreshSelection(ViewerUIDtype visualizationModelID);
133 void selectObject(ModelUIDtype visualizationModelID, ak::UID entityID);
134 void addNodeFromFacetData(ViewerUIDtype visModelID, const std::string &treeName, double surfaceColorRGB[3],
135 double edgeColorRGB[3], ViewerUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool backFaceCulling, double offsetFactor, bool isEditable, std::vector<Geometry::Node> &nodes,
136 std::list<Geometry::Triangle> &triangles, std::list<Geometry::Edge> &edges, std::map<ot::UID, std::string>& faceNameMap, std::string &errors, bool selectChildren, bool manageParentVisibility, bool manageChildVisibility, bool showWhenSelected);
137 void addNodeFromFacetDataBase(ViewerUIDtype visModelID, const std::string &treeName, double surfaceColorRGB[3], double edgeColorRGB[3], const std::string &materialType, const std::string &textureType, bool reflective, ModelUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool backFaceCulling,
138 double offsetFactor, bool isHidden, bool isEditable, const std::string &projectName, ak::UID entityID, ak::UID entityVersion, bool selectChildren, bool manageParentVisibility, bool manageChildVisibility, bool showWhenSelected, std::vector<double> &transformation);
139 void addVisualizationContainerNode(ViewerUIDtype visModelID, const std::string &treeName, ViewerUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool editable);
140
141 virtual void addVisualizationVis2D3DNode(ViewerUIDtype visModelID, const std::string &treeName, ModelUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool isHidden, bool editable, const std::string &projectName, ViewerUIDtype visualizationDataID, ViewerUIDtype visualizationDataVersion);
142 virtual void updateVisualizationVis2D3DNode(ViewerUIDtype visModelID, ViewerUIDtype modelEntityID, const std::string &projectName, ViewerUIDtype visualizationDataID, ViewerUIDtype visualizationDataVersion);
143
144 void addVisualizationAnnotationNode(ViewerUIDtype visModelID, const std::string &treeName, ViewerUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool isHidden,
145 const double edgeColorRGB[3],
146 const std::vector<std::array<double, 3>> &points,
147 const std::vector<std::array<double, 3>> &points_rgb,
148 const std::vector<std::array<double, 3>> &triangle_p1,
149 const std::vector<std::array<double, 3>> &triangle_p2,
150 const std::vector<std::array<double, 3>> &triangle_p3,
151 const std::vector<std::array<double, 3>> &triangle_rgb);
152
153 void updateObjectColor(ViewerUIDtype visModelID, ViewerUIDtype modelEntityID, double surfaceColorRGB[3], double edgeColorRGB[3], const std::string& materialType, const std::string& textureType, bool reflective);
154 void updateMeshColor(ViewerUIDtype visModelID, ViewerUIDtype modelEntityID, double colorRGB[3]);
155 void updateObjectFacetsFromDataBase(ViewerUIDtype visModelID, ViewerUIDtype modelEntityID, unsigned long long entityID, unsigned long long entityVersion);
156 void enterEntitySelectionMode(ViewerUIDtype visualizationModelID, ot::serviceID_t replyTo, const std::string &selectionType,
157 bool allowMultipleSelection, const std::string &selectionFilter, const std::string &selectionAction, const std::string &selectionMessage,
158 std::list<std::string> &optionNames, std::list<std::string> &optionValues);
159 void freeze3DView(ViewerUIDtype visModelID, bool flag);
160 void removeShapes(ViewerUIDtype visualizationModelID, std::list<ViewerUIDtype> entityID);
161 void setTreeStateRecording(ViewerUIDtype visualizationModelID, bool flag);
162 void setShapeVisibility(ModelUIDtype visualizationModelID, std::list<ModelUIDtype> visibleID, std::list<ModelUIDtype> hiddenID);
163 void hideEntities(ModelUIDtype visualizationModelID, std::list<ModelUIDtype> hiddenID);
164 void showBranch(ModelUIDtype visualizationModelID, const std::string &branchName);
165 void hideBranch(ModelUIDtype visualizationModelID, const std::string &branchName);
166 void getSelectedModelEntityIDs(std::list<ViewerUIDtype> &selected);
167 void getSelectedVisibleModelEntityIDs(std::list<ViewerUIDtype> &selected);
168 void setFontPath(const QString & _path);
170 void deleteModel(ViewerUIDtype viewerUID);
171 void isModified(ViewerUIDtype viewerUID, bool modifiedState);
172 void prefetchDocumentsFromStorage(const std::string &projectName, std::list<std::pair<unsigned long long, unsigned long long>> &prefetchIDs);
173
175
176 void viewerTabChanged(const std::string& _tabTitle, ot::WidgetViewBase::ViewType _type);
177
178 ViewerUIDtype createViewer(ModelUIDtype _modelUid, double _scaleWidth, double _scaleHeight,
179 int _backgroundR, int _backgroundG, int _backgroundB, int _overlayR, int _overlayG, int _overlayB);
180
182 void setDataModel(ViewerUIDtype viewerUID, ModelUIDtype modelUID);
183 void activateModel(ViewerUIDtype viewerUID);
185
186 void setColors(const ot::Color & _background, const ot::Color & _foreground);
187
188 void setDataBaseConnectionInformation(const std::string &databaseURL, const std::string &userName, const std::string &encryptedPassword);
189
192 void handleSelectionChanged(bool _selectionFromTree);
193
194 void setTabTitles(ViewerUIDtype visualizationModelID, const std::string & _tabName3D, const std::string & _tabName1D, const std::string & _tabNameVersions);
195
196 void shortcutActivated(const std::string &keySequence);
197
198 void settingsItemChanged(const ot::Property* _property);
199
200 bool propertyGridValueChanged(const ot::Property* _property);
201
202 void viewDataModifiedChanged(const std::string& _entityName, ot::WidgetViewBase::ViewType _viewType, bool _isModified);
203
204private:
205 std::vector<ViewerUIDtype> m_viewers;
206
207 ViewerComponent(const ViewerComponent &) = delete;
208 ViewerComponent & operator = (const ViewerComponent &) = delete;
209
210 int processingGroupCounter;
211 bool treeSelectionReceived;
212
213 // Attributes
214};
bsoncxx::types::value value
Definition DocumentManager.h:16
@ nodes
Definition MonitorSettings.h:17
@ edges
Definition MonitorSettings.h:17
Definition ViewerComponent.h:34
virtual void removeTreeItems(std::list< ot::UID > treeItemIDList) override
Definition ViewerComponent.cpp:126
virtual void addVisualizationVis2D3DNode(ViewerUIDtype visModelID, const std::string &treeName, ModelUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool isHidden, bool editable, const std::string &projectName, ViewerUIDtype visualizationDataID, ViewerUIDtype visualizationDataVersion)
Definition ViewerComponent.cpp:800
virtual void expandSingleTreeItem(ot::UID treeItemID) override
Definition ViewerComponent.cpp:163
void addVisualizationContainerNode(ViewerUIDtype visModelID, const std::string &treeName, ViewerUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool editable)
Definition ViewerComponent.cpp:787
virtual bool isTreeItemExpanded(ot::UID treeItemID) override
Definition ViewerComponent.cpp:174
virtual void setTreeItemText(ot::UID treeItemID, const std::string &text) override
Definition ViewerComponent.cpp:113
virtual void setCurrentVisualizationTabFromTitle(const std::string &_tabTitle) override
Definition ViewerComponent.cpp:423
bool propertyGridValueChanged(const ot::Property *_property)
Definition ViewerComponent.cpp:1147
void handleSelectionChanged(bool _selectionFromTree)
Handle navigation tree selection changed event.
Definition ViewerComponent.cpp:633
void setDataBaseConnectionInformation(const std::string &databaseURL, const std::string &userName, const std::string &encryptedPassword)
Definition ViewerComponent.cpp:1122
virtual void removeUIElements(std::list< ViewerUIDtype > &itemIDList) override
Definition ViewerComponent.cpp:392
virtual void requestSaveForCurrentVisualizationTab(void) override
Definition ViewerComponent.cpp:432
virtual ot::UID addTreeItem(const std::string &treePath, bool editable, bool selectChildren) override
Definition ViewerComponent.cpp:82
void enterEntitySelectionMode(ViewerUIDtype visualizationModelID, ot::serviceID_t replyTo, const std::string &selectionType, bool allowMultipleSelection, const std::string &selectionFilter, const std::string &selectionAction, const std::string &selectionMessage, std::list< std::string > &optionNames, std::list< std::string > &optionValues)
Definition ViewerComponent.cpp:880
void setTreeStateRecording(ViewerUIDtype visualizationModelID, bool flag)
Definition ViewerComponent.cpp:710
virtual void enableDisableControls(const ot::UIDList &_enabledControls, const ot::UIDList &_disabledControls) override
Definition ViewerComponent.cpp:486
void removeShapes(ViewerUIDtype visualizationModelID, std::list< ViewerUIDtype > entityID)
Definition ViewerComponent.cpp:922
ot::WidgetView * getPlotWidget(ViewerUIDtype _viewerID)
Definition ViewerComponent.cpp:1041
void prefetchDocumentsFromStorage(const std::string &projectName, std::list< std::pair< unsigned long long, unsigned long long > > &prefetchIDs)
Definition ViewerComponent.cpp:1030
void addVisualizationAnnotationNode(ViewerUIDtype visModelID, const std::string &treeName, ViewerUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool isHidden, const double edgeColorRGB[3], const std::vector< std::array< double, 3 > > &points, const std::vector< std::array< double, 3 > > &points_rgb, const std::vector< std::array< double, 3 > > &triangle_p1, const std::vector< std::array< double, 3 > > &triangle_p2, const std::vector< std::array< double, 3 > > &triangle_p3, const std::vector< std::array< double, 3 > > &triangle_rgb)
Definition ViewerComponent.cpp:826
void hideEntities(ModelUIDtype visualizationModelID, std::list< ModelUIDtype > hiddenID)
Definition ViewerComponent.cpp:944
void setShapeVisibility(ModelUIDtype visualizationModelID, std::list< ModelUIDtype > visibleID, std::list< ModelUIDtype > hiddenID)
Definition ViewerComponent.cpp:933
void shortcutActivated(const std::string &keySequence)
Definition ViewerComponent.cpp:1137
virtual void setTreeItemIcon(ot::UID treeItemID, int iconSize, const std::string &iconName) override
Definition ViewerComponent.cpp:96
void deleteModel(ViewerUIDtype viewerUID)
Definition ViewerComponent.cpp:1020
void deactivateCurrentlyActiveModel(void)
Definition ViewerComponent.cpp:1098
virtual void notify(ak::UID _senderId, ak::eventType _event, int _info1, int _info2) override
Will notify this receiver that a message was received by a sender.
Definition ViewerComponent.cpp:612
virtual void updateVTKEntity(unsigned long long modelEntityID) override
Definition ViewerComponent.cpp:543
virtual void displayText(const std::string &text) override
Definition ViewerComponent.cpp:414
void getSelectedModelEntityIDs(std::list< ViewerUIDtype > &selected)
Definition ViewerComponent.cpp:977
virtual void removeViewer(ot::UID viewerID) override
Definition ViewerComponent.cpp:255
virtual void rubberbandFinished(ot::serviceID_t creatorId, const std::string &note, const std::string &pointJson, const std::vector< double > &transform) override
Definition ViewerComponent.cpp:522
void resetAllViews3D(ViewerUIDtype visualizationModelID)
Definition ViewerComponent.cpp:686
ot::WidgetView * getViewerWidget(ViewerUIDtype _viewerUID)
Definition ViewerComponent.cpp:1067
void viewerTabChanged(const std::string &_tabTitle, ot::WidgetViewBase::ViewType _type)
Definition ViewerComponent.cpp:1045
virtual void toggleTreeItemSelection(ot::UID treeItemID, bool considerChilds) override
Definition ViewerComponent.cpp:186
void settingsItemChanged(const ot::Property *_property)
Definition ViewerComponent.cpp:1141
ViewerComponent()
Definition ViewerComponent.cpp:57
void setProcessingGroupOfMessages(bool _flag)
Definition ViewerComponent.cpp:583
void updateObjectFacetsFromDataBase(ViewerUIDtype visModelID, ViewerUIDtype modelEntityID, unsigned long long entityID, unsigned long long entityVersion)
Definition ViewerComponent.cpp:869
virtual void setMenuPushButtonToolTip(ViewerUIDtype _buttonID, const std::string &_toolTip) override
Definition ViewerComponent.cpp:380
void updateMeshColor(ViewerUIDtype visModelID, ViewerUIDtype modelEntityID, double colorRGB[3])
Definition ViewerComponent.cpp:858
virtual ot::WidgetView * getCurrentView(void) override
Definition ViewerComponent.cpp:290
virtual void saveSettings(const ot::PropertyGridCfg &_config) override
Definition ViewerComponent.cpp:538
void clearSelection(ViewerUIDtype visualizationModelID)
Definition ViewerComponent.cpp:722
void setColors(const ot::Color &_background, const ot::Color &_foreground)
Definition ViewerComponent.cpp:1108
virtual ViewerUIDtype addMenuPage(const std::string &pageName) override
Definition ViewerComponent.cpp:306
virtual void refreshSelection(void) override
Definition ViewerComponent.cpp:208
virtual void closeView(const std::string &_entityName, ot::WidgetViewBase::ViewType _viewType) override
Definition ViewerComponent.cpp:266
void updateObjectColor(ViewerUIDtype visModelID, ViewerUIDtype modelEntityID, double surfaceColorRGB[3], double edgeColorRGB[3], const std::string &materialType, const std::string &textureType, bool reflective)
Definition ViewerComponent.cpp:847
virtual double getDoublePropertyValue(const std::string &_groupName, const std::string &_itemName) override
Definition ViewerComponent.cpp:237
virtual void clearTree(void) override
Definition ViewerComponent.cpp:70
virtual std::string getSaveFileName(const std::string &_title, const std::string &_path, const std::string &_filters) override
Definition ViewerComponent.cpp:574
void addNodeFromFacetData(ViewerUIDtype visModelID, const std::string &treeName, double surfaceColorRGB[3], double edgeColorRGB[3], ViewerUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool backFaceCulling, double offsetFactor, bool isEditable, std::vector< Geometry::Node > &nodes, std::list< Geometry::Triangle > &triangles, std::list< Geometry::Edge > &edges, std::map< ot::UID, std::string > &faceNameMap, std::string &errors, bool selectChildren, bool manageParentVisibility, bool manageChildVisibility, bool showWhenSelected)
Definition ViewerComponent.cpp:758
virtual void updateVisualizationVis2D3DNode(ViewerUIDtype visModelID, ViewerUIDtype modelEntityID, const std::string &projectName, ViewerUIDtype visualizationDataID, ViewerUIDtype visualizationDataVersion)
Definition ViewerComponent.cpp:813
void setTabTitles(ViewerUIDtype visualizationModelID, const std::string &_tabName3D, const std::string &_tabName1D, const std::string &_tabNameVersions)
Definition ViewerComponent.cpp:1133
void showBranch(ModelUIDtype visualizationModelID, const std::string &branchName)
Definition ViewerComponent.cpp:955
virtual void setCurrentVisualizationTabFromEntityName(const std::string &_entityName, ot::WidgetViewBase::ViewType _viewType) override
Definition ViewerComponent.cpp:419
virtual void setDoublePropertyValue(const std::string &_groupName, const std::string &_itemName, double value) override
Definition ViewerComponent.cpp:222
virtual ViewerUIDtype addMenuPushButton(ViewerUIDtype menuGroupID, const std::string &buttonName, const std::string &iconName) override
Definition ViewerComponent.cpp:344
virtual void selectTreeItem(ot::UID treeItemID) override
Definition ViewerComponent.cpp:141
void setFontPath(const QString &_path)
Definition ViewerComponent.cpp:999
virtual ViewerUIDtype addMenuSubGroup(ViewerUIDtype _menuGroupID, const std::string &_subGroupName) override
Definition ViewerComponent.cpp:338
void addNodeFromFacetDataBase(ViewerUIDtype visModelID, const std::string &treeName, double surfaceColorRGB[3], double edgeColorRGB[3], const std::string &materialType, const std::string &textureType, bool reflective, ModelUIDtype modelEntityID, const OldTreeIcon &treeIcons, bool backFaceCulling, double offsetFactor, bool isHidden, bool isEditable, const std::string &projectName, ak::UID entityID, ak::UID entityVersion, bool selectChildren, bool manageParentVisibility, bool manageChildVisibility, bool showWhenSelected, std::vector< double > &transformation)
Definition ViewerComponent.cpp:775
void activateModel(ViewerUIDtype viewerUID)
Definition ViewerComponent.cpp:1088
virtual void lockSelectionAndModification(bool flag) override
Definition ViewerComponent.cpp:251
virtual void loadSettings(ot::PropertyGridCfg &_config) override
Definition ViewerComponent.cpp:532
virtual void fillPropertyGrid(const ot::PropertyGridCfg &configuration) override
Definition ViewerComponent.cpp:218
virtual void setCurrentMenuPage(const std::string &_pageName) override
Definition ViewerComponent.cpp:384
virtual ~ViewerComponent()
Definition ViewerComponent.cpp:62
virtual void entitiesSelected(ot::serviceID_t replyTo, const std::string &selectionAction, const std::string &selectionInfo, std::list< std::string > &optionNames, std::list< std::string > &optionValues) override
Definition ViewerComponent.cpp:509
virtual void addKeyShortcut(const std::string &keySequence) override
Definition ViewerComponent.cpp:212
virtual std::string getCurrentVisualizationTabTitle(void) override
Definition ViewerComponent.cpp:427
virtual void selectSingleTreeItem(ot::UID treeItemID) override
Definition ViewerComponent.cpp:152
virtual void updateSettings(const ot::PropertyGridCfg &_config) override
Definition ViewerComponent.cpp:527
void isModified(ViewerUIDtype viewerUID, bool modifiedState)
Definition ViewerComponent.cpp:904
virtual ViewerUIDtype addMenuGroup(ViewerUIDtype menuPageID, const std::string &groupName) override
Definition ViewerComponent.cpp:322
void getSelectedVisibleModelEntityIDs(std::list< ViewerUIDtype > &selected)
Definition ViewerComponent.cpp:988
void setDataModel(ViewerUIDtype viewerUID, ModelUIDtype modelUID)
Definition ViewerComponent.cpp:1078
virtual void messageModelService(const std::string &_message) override
Definition ViewerComponent.cpp:548
ViewerUIDtype createModel(void)
Definition ViewerComponent.cpp:1009
void hideBranch(ModelUIDtype visualizationModelID, const std::string &branchName)
Definition ViewerComponent.cpp:966
void refreshAllViews(ViewerUIDtype visualizationModelID)
Definition ViewerComponent.cpp:698
virtual std::string getOpenFileName(const std::string &_title, const std::string &_path, const std::string &_filters) override
Definition ViewerComponent.cpp:565
ViewerUIDtype createViewer(ModelUIDtype _modelUid, double _scaleWidth, double _scaleHeight, int _backgroundR, int _backgroundG, int _backgroundB, int _overlayR, int _overlayG, int _overlayB)
Definition ViewerComponent.cpp:1049
virtual std::string getCurrentMenuPage(void) override
Definition ViewerComponent.cpp:388
void selectObject(ModelUIDtype visualizationModelID, ak::UID entityID)
Definition ViewerComponent.cpp:746
virtual void clearTreeSelection(void) override
Definition ViewerComponent.cpp:198
virtual bool getCurrentViewIsModified(void) override
Definition ViewerComponent.cpp:294
ViewerUIDtype getActiveViewerModel()
Definition ViewerComponent.cpp:673
virtual void removeGraphicsElements(ot::UID _modelID) override
Definition ViewerComponent.cpp:554
ViewerUIDtype getActiveDataModel()
Definition ViewerComponent.cpp:660
void freeze3DView(ViewerUIDtype visModelID, bool flag)
Definition ViewerComponent.cpp:893
void viewDataModifiedChanged(const std::string &_entityName, ot::WidgetViewBase::ViewType _viewType, bool _isModified)
Definition ViewerComponent.cpp:1157
This abstract class is used to provide the receiver functionallity used in the messaging class.
Definition aNotifier.h:22
The Color class is used to represent RGBA colors with integer values.
Definition Color.h:72
Definition PropertyGridCfg.h:21
The Property class is used as a base class for all Properties that can be displayed and modified in t...
Definition Property.h:21
General service information. The ServiceBase class is used to store the general service information.
Definition ServiceBase.h:24
ViewType
Definition WidgetViewBase.h:49
The WidgetView class is used to integrate the Qt-ADS functionallity into open twin.
Definition WidgetView.h:33
Definition uiAPI.h:45
unsigned long long UID
The UID datatype used for objects.
Definition globalDataTypes.h:65
eventType
Describes the type of an event.
Definition akCore.h:86
Definition Connector.h:8
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27
std::list< UID > UIDList
Unique identifier list.
Definition CoreTypes.h:31
unsigned short serviceID_t
ID type used to identify a service (16 bit unsigned integer).
Definition CoreTypes.h:14
ot::UID ModelUIDtype
Definition uiServiceTypes.h:16
ot::UID ViewerUIDtype
Definition uiServiceTypes.h:14