27namespace ak {
class aTreeWidget; };
28namespace ot {
class Property; }
29namespace ot {
class WidgetView; }
31#define VIEWER_SETTINGS_NAME "Viewer"
46 virtual ot::UID addTreeItem(
const std::string &treePath,
bool editable,
bool selectChildren)
override;
47 virtual void removeTreeItems(std::list<ot::UID> treeItemIDList)
override;
57 virtual void addKeyShortcut(
const std::string &keySequence)
override;
60 virtual double getDoublePropertyValue(
const std::string& _groupName,
const std::string& _itemName)
override;
82 virtual void removeUIElements(std::list<ViewerUIDtype> &itemIDList)
override;
84 virtual void displayText(
const std::string &text)
override;
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;
104 virtual void updateVTKEntity(
unsigned long long modelEntityID)
override;
110 virtual std::string
getOpenFileName(
const std::string& _title,
const std::string& _path,
const std::string& _filters)
override;
112 virtual std::string
getSaveFileName(
const std::string& _title,
const std::string& _path,
const std::string& _filters)
override;
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);
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);
153 void updateObjectColor(
ViewerUIDtype visModelID,
ViewerUIDtype modelEntityID,
double surfaceColorRGB[3],
double edgeColorRGB[3],
const std::string& materialType,
const std::string& textureType,
bool reflective);
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);
172 void prefetchDocumentsFromStorage(
const std::string &projectName, std::list<std::pair<unsigned long long, unsigned long long>> &prefetchIDs);
179 int _backgroundR,
int _backgroundG,
int _backgroundB,
int _overlayR,
int _overlayG,
int _overlayB);
194 void setTabTitles(
ViewerUIDtype visualizationModelID,
const std::string & _tabName3D,
const std::string & _tabName1D,
const std::string & _tabNameVersions);
205 std::vector<ViewerUIDtype> m_viewers;
210 int processingGroupCounter;
211 bool treeSelectionReceived;
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 ¬e, 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
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
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