OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MicroserviceNotifier Class Reference

#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)
 

Constructor & Destructor Documentation

◆ MicroserviceNotifier()

MicroserviceNotifier::MicroserviceNotifier ( )
inline

◆ ~MicroserviceNotifier()

virtual MicroserviceNotifier::~MicroserviceNotifier ( )
inlinevirtual

Member Function Documentation

◆ activateMenuTab()

void MicroserviceNotifier::activateMenuTab ( const std::string & pageName)

◆ addMenuCheckBox()

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 )

◆ addMenuGroup()

void MicroserviceNotifier::addMenuGroup ( const std::string & pageName,
const std::string & groupName )

◆ addMenuLineEdit()

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 )

◆ addMenuPage()

void MicroserviceNotifier::addMenuPage ( const std::string & pageName)

◆ addMenuPushButton() [1/2]

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("") )

◆ addMenuPushButton() [2/2]

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("") )

◆ addMenuSubGroup()

void MicroserviceNotifier::addMenuSubGroup ( const std::string & pageName,
const std::string & groupName,
const std::string & subGroupName )

◆ addShortcut()

void MicroserviceNotifier::addShortcut ( const std::string & keySequence)

◆ addVisualizationAnnotationNode()

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 )

◆ addVisualizationContainerNode()

void MicroserviceNotifier::addVisualizationContainerNode ( ot::UID visModelID,
const std::string & treeName,
ot::UID modelEntityID,
const OldTreeIcon & treeIcons,
bool isEditable )

◆ addVisualizationNodeFromFacetData()

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 )

◆ addVisualizationNodeFromFacetDataBase()

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 )

◆ clearSelection()

void MicroserviceNotifier::clearSelection ( ot::UID visualizationModelID)

◆ displayMessage()

void MicroserviceNotifier::displayMessage ( const std::string & message)

◆ enableDisableControls()

void MicroserviceNotifier::enableDisableControls ( std::list< std::string > & enabled,
std::list< std::string > & disabled )

◆ enableQueuingHttpRequests()

void MicroserviceNotifier::enableQueuingHttpRequests ( bool flag)

◆ enterEntitySelectionMode()

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 )

◆ fillPropertyGrid()

void MicroserviceNotifier::fillPropertyGrid ( const ot::PropertyGridCfg & _configuration)

◆ hideEntities()

void MicroserviceNotifier::hideEntities ( ot::UID visualizationModelID,
std::list< ot::UID > & hiddenEntityIDs )

◆ isModified()

void MicroserviceNotifier::isModified ( ot::UID visualizationModelID,
bool modifiedState )

◆ isUIAvailable()

bool MicroserviceNotifier::isUIAvailable ( void )

◆ promptChoice()

void MicroserviceNotifier::promptChoice ( const std::string & _message,
ot::MessageDialogCfg::BasicIcon _icon,
ot::MessageDialogCfg::BasicButtons _buttons,
const std::string & _promptResponse,
const std::string & _parameter1 )

◆ queuedHttpRequestToUI()

void MicroserviceNotifier::queuedHttpRequestToUI ( ot::JsonDocument & doc,
std::list< std::pair< ot::UID, ot::UID > > & prefetchIds )

◆ refreshAllViews()

void MicroserviceNotifier::refreshAllViews ( ot::UID visualizationModelID)

◆ refreshSelection()

void MicroserviceNotifier::refreshSelection ( ot::UID visualizationModelID)

◆ removeShapesFromVisualization()

void MicroserviceNotifier::removeShapesFromVisualization ( ot::UID visualizationModelID,
std::list< ot::UID > entityID )

◆ removeUIElements()

void MicroserviceNotifier::removeUIElements ( const std::string & type,
std::list< std::string > & itemList )

◆ reportError()

void MicroserviceNotifier::reportError ( const std::string & message)

◆ reportInformation()

void MicroserviceNotifier::reportInformation ( const std::string & message)

◆ reportWarning()

void MicroserviceNotifier::reportWarning ( const std::string & message)

◆ requestFileForReading()

void MicroserviceNotifier::requestFileForReading ( const std::string & dialogTitle,
const std::string & fileMask,
const std::string & subsequentAction,
int siteID )

◆ resetAllViews()

void MicroserviceNotifier::resetAllViews ( ot::UID visualizationModelID)

◆ selectObject()

void MicroserviceNotifier::selectObject ( ot::UID visualizationModelID,
ot::UID entityID )

◆ sendMessageToService()

std::string MicroserviceNotifier::sendMessageToService ( bool queue,
const std::string & owner,
ot::JsonDocument & doc )

◆ setMenuCheckBox()

void MicroserviceNotifier::setMenuCheckBox ( const std::string & pageName,
const std::string & groupName,
const std::string & subGroupName,
const std::string & boxName,
bool checked )

◆ setMenuLineEdit()

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 )

◆ setShapeVisibility()

void MicroserviceNotifier::setShapeVisibility ( ot::UID visualizationModelID,
std::list< ot::UID > & visibleEntityIDs,
std::list< ot::UID > & hiddenEntityIDs )

◆ setToolTip()

void MicroserviceNotifier::setToolTip ( const std::string & item,
const std::string & text )

◆ setTreeStateRecording()

void MicroserviceNotifier::setTreeStateRecording ( ot::UID visualizationModelID,
bool flag )

◆ updateObjectColor()

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 )

◆ updateObjectFacetsFromDataBase()

void MicroserviceNotifier::updateObjectFacetsFromDataBase ( ot::UID visModelID,
ot::UID modelEntityID,
ot::UID entityID,
ot::UID entityVersion )

The documentation for this class was generated from the following files: