14 ModelServiceAPI(
const std::string& thisServiceURL,
const std::string& modelServiceURL)
15 : m_thisServiceURL(thisServiceURL), m_modelServiceURL(modelServiceURL) {}
18 std::string getCurrentModelVersion(
void);
19 EntityBase* readEntityFromEntityIDandVersion(
UID _entityID,
UID _version, ClassFactoryHandler& classFactory);
20 UID getCurrentVisualizationModelID(
void);
21 std::list<std::string> getListOfFolderItems(
const std::string& _folder,
bool recursive =
false);
22 void getAvailableMeshes(std::string& _meshFolderName,
UID& _meshFolderID, std::string& _meshName,
UID& _meshID);
23 std::list<UID> getIDsOfFolderItemsOfType(
const std::string& _folder,
const std::string& _entityClassName,
bool recursive);
24 void enableMessageQueueing(
bool flag);
25 void modelChangeOperationCompleted(
const std::string& description);
28 void addEntitiesToModel(std::list<UID>& _topologyEntityIDList, std::list<UID>& _topologyEntityVersionList, std::list<bool>& _topologyEntityForceVisible, std::list<UID>& _dataEntityIDList, std::list<UID>& _dataEntityVersionList, std::list<UID>& _dataEntityParentList,
const std::string& _changeComment,
bool askForBranchCreation =
true,
bool saveModel =
true);
29 void addEntitiesToModel(std::list<UID>&& _topologyEntityIDList, std::list<UID>&& _topologyEntityVersionList, std::list<bool>&& _topologyEntityForceVisible, std::list<UID>&& _dataEntityIDList, std::list<UID>&& _dataEntityVersionList, std::list<UID>&& _dataEntityParentList,
const std::string& _changeComment,
bool askForBranchCreation =
true,
bool saveModel =
true);
30 void addGeometryOperation(
UID _newEntityID,
UID _newEntityVersion, std::string _newEntityName, std::list<UID>& _dataEntityIDList, std::list<UID>& _dataEntityVersionList, std::list<UID>& _dataEntityParentList, std::list<std::string>& _childrenList,
const std::string& _changeComment);
31 void deleteEntitiesFromModel(std::list<std::string>& _entityNameList,
bool _saveModel =
true);
32 void getEntityInformation(
const std::list<UID>& _entities, std::list<EntityInformation>& _entityInfo);
33 void getEntityInformation(
const std::list<std::string>& _entities, std::list<EntityInformation>& _entityInfo);
34 bool getEntityInformation(
const std::string& _entity,
EntityInformation& _entityInfo);
35 void getEntityChildInformation(
const std::string& _entity, std::list<EntityInformation>& _entityInfo,
bool recursive);
36 void getEntityChildInformation(
UID _entity, std::list<EntityInformation>& _entityInfo,
bool recursive);
37 void getSelectedEntityInformation(std::list<EntityInformation>& _entityInfo,
const std::string& typeFilter =
"");
38 void addPropertiesToEntities(std::list<UID>& _entityList,
const ot::PropertyGridCfg& _configuration);
39 void getEntityProperties(
UID _entity,
bool _recursive,
const std::string& _propertyGroupFilter, std::map<UID, EntityProperties>& _entityProperties);
40 void getEntityProperties(
const std::string& entityName,
bool _recursive,
const std::string& _propertyGroupFilter, std::map<UID, EntityProperties>& _entityProperties);
42 void updatePropertyGrid();
43 void updateTopologyEntities(
ot::UIDList& topologyEntityIDs,
ot::UIDList& topologyEntityVersions,
const std::string& comment);