29 class __declspec(dllexport) Notifier
33 virtual ~Notifier() {};
35 virtual void createTree(
void) {};
36 virtual void clearTree(
void) {};
37 virtual ot::UID addTreeItem(
const std::string &treePath,
bool editable,
bool selectChildren) {
return 0; };
38 virtual void removeTreeItems(std::list<ot::UID> treeItemIDList) {};
39 virtual void selectTreeItem(
ot::UID treeItemID) {};
40 virtual void selectSingleTreeItem(
ot::UID treeItemID) {};
41 virtual void expandSingleTreeItem(
ot::UID treeItemID) {};
42 virtual bool isTreeItemExpanded(
ot::UID treeItemID) {
return false; };
43 virtual void toggleTreeItemSelection(
ot::UID treeItemID,
bool considerChilds) {};
44 virtual void clearTreeSelection(
void) {};
45 virtual void setTreeItemIcon(
ot::UID treeItemID,
int iconSize,
const std::string &iconName) {};
46 virtual void setTreeItemText(
ot::UID treeItemID,
const std::string &text) {};
47 virtual void refreshSelection(
void) {};
48 virtual void addKeyShortcut(
const std::string &keySequence) {};
50 virtual void setDoublePropertyValue(
const std::string& _groupName,
const std::string& _itemName,
double value) {};
51 virtual double getDoublePropertyValue(
const std::string& _groupName,
const std::string& _itemName) {
return 0.0; };
52 virtual void lockSelectionAndModification(
bool flag) {};
53 virtual void removeViewer(
ot::UID viewerID) {};
57 virtual unsigned long long addMenuPage(
const std::string &pageName) {
return 0; };
58 virtual unsigned long long addMenuGroup(
unsigned long long menuPageID,
const std::string &groupName) {
return 0; };
59 virtual unsigned long long addMenuPushButton(
unsigned long long menuGroupID,
const std::string &buttonName,
const std::string &iconName) {
return 0; };
60 virtual unsigned long long addMenuPushButton(
unsigned long long menuGroupID,
const std::string &buttonName,
const std::string &iconName,
const std::string &keySequence) {
return 0; };
62 virtual void removeUIElements(std::list<unsigned long long> &itemIDList) {};
63 virtual void removeGraphicsElements(
ot::UID _modelID) {};
65 virtual void displayText(
const std::string &text) { };
68 virtual void setCurrentVisualizationTabFromTitle(
const std::string& _tabTitle) {};
69 virtual std::string getCurrentVisualizationTabTitle(
void) {
return ""; };
71 virtual void enableDisableControls(
const ot::UIDList& _enabledControls,
const ot::UIDList& _disabledControls) {};
73 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) {};
75 virtual void fatalError(
const std::string &message) {};
77 virtual void rubberbandFinished(
ot::serviceID_t creatorId,
const std::string ¬e,
const std::string &pointJson,
const std::vector<double> &transform) {}
85 virtual void updateVTKEntity(
unsigned long long modelEntityID) {};
87 virtual void messageModelService(
const std::string& _message) {};
90 __declspec(dllexport)
void registerNotifier(Notifier *notifier);
94 __declspec(dllexport)
void deactivateCurrentlyActiveModel(
void);
100 __declspec(dllexport)
ot::UID createViewer(
ot::UID osgModelID,
double scaleWidth,
double scaleHeight,
int backgroundR,
int backgroundG,
int backgroundB,
int overlayTextR,
int overlayTextG,
int overlayTextB);
112 __declspec(dllexport)
void setSelectedTreeItems(
const std::list<ot::UID>& _selectedTreeItems, std::list<unsigned long long>& _selectedModelItems, std::list<unsigned long long>& _selectedVisibleModelItems,
bool _selectionFromTree);
113 __declspec(dllexport)
void executeAction(
unsigned long long buttonID);
117 __declspec(dllexport)
void addNodeFromFacetData(
ot::UID osgModelID,
const std::string &treeName,
double surfaceColorRGB[3],
double edgeColorRGB[3],
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool backFaceCulling,
118 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,
119 bool selectChildren,
bool manageParentVisibility,
bool manageChildVisibility,
bool showWhenSelected);
120 __declspec(dllexport)
void addNodeFromFacetDataBase(
ot::UID osgModelID,
const std::string &treeName,
double surfaceColorRGB[3],
double edgeColorRGB[3],
const std::string &materialType,
const std::string &textureType,
bool reflective,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool backFaceCulling,
121 double offsetFactor,
bool isHidden,
bool isEditable,
const std::string &projectName,
unsigned long long entityID,
unsigned long long entityVersion,
122 bool selectChildren,
bool manageParentVisibility,
bool manageChildVisibility,
bool showWhenSelected, std::vector<double> &transformation);
123 __declspec(dllexport)
void addMeshNodeFromDataBase(
ot::UID osgModelID,
const std::string &treeName,
double surfaceColorRGB[3],
double edgeColorRGB[3],
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
124 bool isHidden,
const std::string &projectName,
unsigned long long entityID,
unsigned long long entityVersion);
125 __declspec(dllexport)
void addMeshItemNodeFromDataBase(
ot::UID osgModelID,
const std::string &treeName,
double surfaceColorRGB[3],
double edgeColorRGB[3],
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
126 bool isHidden,
const std::string &projectName,
unsigned long long entityID,
unsigned long long entityVersion);
128 __declspec(dllexport)
void addVisualizationContainerNode(
ot::UID osgModelID,
const std::string &treeName,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool editable);
130 __declspec(dllexport)
void addVisualizationNode(
ot::UID osgModelID,
const std::string &treeName,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool editable,
ot::VisualisationTypes _visualisationTypes);
131 __declspec(dllexport)
void addVTKNode(
ot::UID osgModelID,
const std::string &treeName,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool isHidden,
bool editable,
const std::string &projectName,
unsigned long long visualizationDataID,
unsigned long long visualizationDataVersion);
132 __declspec(dllexport)
void updateVTKNode(
ot::UID osgModelID,
unsigned long long modelEntityID,
const std::string &projectName,
unsigned long long visualizationDataID,
unsigned long long visualizationDataVersion);
134 __declspec(dllexport)
void addVisualizationAnnotationNode(
ot::UID osgModelID,
const std::string &name,
unsigned long long modelEntityID,
135 const OldTreeIcon &treeIcons,
bool isHidden,
136 const double edgeColorRGB[3],
137 const std::vector<std::array<double, 3>> &points,
138 const std::vector<std::array<double, 3>> &points_rgb,
139 const std::vector<std::array<double, 3>> &triangle_p1,
140 const std::vector<std::array<double, 3>> &triangle_p2,
141 const std::vector<std::array<double, 3>> &triangle_p3,
142 const std::vector<std::array<double, 3>> &triangle_rgb);
143 __declspec(dllexport)
void addVisualizationAnnotationNodeDataBase(
ot::UID osgModelID,
const std::string &name,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool isHidden,
const std::string &projectName,
unsigned long long entityID,
unsigned long long entityVersion);
144 __declspec(dllexport)
void addVisualizationMeshNodeFromFacetDataBase(
ot::UID osgModelID,
const std::string &name,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
double edgeColorRGB[3],
bool displayTetEdges,
const std::string &projectName,
unsigned long long entityID,
unsigned long long entityVersion);
145 __declspec(dllexport)
void addVisualizationMeshItemNodeFromFacetDataBase(
ot::UID osgModelID,
const std::string &name,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool isHidden,
const std::string &projectName,
unsigned long long entityID,
unsigned long long entityVersion,
long long tetEdgesID,
long long tetEdgesVersion);
146 __declspec(dllexport)
void addVisualizationCartesianMeshNode(
ot::UID osgModelID,
const std::string &name,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool isHidden,
double edgeColorRGB[3],
double meshLineColorRGB[3],
bool showMeshLines,
const std::vector<double> &meshCoordsX,
const std::vector<double> &meshCoordsY,
const std::vector<double> &meshCoordsZ,
147 const std::string &projectName,
unsigned long long faceListEntityID,
unsigned long long faceListEntityVersion,
unsigned long long nodeListEntityID,
unsigned long long nodeListEntityVersion);
148 __declspec(dllexport)
void visualizationCartesianMeshNodeShowLines(
ot::UID osgModelID,
unsigned long long modelEntityID,
bool showMeshLines);
149 __declspec(dllexport)
void addVisualizationCartesianMeshItemNode(
ot::UID osgModelID,
const std::string &name,
unsigned long long modelEntityID,
const OldTreeIcon &treeIcons,
bool isHidden, std::vector<int> &facesList,
double color[3]);
150 __declspec(dllexport)
void visualizationTetMeshNodeTetEdges(
ot::UID osgModelID,
unsigned long long modelEntityID,
bool displayTetEdges);
154 __declspec(dllexport) std::list<std::string> getSelectedCurves(
ot::UID osgModelID);
162 __declspec(dllexport)
void setEntityName(
ot::UID modelEntityID,
const std::string &newName);
163 __declspec(dllexport)
void renameEntityPath(
const std::string &oldPath,
const std::string &newPath);
165 __declspec(dllexport)
void updateObjectColor(
ot::UID osgModelID,
unsigned long long modelEntityID,
double surfaceColorRGB[3],
double edgeColorRGB[3],
const std::string& materialType,
const std::string& textureType,
bool reflective);
166 __declspec(dllexport)
void updateMeshColor(
ot::UID osgModelID,
unsigned long long modelEntityID,
double colorRGB[3]);
167 __declspec(dllexport)
void updateObjectFacetsFromDataBase(
ot::UID osgModelID,
unsigned long long modelEntityID,
unsigned long long entityID,
unsigned long long entityVersion);
169 __declspec(dllexport)
void setClearColor(
ot::UID viewrID,
int backgroundR,
int backgroundG,
int backgroundB,
int overlayTextR,
int overlayTextG,
int overlayTextB);
173 __declspec(dllexport)
void getSelectedModelEntityIDs(std::list<unsigned long long> &selected);
174 __declspec(dllexport)
void getSelectedVisibleModelEntityIDs(std::list<unsigned long long> &selected);
178 __declspec(dllexport)
void removeShapes(
ot::UID osgModelID, std::list<unsigned long long> modelEntityID);
179 __declspec(dllexport)
void setShapeVisibility(
ot::UID osgModelID, std::list<unsigned long long> visibleID, std::list<unsigned long long> hiddenID);
180 __declspec(dllexport)
void hideEntities(
ot::UID osgModelID, std::list<unsigned long long> hiddenID);
182 __declspec(dllexport)
void showBranch(
ot::UID osgModelID,
const std::string &branchName);
183 __declspec(dllexport)
void hideBranch(
ot::UID osgModelID,
const std::string &branchName);
185 __declspec(dllexport)
void enterEntitySelectionMode(
ot::UID osgModelID,
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);
187 __declspec(dllexport)
void setFontPath(
const std::string &fontPath);
189 __declspec(dllexport)
void setDataBaseConnection(
const std::string &databaseURL,
const std::string &userName,
const std::string &password);
191 __declspec(dllexport)
void prefetchDocumentsFromStorage(
const std::string &projectName, std::list<std::pair<unsigned long long, unsigned long long>> &prefetchIDs);
193 __declspec(dllexport)
void setTabNames(
ot::UID _viewerID,
const std::string & _osgViewTabName,
const std::string & _plotTabName,
const std::string & _versionGraphTabName);
201 __declspec(dllexport)
void shortcutActivated(
const std::string & _keySequence);
209 __declspec(dllexport)
void freeze3DView(
unsigned long long osgModelID,
bool flag);