#include "MicroserviceNotifier.h"
Public Member Functions | |
MicroserviceNotifier () | |
virtual | ~MicroserviceNotifier () |
void | requestFileForReading (const std::string &dialogTitle, const std::string &fileMask, const std::string &subsequentAction, int siteID) |
void | fillPropertyGrid (const ot::PropertyGridCfg &_configuration) |
void | addMenuPage (const std::string &pageName) |
void | addMenuGroup (const std::string &pageName, const std::string &groupName) |
void | addMenuSubGroup (const std::string &pageName, const std::string &groupName, const std::string &subGroupName) |
void | addMenuPushButton (const std::string &pageName, const std::string &groupName, const std::string &buttonName, const std::string &text, ot::LockTypeFlags &flags, const std::string &iconName, const std::string &iconFolder=std::string("Default"), const std::string &keySequence=std::string("")) |
void | addMenuPushButton (const std::string &pageName, const std::string &groupName, const std::string &subgroupName, const std::string &buttonName, const std::string &text, ot::LockTypeFlags &flags, const std::string &iconName, const std::string &iconFolder=std::string("Default"), const std::string &keySequence=std::string("")) |
void | addMenuCheckBox (const std::string &pageName, const std::string &groupName, const std::string &subGroupName, const std::string &boxName, const std::string &boxText, bool checked, ot::LockTypeFlags &flags) |
void | addMenuLineEdit (const std::string &pageName, const std::string &groupName, const std::string &subGroupName, const std::string &editName, const std::string &editText, const std::string &editLabel, ot::LockTypeFlags &flags) |
void | addShortcut (const std::string &keySequence) |
void | setMenuCheckBox (const std::string &pageName, const std::string &groupName, const std::string &subGroupName, const std::string &boxName, bool checked) |
void | setMenuLineEdit (const std::string &pageName, const std::string &groupName, const std::string &subGroupName, const std::string &editName, const std::string &editText, bool error) |
void | removeUIElements (const std::string &type, std::list< std::string > &itemList) |
void | activateMenuTab (const std::string &pageName) |
void | enableDisableControls (std::list< std::string > &enabled, std::list< std::string > &disabled) |
void | setToolTip (const std::string &item, const std::string &text) |
void | displayMessage (const std::string &message) |
void | reportError (const std::string &message) |
void | reportWarning (const std::string &message) |
void | reportInformation (const std::string &message) |
void | resetAllViews (ot::UID visualizationModelID) |
void | refreshAllViews (ot::UID visualizationModelID) |
void | clearSelection (ot::UID visualizationModelID) |
void | refreshSelection (ot::UID visualizationModelID) |
void | selectObject (ot::UID visualizationModelID, ot::UID entityID) |
void | promptChoice (const std::string &_message, ot::MessageDialogCfg::BasicIcon _icon, ot::MessageDialogCfg::BasicButtons _buttons, const std::string &_promptResponse, const std::string &_parameter1) |
void | addVisualizationNodeFromFacetData (ot::UID visModelID, const std::string &treeName, double surfaceColorRGB[3], double edgeColorRGB[3], ot::UID 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::string &errors, bool selectChildren, bool manageParentVisibility, bool manageChildVisibility, bool showWhenSelected) |
void | addVisualizationNodeFromFacetDataBase (ot::UID visModelID, const std::string &treeName, double surfaceColorRGB[3], double edgeColorRGB[3], const std::string &materialType, const std::string &textureType, bool textureReflective, ot::UID modelEntityID, const OldTreeIcon &treeIcons, bool backFaceCulling, double offsetFactor, bool isHidden, bool isEditable, const std::string &projectName, ot::UID entityID, ot::UID entityVersion, bool selectChildren, bool manageParentVisibility, bool manageChildVisibility, bool showWhenSelected, std::vector< double > &transformation) |
void | addVisualizationContainerNode (ot::UID visModelID, const std::string &treeName, ot::UID modelEntityID, const OldTreeIcon &treeIcons, bool isEditable) |
void | addVisualizationAnnotationNode (ot::UID visModelID, const std::string &name, ot::UID UID, 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) |
void | updateObjectColor (ot::UID visModelID, ot::UID modelEntityID, double surfaceColorRGB[3], double edgeColorRGB[3], const std::string &materialType, const std::string &textureType, bool textureReflective) |
void | updateObjectFacetsFromDataBase (ot::UID visModelID, ot::UID modelEntityID, ot::UID entityID, ot::UID entityVersion) |
void | removeShapesFromVisualization (ot::UID visualizationModelID, std::list< ot::UID > entityID) |
void | setShapeVisibility (ot::UID visualizationModelID, std::list< ot::UID > &visibleEntityIDs, std::list< ot::UID > &hiddenEntityIDs) |
void | hideEntities (ot::UID visualizationModelID, std::list< ot::UID > &hiddenEntityIDs) |
void | setTreeStateRecording (ot::UID visualizationModelID, bool flag) |
void | enterEntitySelectionMode (ot::UID visualizationModelID, const std::string &selectionType, bool allowMultipleSelection, const std::string &selectionFilter, const std::string &selectionAction, const std::string &selectionMessage, const std::map< std::string, std::string > &options) |
void | isModified (ot::UID visualizationModelID, bool modifiedState) |
void | enableQueuingHttpRequests (bool flag) |
void | queuedHttpRequestToUI (ot::JsonDocument &doc, std::list< std::pair< ot::UID, ot::UID > > &prefetchIds) |
std::string | sendMessageToService (bool queue, const std::string &owner, ot::JsonDocument &doc) |
bool | isUIAvailable (void) |
|
inline |
|
inlinevirtual |
void MicroserviceNotifier::activateMenuTab | ( | const std::string & | pageName | ) |
void MicroserviceNotifier::addMenuCheckBox | ( | const std::string & | pageName, |
const std::string & | groupName, | ||
const std::string & | subGroupName, | ||
const std::string & | boxName, | ||
const std::string & | boxText, | ||
bool | checked, | ||
ot::LockTypeFlags & | flags ) |
void MicroserviceNotifier::addMenuGroup | ( | const std::string & | pageName, |
const std::string & | groupName ) |
void MicroserviceNotifier::addMenuLineEdit | ( | const std::string & | pageName, |
const std::string & | groupName, | ||
const std::string & | subGroupName, | ||
const std::string & | editName, | ||
const std::string & | editText, | ||
const std::string & | editLabel, | ||
ot::LockTypeFlags & | flags ) |
void MicroserviceNotifier::addMenuPage | ( | const std::string & | pageName | ) |
void MicroserviceNotifier::addMenuPushButton | ( | const std::string & | pageName, |
const std::string & | groupName, | ||
const std::string & | buttonName, | ||
const std::string & | text, | ||
ot::LockTypeFlags & | flags, | ||
const std::string & | iconName, | ||
const std::string & | iconFolder = std::string("Default"), | ||
const std::string & | keySequence = std::string("") ) |
void MicroserviceNotifier::addMenuPushButton | ( | const std::string & | pageName, |
const std::string & | groupName, | ||
const std::string & | subgroupName, | ||
const std::string & | buttonName, | ||
const std::string & | text, | ||
ot::LockTypeFlags & | flags, | ||
const std::string & | iconName, | ||
const std::string & | iconFolder = std::string("Default"), | ||
const std::string & | keySequence = std::string("") ) |
void MicroserviceNotifier::addMenuSubGroup | ( | const std::string & | pageName, |
const std::string & | groupName, | ||
const std::string & | subGroupName ) |
void MicroserviceNotifier::addShortcut | ( | const std::string & | keySequence | ) |
void MicroserviceNotifier::addVisualizationAnnotationNode | ( | ot::UID | visModelID, |
const std::string & | name, | ||
ot::UID | UID, | ||
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 ) |
void MicroserviceNotifier::addVisualizationContainerNode | ( | ot::UID | visModelID, |
const std::string & | treeName, | ||
ot::UID | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
bool | isEditable ) |
void MicroserviceNotifier::addVisualizationNodeFromFacetData | ( | ot::UID | visModelID, |
const std::string & | treeName, | ||
double | surfaceColorRGB[3], | ||
double | edgeColorRGB[3], | ||
ot::UID | 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::string & | errors, | ||
bool | selectChildren, | ||
bool | manageParentVisibility, | ||
bool | manageChildVisibility, | ||
bool | showWhenSelected ) |
void MicroserviceNotifier::addVisualizationNodeFromFacetDataBase | ( | ot::UID | visModelID, |
const std::string & | treeName, | ||
double | surfaceColorRGB[3], | ||
double | edgeColorRGB[3], | ||
const std::string & | materialType, | ||
const std::string & | textureType, | ||
bool | textureReflective, | ||
ot::UID | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
bool | backFaceCulling, | ||
double | offsetFactor, | ||
bool | isHidden, | ||
bool | isEditable, | ||
const std::string & | projectName, | ||
ot::UID | entityID, | ||
ot::UID | entityVersion, | ||
bool | selectChildren, | ||
bool | manageParentVisibility, | ||
bool | manageChildVisibility, | ||
bool | showWhenSelected, | ||
std::vector< double > & | transformation ) |
void MicroserviceNotifier::clearSelection | ( | ot::UID | visualizationModelID | ) |
void MicroserviceNotifier::displayMessage | ( | const std::string & | message | ) |
void MicroserviceNotifier::enableDisableControls | ( | std::list< std::string > & | enabled, |
std::list< std::string > & | disabled ) |
void MicroserviceNotifier::enableQueuingHttpRequests | ( | bool | flag | ) |
void MicroserviceNotifier::enterEntitySelectionMode | ( | ot::UID | visualizationModelID, |
const std::string & | selectionType, | ||
bool | allowMultipleSelection, | ||
const std::string & | selectionFilter, | ||
const std::string & | selectionAction, | ||
const std::string & | selectionMessage, | ||
const std::map< std::string, std::string > & | options ) |
void MicroserviceNotifier::fillPropertyGrid | ( | const ot::PropertyGridCfg & | _configuration | ) |
void MicroserviceNotifier::hideEntities | ( | ot::UID | visualizationModelID, |
std::list< ot::UID > & | hiddenEntityIDs ) |
void MicroserviceNotifier::isModified | ( | ot::UID | visualizationModelID, |
bool | modifiedState ) |
bool MicroserviceNotifier::isUIAvailable | ( | void | ) |
void MicroserviceNotifier::promptChoice | ( | const std::string & | _message, |
ot::MessageDialogCfg::BasicIcon | _icon, | ||
ot::MessageDialogCfg::BasicButtons | _buttons, | ||
const std::string & | _promptResponse, | ||
const std::string & | _parameter1 ) |
void MicroserviceNotifier::queuedHttpRequestToUI | ( | ot::JsonDocument & | doc, |
std::list< std::pair< ot::UID, ot::UID > > & | prefetchIds ) |
void MicroserviceNotifier::refreshAllViews | ( | ot::UID | visualizationModelID | ) |
void MicroserviceNotifier::refreshSelection | ( | ot::UID | visualizationModelID | ) |
void MicroserviceNotifier::removeShapesFromVisualization | ( | ot::UID | visualizationModelID, |
std::list< ot::UID > | entityID ) |
void MicroserviceNotifier::removeUIElements | ( | const std::string & | type, |
std::list< std::string > & | itemList ) |
void MicroserviceNotifier::reportError | ( | const std::string & | message | ) |
void MicroserviceNotifier::reportInformation | ( | const std::string & | message | ) |
void MicroserviceNotifier::reportWarning | ( | const std::string & | message | ) |
void MicroserviceNotifier::requestFileForReading | ( | const std::string & | dialogTitle, |
const std::string & | fileMask, | ||
const std::string & | subsequentAction, | ||
int | siteID ) |
void MicroserviceNotifier::resetAllViews | ( | ot::UID | visualizationModelID | ) |
std::string MicroserviceNotifier::sendMessageToService | ( | bool | queue, |
const std::string & | owner, | ||
ot::JsonDocument & | doc ) |
void MicroserviceNotifier::setMenuCheckBox | ( | const std::string & | pageName, |
const std::string & | groupName, | ||
const std::string & | subGroupName, | ||
const std::string & | boxName, | ||
bool | checked ) |
void MicroserviceNotifier::setMenuLineEdit | ( | const std::string & | pageName, |
const std::string & | groupName, | ||
const std::string & | subGroupName, | ||
const std::string & | editName, | ||
const std::string & | editText, | ||
bool | error ) |
void MicroserviceNotifier::setShapeVisibility | ( | ot::UID | visualizationModelID, |
std::list< ot::UID > & | visibleEntityIDs, | ||
std::list< ot::UID > & | hiddenEntityIDs ) |
void MicroserviceNotifier::setToolTip | ( | const std::string & | item, |
const std::string & | text ) |
void MicroserviceNotifier::setTreeStateRecording | ( | ot::UID | visualizationModelID, |
bool | flag ) |
void MicroserviceNotifier::updateObjectColor | ( | ot::UID | visModelID, |
ot::UID | modelEntityID, | ||
double | surfaceColorRGB[3], | ||
double | edgeColorRGB[3], | ||
const std::string & | materialType, | ||
const std::string & | textureType, | ||
bool | textureReflective ) |
void MicroserviceNotifier::updateObjectFacetsFromDataBase | ( | ot::UID | visModelID, |
ot::UID | modelEntityID, | ||
ot::UID | entityID, | ||
ot::UID | entityVersion ) |