The Model class is the main interface to the model. There may be multiple instances of this class. Each model stores all objects within the model and provides access to the model Entities. Each model Entity is identified by a UID which is automatically created and managed by the model class. 0 is not a valid UID and is returned in case of an error. More...
#include "Model.h"
Public Types | |
enum | eSelectionMode { ENTITY , FACE , SHAPE , EDGE } |
Public Member Functions | |
Model () | |
virtual | ~Model () |
void | setID (unsigned long long id) |
unsigned long long | getID (void) |
bool | isModelActive (void) |
void | activateModel (void) |
void | deactivateModel (void) |
void | attachViewer (Viewer *viewer) |
void | detachViewer (Viewer *viewer) |
void | resetAllViews1D (void) |
void | resetAllViews3D (void) |
void | refreshAllViews (void) |
void | clearSelection (void) |
void | refreshSelection (void) |
void | selectObject (unsigned long long modelEntityID) |
void | setTreeStateRecording (bool flag) |
void | addNodeFromFacetData (const std::string &treeName, double surfaceColorRGB[3], double edgeColorRGB[3], unsigned long long modelEntityID, const OldTreeIcon &treeIcons, bool backFaceCulling, double offsetFactor, bool isHidden, 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) |
void | addNodeFromFacetDataBase (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, double offsetFactor, bool isHidden, bool isEditable, const std::string &projectName, unsigned long long entityID, unsigned long long version, bool selectChildren, bool manageParentVisibility, bool manageChildVisibility, bool showWhenSelected, std::vector< double > &transformation) |
void | addSceneNode (const std::string &_treeName, ot::UID _modelEntityID, const OldTreeIcon &_treeIcons, bool _editable, ot::VisualisationTypes _visualisationTypes) |
void | addVisualizationContainerNode (const std::string &treeName, unsigned long long modelEntityID, const OldTreeIcon &treeIcons, bool editable) |
void | addVisualizationAnnotationNode (const std::string &treeName, unsigned long long 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) |
void | addVisualizationAnnotationNodeDataBase (const std::string &treeName, unsigned long long modelEntityID, const OldTreeIcon &treeIcons, bool isHidden, const std::string &projectName, unsigned long long entityID, unsigned long long version) |
void | addVisualizationMeshNodeFromFacetDataBase (const std::string &treeName, unsigned long long modelEntityID, const OldTreeIcon &treeIcons, double edgeColorRGB[3], bool displayTetEdges, const std::string &projectName, unsigned long long entityID, unsigned long long version) |
void | addVisualizationMeshItemNodeFromFacetDataBase (const std::string &treeName, unsigned long long modelEntityID, const OldTreeIcon &treeIcons, bool isHidden, const std::string &projectName, unsigned long long entityID, unsigned long long version, long long tetEdgesID, long long tetEdgesVersion) |
void | addVisualizationCartesianMeshNode (const std::string &treeName, 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, const std::string &projectName, unsigned long long faceListEntityID, unsigned long long faceListEntityVersion, unsigned long long nodeListEntityID, unsigned long long nodeListEntityVersion) |
void | visualizationCartesianMeshNodeShowLines (unsigned long long modelEntityID, bool showMeshLines) |
void | addVisualizationCartesianMeshItemNode (const std::string &treeName, unsigned long long modelEntityID, const OldTreeIcon &treeIcons, bool isHidden, std::vector< int > &facesList, double color[3]) |
void | visualizationTetMeshNodeTetEdges (unsigned long long modelEntityID, bool displayTetEdges) |
void | addVisualizationPlot1DNode (const ot::Plot1DDataBaseCfg &_config) |
void | addVisualizationResult1DNode (const ot::Plot1DCurveInfoCfg &_curveInfo, const OldTreeIcon &_treeIcons, bool _isHidden) |
void | visualizationResult1DPropertiesChanged (ot::UID _entityID, ot::UID _version) |
void | visualizationPlot1DPropertiesChanged (const ot::Plot1DCfg &_config) |
void | addVTKNode (const std::string &treeName, unsigned long long modelEntityID, const OldTreeIcon &treeIcons, bool isHidden, bool isEditable, const std::string &projectName, unsigned long long visualizationDataID, unsigned long long visualizationDataVersion) |
void | updateVTKNode (unsigned long long modelEntityID, const std::string &projectName, unsigned long long visualizationDataID, unsigned long long visualizationDataVersion) |
void | setEntityName (unsigned long long modelEntityID, const std::string &newName) |
void | renameEntityPath (const std::string &oldPath, const std::string &newPath) |
void | updateObjectColor (unsigned long long modelEntityID, double surfaceColorRGB[3], double edgeColorRGB[3], const std::string &materialType, const std::string &textureType, bool reflective) |
void | updateMeshColor (unsigned long long modelEntityID, double colorRGB[3]) |
void | updateObjectFacetsFromDataBase (unsigned long long modelEntityID, unsigned long long entityID, unsigned long long entityVersion) |
void | setSelectedTreeItems (const std::list< ot::UID > &_selectedTreeItems, std::list< unsigned long long > &_selectedModelItems, std::list< unsigned long long > &_selectedVisibleModelItems, bool _selectionFromTree) |
void | executeAction (unsigned long long _buttonID) |
void | setHoverTreeItem (ot::UID hoverTreeItemID) |
void | clearHoverView (void) |
void | setHoverView (SceneNodeBase *selectedItem) |
unsigned long long | getModelEntityIDFromTreeID (ot::UID treeItem) |
unsigned long long | getTreeIDFromModelID (ot::UID modelID) |
void | setDataModel (unsigned long long modelID) |
unsigned long long | getDataModel (void) |
osg::Node * | getOSGRootNode (void) |
void | getSelectedModelEntityIDs (std::list< unsigned long long > &selectedModelEntityID) |
void | getSelectedVisibleModelEntityIDs (std::list< unsigned long long > &selectedVisibleModelEntityID) |
void | getSelectedTreeItemIDs (std::list< ot::UID > &selectedTreeItemID) |
void | removeShapes (std::list< unsigned long long > modelEntityIDList) |
void | setShapeVisibility (std::list< unsigned long long > visibleID, std::list< unsigned long long > hiddenID) |
void | enterEntitySelectionMode (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) |
eSelectionMode | getCurrentSelectionMode (void) |
void | escapeKeyPressed (void) |
void | returnKeyPressed (void) |
void | processCurrentSelectionMode (osgUtil::Intersector *intersector, double sceneRadius, bool bCtrlKeyPressed) |
void | processHoverView (osgUtil::Intersector *intersector, double sceneRadius) |
void | addSceneNode (SceneNodeBase *node) |
void | setSceneNode (osg::Node *node, SceneNodeBase *sceneNode) |
void | removeSceneNode (osg::Node *node) |
void | notifySceneNodeAboutViewChange (const std::string &_sceneNodeName, const ot::ViewChangedStates &_state, const ot::WidgetViewBase::ViewType &_viewType) |
std::list< Viewer * > | getViewerList (void) |
unsigned int | getCurrentTraversalMask (void) |
unsigned int | getFaceSelectionTraversalMask (void) |
unsigned int | getEdgeSelectionTraversalMask (void) |
void | viewerTabChanged (const std::string &_tabTitle, ot::WidgetViewBase::ViewType _type) |
void | set1DPlotItemSelected (unsigned long long treeItemID, bool ctrlPressed) |
void | reset1DPlotItemSelection (void) |
void | hideEntities (std::list< unsigned long long > hiddenID) |
void | showBranch (const std::string &branchName) |
void | hideBranch (const std::string &branchName) |
void | freeze3DView (bool flag) |
void | ensure1DView (void) |
void | ensure3DView (void) |
bool | isSingleItemSelected (void) |
void | centerMouseCursor (void) |
bool | isWireFrameMode (void) |
osg::Matrix | getCurrentWorkingPlaneTransform (void) |
osg::Matrix | getCurrentWorkingPlaneTransformTransposedInverse (void) |
void | fillPropertyGrid (const ot::PropertyGridCfg &_configuration) |
void | setDoublePropertyGridValue (const std::string &_groupName, const std::string &_itemName, double value) |
double | getDoublePropertyGridValue (const std::string &_groupName, const std::string &_itemName) |
bool | propertyGridValueChanged (const ot::Property *_property) |
void | lockSelectionAndModification (bool flag) |
void | updateCapGeometry (osg::Vec3d normal, osg::Vec3d point) |
std::list< std::string > | getSelectedCurves () |
void | removedSelectedCurveNodes () |
void | setCursorText (const std::string &text) |
virtual void | entityRemoved (EntityBase *entity) override |
virtual void | entityModified (EntityBase *entity) override |
virtual void | sendMessageToViewer (ot::JsonDocument &doc, std::list< std::pair< ot::UID, ot::UID > > &prefetchIds) override |
Model (const std::string &_projectName, const std::string &_projectType, const std::string &_collectionName) | |
virtual | ~Model () |
ot::UID | createEntityUID (void) |
void | addEntityToMap (EntityBase *entity) |
void | removeEntityFromMap (EntityBase *entity, bool keepInProject, bool keepParameterDependency, bool considerChildren=true) |
void | removeEntityWithChildrenFromMap (EntityBase *entity, bool keepInProject, bool keepParameterDependency, std::list< EntityBase * > &removedEntities) |
bool | entityExists (ot::UID uID) |
void | getModelBox (double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax) |
void | setVisualizationModel (ot::UID visModelID) |
ot::UID | getVisualizationModel (void) |
void | executeAction (const std::string &action, ot::JsonDocument &doc) |
void | executeFunction (const std::string &function, const std::string &fileName, bool removeFile) |
void | modelItemRenamed (ot::UID entityID, const std::string &newName) |
void | keySequenceActivated (const std::string &keySequence) |
void | updateCurvesInPlot (const std::list< std::string > &curveNames, const ot::UID &plotID) |
std::map< std::string, bool > | getListOfEntityNames () |
std::map< std::string, ot::UID > | getEntityNameToIDMap () |
void | addCommonPropertiesToConfig (const std::list< ot::UID > &entityIDList, bool visibleOnly, ot::PropertyGridCfg &_config) |
void | setPropertiesFromJson (const std::list< ot::UID > &entityIDList, const ot::PropertyGridCfg &_configuration, bool updateEntities, bool itemsVisible) |
void | setVersionPropertiesFromJson (const ot::PropertyGridCfg &_configuration) |
void | deleteProperty (const std::list< ot::UID > &entityIDList, const std::string &propertyName, const std::string &propertyGroup) |
bool | entitiesNeedUpdate (void) |
void | updateEntities (bool itemsVisible) |
void | deleteEntity (EntityBase *entity) |
void | facetEntity (EntityGeometry *entity, double deflection, bool isHidden, bool notifyViewer) |
double | calculateDeflectionFromListOfEntities (std::list< EntityBase * > &entities) |
double | calculateDeflectionFromAllEntities (void) |
void | refreshAllViews (void) |
void | resetAllViews (void) |
void | clearSelection (void) |
void | getAllGeometryEntities (std::list< EntityGeometry * > &geometryEntities) |
void | getAllEntities (std::list< EntityBase * > &entities) |
void | addEntityToModel (std::string entityPath, EntityBase *entity, EntityBase *root, bool addVisualizationContainers, std::list< EntityBase * > &newEntities) |
EntityBase * | getRootNode (void) |
std::string | getGeometryRootName (void) |
std::string | getMaterialRootName (void) |
std::string | getParameterRootName (void) |
std::string | getMeshRootName (void) |
std::string | getSolverRootName (void) |
std::string | getScriptsRootName (void) |
std::string | getUnitRootName (void) |
void | addVisualizationNodeFromFacetData (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 (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, bool selectChildren, bool manageParentVisibility, bool manageChildVisibility, bool showWhenSelected, std::vector< double > &transformation) |
void | addAnnotationEntities (std::list< EntityAnnotation * > &errorAnnotations) |
void | addVisualizationAnnotationNode (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 | addResult1DEntity (const std::string &name, const std::vector< double > &xdata, const std::vector< double > &ydata, const std::vector< double > &ydataIm, const std::string &curveLabel, const std::string &xlabel, const std::string &xunit, const std::string &ylabel, const std::string &yunit) |
void | updateObjectFacetsFromDataBase (ot::UID modelEntityID, ot::UID entityID) |
void | removeShapesFromVisualization (std::list< ot::UID > &removeFromDisplay) |
void | setShapeVisibility (std::list< ot::UID > &visibleEntityIDs, std::list< ot::UID > &hiddenEntityIDs) |
void | displayMessage (const std::string &message) |
void | reportError (const std::string &message) |
void | reportWarning (const std::string &message) |
void | reportInformation (const std::string &message) |
std::string | getProjectType (void) |
void | entitiesSelected (const std::string &selectionAction, const std::string &selectionInfo, std::map< std::string, std::string > &options) |
void | setModelStorageVersion (ot::UID version) |
ot::UID | getModelStorageVersion (void) |
void | setModified (void) |
void | resetModified (void) |
bool | getModified (void) |
void | setClearUiOnDelete (bool _clear) |
void | resetToNew (void) |
bool | GetDocumentFromEntityID (ot::UID entityID, bsoncxx::builder::basic::document &doc) |
EntityBase * | readEntityFromEntityID (EntityBase *parent, ot::UID entityID, std::map< ot::UID, EntityBase * > &entityMap) |
EntityBase * | readEntityFromEntityIDandVersion (EntityBase *parent, ot::UID entityID, ot::UID version, std::map< ot::UID, EntityBase * > &entityMap) |
void | prefetchDocumentsFromStorage (std::list< ot::UID > &prefetchIds) |
void | addVisualizationContainerNode (const std::string &name, ot::UID entityID, bool isEditable) |
void | addVisualizationMeshNode (const std::string &name, ot::UID entityID) |
void | projectOpen (void) |
void | projectSave (const std::string &comment, bool silentlyCreateBranch) |
void | detachAllViewer (void) |
void | updatePropertyGrid (void) |
void | enableQueuingHttpRequests (bool flag) |
void | modelChangeOperationCompleted (const std::string &description, bool askForCreationOfBranch=true) |
void | uiIsAvailable (void) |
std::string | getCurrentModelVersion (void) |
void | activateVersion (const std::string &version) |
void | versionSelected (const std::string &version) |
void | versionDeselected (void) |
void | setVersionLabel (const std::string &version, const std::string &label) |
void | addEntitiesToModel (std::list< ot::UID > &topologyEntityIDList, std::list< ot::UID > &topologyEntityVersionList, std::list< bool > &topologyEntityForceVisible, std::list< ot::UID > &dataEntityIDList, std::list< ot::UID > &dataEntityVersionList, std::list< ot::UID > &dataEntityParentList, const std::string &description, bool saveModel, bool askForCreationOfBranch) |
void | addGeometryOperation (ot::UID geomEntityID, ot::UID geomEntityVersion, const std::string &geomEntityName, std::list< ot::UID > &dataEntityIDList, std::list< ot::UID > &dataEntityVersionList, std::list< ot::UID > &dataEntityParentList, std::list< std::string > &childrenList, const std::string &description) |
void | deleteEntitiesFromModel (std::list< std::string > &entityNameList, bool saveModel) |
void | deleteCurves (std::list< std::string > &entityNameList) |
void | updateVisualizationEntity (ot::UID visEntityID, ot::UID visEntityVersion, ot::UID binaryDataItemID, ot::UID binaryDataItemVersion) |
void | updateGeometryEntity (ot::UID geomEntityID, ot::UID brepEntityID, ot::UID brepEntityVersion, ot::UID facetsEntityID, ot::UID facetsEntityVersion, bool overrideGeometry, const ot::PropertyGridCfg &_configuration, bool updateProperties) |
void | updateTopologyEntities (ot::UIDList &topoEntityID, ot::UIDList &topoEntityVersion, const std::string &comment) |
void | requestUpdateVisualizationEntity (ot::UID visEntityID) |
std::list< ot::UID > | getNewEntityIDs (unsigned long long count) |
std::list< std::string > | getListOfFolderItems (const std::string &folder, bool recursive) |
std::list< ot::UID > | getIDsOfFolderItemsOfType (const std::string &folder, const std::string &className, bool recursive) |
std::list< EntityBase * > | getListOfSelectedEntities (const std::string &typeFilter="") |
void | addPropertiesToEntities (std::list< ot::UID > &entityIDList, const ot::PropertyGridCfg &_configuration) |
void | updatePropertiesOfEntities (std::list< ot::UID > &entityIDList, const std::string &_entitiesJson) |
void | getListOfAllChildEntities (EntityBase *entity, std::list< std::pair< ot::UID, ot::UID > > &childrenEntities) |
void | getEntityVersions (std::list< ot::UID > &entityIDList, std::list< ot::UID > &entityVersions) |
void | getEntityNames (std::list< ot::UID > &entityIDList, std::list< std::string > &entityNames) |
void | getEntityTypes (std::list< ot::UID > &entityIDList, std::list< std::string > &entityTypes) |
std::list< ot::UID > | getAllGeometryEntitiesForMeshing (void) |
void | getEntityProperties (ot::UID entityID, bool recursive, const std::string &propertyGroupFilter, std::map< ot::UID, ot::PropertyGridCfg > &_entityProperties) |
EntityBase * | findEntityFromName (const std::string &name) |
void | addModalCommand (ModalCommandBase *command) |
void | removeModalCommand (ModalCommandBase *command) |
void | hideEntities (std::list< ot::UID > &hiddenEntityIDs) |
void | importTableFile (std::string &itemName) |
void | setMeshingActive (ot::UID meshEntityID, bool flag) |
bool | getMeshingActive (ot::UID meshEntityID) |
std::string | checkParentUpdates (std::list< ot::UID > &modifiedEntities) |
int | getServiceIDAsInt (void) |
int | getSessionCount (void) |
ModelState * | getStateManager (void) |
void | setStateMangager (ModelState *state) |
void | promptResponse (const std::string &_type, ot::MessageDialogCfg::BasicButton _answer, const std::string &_parameter1) |
EntityBase * | getEntityByID (ot::UID _entityID) const |
The Model class is the main interface to the model. There may be multiple instances of this class. Each model stores all objects within the model and provides access to the model Entities. Each model Entity is identified by a UID which is automatically created and managed by the model class. 0 is not a valid UID and is returned in case of an error.
Model::Model | ( | ) |
|
virtual |
Model::Model | ( | const std::string & | _projectName, |
const std::string & | _projectType, | ||
const std::string & | _collectionName ) |
|
virtual |
void Model::activateModel | ( | void | ) |
void Model::activateVersion | ( | const std::string & | version | ) |
void Model::addAnnotationEntities | ( | std::list< EntityAnnotation * > & | errorAnnotations | ) |
void Model::addCommonPropertiesToConfig | ( | const std::list< ot::UID > & | entityIDList, |
bool | visibleOnly, | ||
ot::PropertyGridCfg & | _config ) |
void Model::addEntitiesToModel | ( | std::list< ot::UID > & | topologyEntityIDList, |
std::list< ot::UID > & | topologyEntityVersionList, | ||
std::list< bool > & | topologyEntityForceVisible, | ||
std::list< ot::UID > & | dataEntityIDList, | ||
std::list< ot::UID > & | dataEntityVersionList, | ||
std::list< ot::UID > & | dataEntityParentList, | ||
const std::string & | description, | ||
bool | saveModel, | ||
bool | askForCreationOfBranch ) |
void Model::addEntityToMap | ( | EntityBase * | entity | ) |
void Model::addEntityToModel | ( | std::string | entityPath, |
EntityBase * | entity, | ||
EntityBase * | root, | ||
bool | addVisualizationContainers, | ||
std::list< EntityBase * > & | newEntities ) |
void Model::addGeometryOperation | ( | ot::UID | geomEntityID, |
ot::UID | geomEntityVersion, | ||
const std::string & | geomEntityName, | ||
std::list< ot::UID > & | dataEntityIDList, | ||
std::list< ot::UID > & | dataEntityVersionList, | ||
std::list< ot::UID > & | dataEntityParentList, | ||
std::list< std::string > & | childrenList, | ||
const std::string & | description ) |
void Model::addModalCommand | ( | ModalCommandBase * | command | ) |
void Model::addNodeFromFacetData | ( | const std::string & | treeName, |
double | surfaceColorRGB[3], | ||
double | edgeColorRGB[3], | ||
unsigned long long | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
bool | backFaceCulling, | ||
double | offsetFactor, | ||
bool | isHidden, | ||
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 ) |
void Model::addNodeFromFacetDataBase | ( | 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, | ||
double | offsetFactor, | ||
bool | isHidden, | ||
bool | isEditable, | ||
const std::string & | projectName, | ||
unsigned long long | entityID, | ||
unsigned long long | version, | ||
bool | selectChildren, | ||
bool | manageParentVisibility, | ||
bool | manageChildVisibility, | ||
bool | showWhenSelected, | ||
std::vector< double > & | transformation ) |
void Model::addPropertiesToEntities | ( | std::list< ot::UID > & | entityIDList, |
const ot::PropertyGridCfg & | _configuration ) |
void Model::addResult1DEntity | ( | const std::string & | name, |
const std::vector< double > & | xdata, | ||
const std::vector< double > & | ydata, | ||
const std::vector< double > & | ydataIm, | ||
const std::string & | curveLabel, | ||
const std::string & | xlabel, | ||
const std::string & | xunit, | ||
const std::string & | ylabel, | ||
const std::string & | yunit ) |
void Model::addSceneNode | ( | const std::string & | _treeName, |
ot::UID | _modelEntityID, | ||
const OldTreeIcon & | _treeIcons, | ||
bool | _editable, | ||
ot::VisualisationTypes | _visualisationTypes ) |
void Model::addSceneNode | ( | SceneNodeBase * | node | ) |
void Model::addVisualizationAnnotationNode | ( | 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 Model::addVisualizationAnnotationNode | ( | const std::string & | treeName, |
unsigned long long | 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 ) |
void Model::addVisualizationAnnotationNodeDataBase | ( | const std::string & | treeName, |
unsigned long long | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
bool | isHidden, | ||
const std::string & | projectName, | ||
unsigned long long | entityID, | ||
unsigned long long | version ) |
void Model::addVisualizationCartesianMeshItemNode | ( | const std::string & | treeName, |
unsigned long long | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
bool | isHidden, | ||
std::vector< int > & | facesList, | ||
double | color[3] ) |
void Model::addVisualizationCartesianMeshNode | ( | const std::string & | treeName, |
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, | ||
const std::string & | projectName, | ||
unsigned long long | faceListEntityID, | ||
unsigned long long | faceListEntityVersion, | ||
unsigned long long | nodeListEntityID, | ||
unsigned long long | nodeListEntityVersion ) |
void Model::addVisualizationContainerNode | ( | const std::string & | name, |
ot::UID | entityID, | ||
bool | isEditable ) |
void Model::addVisualizationContainerNode | ( | const std::string & | treeName, |
unsigned long long | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
bool | editable ) |
void Model::addVisualizationMeshItemNodeFromFacetDataBase | ( | const std::string & | treeName, |
unsigned long long | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
bool | isHidden, | ||
const std::string & | projectName, | ||
unsigned long long | entityID, | ||
unsigned long long | version, | ||
long long | tetEdgesID, | ||
long long | tetEdgesVersion ) |
void Model::addVisualizationMeshNode | ( | const std::string & | name, |
ot::UID | entityID ) |
void Model::addVisualizationMeshNodeFromFacetDataBase | ( | const std::string & | treeName, |
unsigned long long | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
double | edgeColorRGB[3], | ||
bool | displayTetEdges, | ||
const std::string & | projectName, | ||
unsigned long long | entityID, | ||
unsigned long long | version ) |
void Model::addVisualizationNodeFromFacetData | ( | 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 Model::addVisualizationNodeFromFacetDataBase | ( | 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, | ||
bool | selectChildren, | ||
bool | manageParentVisibility, | ||
bool | manageChildVisibility, | ||
bool | showWhenSelected, | ||
std::vector< double > & | transformation ) |
void Model::addVisualizationPlot1DNode | ( | const ot::Plot1DDataBaseCfg & | _config | ) |
void Model::addVisualizationResult1DNode | ( | const ot::Plot1DCurveInfoCfg & | _curveInfo, |
const OldTreeIcon & | _treeIcons, | ||
bool | _isHidden ) |
void Model::addVTKNode | ( | const std::string & | treeName, |
unsigned long long | modelEntityID, | ||
const OldTreeIcon & | treeIcons, | ||
bool | isHidden, | ||
bool | isEditable, | ||
const std::string & | projectName, | ||
unsigned long long | visualizationDataID, | ||
unsigned long long | visualizationDataVersion ) |
void Model::attachViewer | ( | Viewer * | viewer | ) |
double Model::calculateDeflectionFromAllEntities | ( | void | ) |
double Model::calculateDeflectionFromListOfEntities | ( | std::list< EntityBase * > & | entities | ) |
void Model::centerMouseCursor | ( | void | ) |
std::string Model::checkParentUpdates | ( | std::list< ot::UID > & | modifiedEntities | ) |
void Model::clearHoverView | ( | void | ) |
void Model::clearSelection | ( | void | ) |
void Model::clearSelection | ( | void | ) |
ot::UID Model::createEntityUID | ( | void | ) |
void Model::deactivateModel | ( | void | ) |
void Model::deleteCurves | ( | std::list< std::string > & | entityNameList | ) |
void Model::deleteEntitiesFromModel | ( | std::list< std::string > & | entityNameList, |
bool | saveModel ) |
void Model::deleteEntity | ( | EntityBase * | entity | ) |
void Model::deleteProperty | ( | const std::list< ot::UID > & | entityIDList, |
const std::string & | propertyName, | ||
const std::string & | propertyGroup ) |
void Model::detachAllViewer | ( | void | ) |
void Model::detachViewer | ( | Viewer * | viewer | ) |
void Model::displayMessage | ( | const std::string & | message | ) |
void Model::enableQueuingHttpRequests | ( | bool | flag | ) |
void Model::ensure1DView | ( | void | ) |
void Model::ensure3DView | ( | void | ) |
void Model::enterEntitySelectionMode | ( | 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 ) |
bool Model::entitiesNeedUpdate | ( | void | ) |
void Model::entitiesSelected | ( | const std::string & | selectionAction, |
const std::string & | selectionInfo, | ||
std::map< std::string, std::string > & | options ) |
bool Model::entityExists | ( | ot::UID | uID | ) |
|
overridevirtual |
|
overridevirtual |
void Model::escapeKeyPressed | ( | void | ) |
void Model::executeAction | ( | const std::string & | action, |
ot::JsonDocument & | doc ) |
void Model::executeAction | ( | unsigned long long | _buttonID | ) |
void Model::executeFunction | ( | const std::string & | function, |
const std::string & | fileName, | ||
bool | removeFile ) |
void Model::facetEntity | ( | EntityGeometry * | entity, |
double | deflection, | ||
bool | isHidden, | ||
bool | notifyViewer ) |
void Model::fillPropertyGrid | ( | const ot::PropertyGridCfg & | _configuration | ) |
EntityBase * Model::findEntityFromName | ( | const std::string & | name | ) |
void Model::freeze3DView | ( | bool | flag | ) |
void Model::getAllEntities | ( | std::list< EntityBase * > & | entities | ) |
void Model::getAllGeometryEntities | ( | std::list< EntityGeometry * > & | geometryEntities | ) |
std::list< ot::UID > Model::getAllGeometryEntitiesForMeshing | ( | void | ) |
std::string Model::getCurrentModelVersion | ( | void | ) |
|
inline |
unsigned int Model::getCurrentTraversalMask | ( | void | ) |
|
inline |
|
inline |
|
inline |
bool Model::GetDocumentFromEntityID | ( | ot::UID | entityID, |
bsoncxx::builder::basic::document & | doc ) |
double Model::getDoublePropertyGridValue | ( | const std::string & | _groupName, |
const std::string & | _itemName ) |
unsigned int Model::getEdgeSelectionTraversalMask | ( | void | ) |
EntityBase * Model::getEntityByID | ( | ot::UID | _entityID | ) | const |
void Model::getEntityNames | ( | std::list< ot::UID > & | entityIDList, |
std::list< std::string > & | entityNames ) |
std::map< std::string, ot::UID > Model::getEntityNameToIDMap | ( | ) |
void Model::getEntityProperties | ( | ot::UID | entityID, |
bool | recursive, | ||
const std::string & | propertyGroupFilter, | ||
std::map< ot::UID, ot::PropertyGridCfg > & | _entityProperties ) |
void Model::getEntityTypes | ( | std::list< ot::UID > & | entityIDList, |
std::list< std::string > & | entityTypes ) |
void Model::getEntityVersions | ( | std::list< ot::UID > & | entityIDList, |
std::list< ot::UID > & | entityVersions ) |
unsigned int Model::getFaceSelectionTraversalMask | ( | void | ) |
|
inline |
|
inline |
std::list< ot::UID > Model::getIDsOfFolderItemsOfType | ( | const std::string & | folder, |
const std::string & | className, | ||
bool | recursive ) |
void Model::getListOfAllChildEntities | ( | EntityBase * | entity, |
std::list< std::pair< ot::UID, ot::UID > > & | childrenEntities ) |
std::map< std::string, bool > Model::getListOfEntityNames | ( | ) |
std::list< std::string > Model::getListOfFolderItems | ( | const std::string & | folder, |
bool | recursive ) |
std::list< EntityBase * > Model::getListOfSelectedEntities | ( | const std::string & | typeFilter = "" | ) |
|
inline |
bool Model::getMeshingActive | ( | ot::UID | meshEntityID | ) |
|
inline |
void Model::getModelBox | ( | double & | xmin, |
double & | xmax, | ||
double & | ymin, | ||
double & | ymax, | ||
double & | zmin, | ||
double & | zmax ) |
unsigned long long Model::getModelEntityIDFromTreeID | ( | ot::UID | treeItem | ) |
|
inline |
|
inline |
std::list< ot::UID > Model::getNewEntityIDs | ( | unsigned long long | count | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::list< std::string > Model::getSelectedCurves | ( | ) |
void Model::getSelectedModelEntityIDs | ( | std::list< unsigned long long > & | selectedModelEntityID | ) |
void Model::getSelectedTreeItemIDs | ( | std::list< ot::UID > & | selectedTreeItemID | ) |
void Model::getSelectedVisibleModelEntityIDs | ( | std::list< unsigned long long > & | selectedVisibleModelEntityID | ) |
int Model::getServiceIDAsInt | ( | void | ) |
int Model::getSessionCount | ( | void | ) |
|
inline |
ModelState * Model::getStateManager | ( | void | ) |
unsigned long long Model::getTreeIDFromModelID | ( | ot::UID | modelID | ) |
|
inline |
|
inline |
ot::UID Model::getVisualizationModel | ( | void | ) |
void Model::hideBranch | ( | const std::string & | branchName | ) |
void Model::hideEntities | ( | std::list< ot::UID > & | hiddenEntityIDs | ) |
void Model::hideEntities | ( | std::list< unsigned long long > | hiddenID | ) |
void Model::importTableFile | ( | std::string & | itemName | ) |
|
inline |
|
inline |
|
inline |
void Model::keySequenceActivated | ( | const std::string & | keySequence | ) |
void Model::lockSelectionAndModification | ( | bool | flag | ) |
void Model::modelChangeOperationCompleted | ( | const std::string & | description, |
bool | askForCreationOfBranch = true ) |
void Model::modelItemRenamed | ( | ot::UID | entityID, |
const std::string & | newName ) |
void Model::notifySceneNodeAboutViewChange | ( | const std::string & | _sceneNodeName, |
const ot::ViewChangedStates & | _state, | ||
const ot::WidgetViewBase::ViewType & | _viewType ) |
void Model::prefetchDocumentsFromStorage | ( | std::list< ot::UID > & | prefetchIds | ) |
void Model::processCurrentSelectionMode | ( | osgUtil::Intersector * | intersector, |
double | sceneRadius, | ||
bool | bCtrlKeyPressed ) |
void Model::processHoverView | ( | osgUtil::Intersector * | intersector, |
double | sceneRadius ) |
void Model::projectOpen | ( | void | ) |
void Model::projectSave | ( | const std::string & | comment, |
bool | silentlyCreateBranch ) |
void Model::promptResponse | ( | const std::string & | _type, |
ot::MessageDialogCfg::BasicButton | _answer, | ||
const std::string & | _parameter1 ) |
bool Model::propertyGridValueChanged | ( | const ot::Property * | _property | ) |
EntityBase * Model::readEntityFromEntityID | ( | EntityBase * | parent, |
ot::UID | entityID, | ||
std::map< ot::UID, EntityBase * > & | entityMap ) |
EntityBase * Model::readEntityFromEntityIDandVersion | ( | EntityBase * | parent, |
ot::UID | entityID, | ||
ot::UID | version, | ||
std::map< ot::UID, EntityBase * > & | entityMap ) |
void Model::refreshAllViews | ( | void | ) |
void Model::refreshAllViews | ( | void | ) |
void Model::refreshSelection | ( | void | ) |
void Model::removedSelectedCurveNodes | ( | ) |
void Model::removeEntityFromMap | ( | EntityBase * | entity, |
bool | keepInProject, | ||
bool | keepParameterDependency, | ||
bool | considerChildren = true ) |
void Model::removeEntityWithChildrenFromMap | ( | EntityBase * | entity, |
bool | keepInProject, | ||
bool | keepParameterDependency, | ||
std::list< EntityBase * > & | removedEntities ) |
void Model::removeModalCommand | ( | ModalCommandBase * | command | ) |
void Model::removeSceneNode | ( | osg::Node * | node | ) |
void Model::removeShapes | ( | std::list< unsigned long long > | modelEntityIDList | ) |
void Model::removeShapesFromVisualization | ( | std::list< ot::UID > & | removeFromDisplay | ) |
void Model::renameEntityPath | ( | const std::string & | oldPath, |
const std::string & | newPath ) |
void Model::reportError | ( | const std::string & | message | ) |
void Model::reportInformation | ( | const std::string & | message | ) |
void Model::reportWarning | ( | const std::string & | message | ) |
void Model::requestUpdateVisualizationEntity | ( | ot::UID | visEntityID | ) |
void Model::reset1DPlotItemSelection | ( | void | ) |
void Model::resetAllViews | ( | void | ) |
void Model::resetAllViews1D | ( | void | ) |
void Model::resetAllViews3D | ( | void | ) |
void Model::resetModified | ( | void | ) |
void Model::resetToNew | ( | void | ) |
void Model::returnKeyPressed | ( | void | ) |
void Model::selectObject | ( | unsigned long long | modelEntityID | ) |
|
overridevirtual |
void Model::set1DPlotItemSelected | ( | unsigned long long | treeItemID, |
bool | ctrlPressed ) |
|
inline |
void Model::setCursorText | ( | const std::string & | text | ) |
|
inline |
void Model::setDoublePropertyGridValue | ( | const std::string & | _groupName, |
const std::string & | _itemName, | ||
double | value ) |
void Model::setEntityName | ( | unsigned long long | modelEntityID, |
const std::string & | newName ) |
void Model::setHoverTreeItem | ( | ot::UID | hoverTreeItemID | ) |
void Model::setHoverView | ( | SceneNodeBase * | selectedItem | ) |
|
inline |
void Model::setMeshingActive | ( | ot::UID | meshEntityID, |
bool | flag ) |
|
inline |
void Model::setModified | ( | void | ) |
void Model::setPropertiesFromJson | ( | const std::list< ot::UID > & | entityIDList, |
const ot::PropertyGridCfg & | _configuration, | ||
bool | updateEntities, | ||
bool | itemsVisible ) |
void Model::setSceneNode | ( | osg::Node * | node, |
SceneNodeBase * | sceneNode ) |
void Model::setSelectedTreeItems | ( | const std::list< ot::UID > & | _selectedTreeItems, |
std::list< unsigned long long > & | _selectedModelItems, | ||
std::list< unsigned long long > & | _selectedVisibleModelItems, | ||
bool | _selectionFromTree ) |
void Model::setShapeVisibility | ( | std::list< ot::UID > & | visibleEntityIDs, |
std::list< ot::UID > & | hiddenEntityIDs ) |
void Model::setShapeVisibility | ( | std::list< unsigned long long > | visibleID, |
std::list< unsigned long long > | hiddenID ) |
void Model::setStateMangager | ( | ModelState * | state | ) |
void Model::setTreeStateRecording | ( | bool | flag | ) |
void Model::setVersionLabel | ( | const std::string & | version, |
const std::string & | label ) |
void Model::setVersionPropertiesFromJson | ( | const ot::PropertyGridCfg & | _configuration | ) |
void Model::setVisualizationModel | ( | ot::UID | visModelID | ) |
void Model::showBranch | ( | const std::string & | branchName | ) |
void Model::uiIsAvailable | ( | void | ) |
void Model::updateCapGeometry | ( | osg::Vec3d | normal, |
osg::Vec3d | point ) |
void Model::updateCurvesInPlot | ( | const std::list< std::string > & | curveNames, |
const ot::UID & | plotID ) |
void Model::updateEntities | ( | bool | itemsVisible | ) |
void Model::updateGeometryEntity | ( | ot::UID | geomEntityID, |
ot::UID | brepEntityID, | ||
ot::UID | brepEntityVersion, | ||
ot::UID | facetsEntityID, | ||
ot::UID | facetsEntityVersion, | ||
bool | overrideGeometry, | ||
const ot::PropertyGridCfg & | _configuration, | ||
bool | updateProperties ) |
void Model::updateMeshColor | ( | unsigned long long | modelEntityID, |
double | colorRGB[3] ) |
void Model::updateObjectColor | ( | unsigned long long | modelEntityID, |
double | surfaceColorRGB[3], | ||
double | edgeColorRGB[3], | ||
const std::string & | materialType, | ||
const std::string & | textureType, | ||
bool | reflective ) |
void Model::updateObjectFacetsFromDataBase | ( | unsigned long long | modelEntityID, |
unsigned long long | entityID, | ||
unsigned long long | entityVersion ) |
void Model::updatePropertiesOfEntities | ( | std::list< ot::UID > & | entityIDList, |
const std::string & | _entitiesJson ) |
void Model::updatePropertyGrid | ( | void | ) |
void Model::updateTopologyEntities | ( | ot::UIDList & | topoEntityID, |
ot::UIDList & | topoEntityVersion, | ||
const std::string & | comment ) |
void Model::updateVisualizationEntity | ( | ot::UID | visEntityID, |
ot::UID | visEntityVersion, | ||
ot::UID | binaryDataItemID, | ||
ot::UID | binaryDataItemVersion ) |
void Model::updateVTKNode | ( | unsigned long long | modelEntityID, |
const std::string & | projectName, | ||
unsigned long long | visualizationDataID, | ||
unsigned long long | visualizationDataVersion ) |
void Model::versionDeselected | ( | void | ) |
void Model::versionSelected | ( | const std::string & | version | ) |
void Model::viewerTabChanged | ( | const std::string & | _tabTitle, |
ot::WidgetViewBase::ViewType | _type ) |
void Model::visualizationCartesianMeshNodeShowLines | ( | unsigned long long | modelEntityID, |
bool | showMeshLines ) |
void Model::visualizationPlot1DPropertiesChanged | ( | const ot::Plot1DCfg & | _config | ) |
void Model::visualizationTetMeshNodeTetEdges | ( | unsigned long long | modelEntityID, |
bool | displayTetEdges ) |