OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::ModelServiceAPI Class Reference

#include "ModelServiceAPI.h"

Static Public Member Functions

static std::string getCurrentModelVersion (void)
 
static UID getCurrentVisualizationModelID (void)
 
static std::list< std::string > getListOfFolderItems (const std::string &_folder, bool recursive=false)
 
static void getAvailableMeshes (std::string &_meshFolderName, UID &_meshFolderID, std::string &_meshName, UID &_meshID)
 
static std::list< UIDgetIDsOfFolderItemsOfType (const std::string &_folder, const std::string &_entityClassName, bool recursive)
 
static void enableMessageQueueing (bool flag)
 
static void modelChangeOperationCompleted (const std::string &description)
 
static 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)
 
static 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)
 
static 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)
 
static void deleteEntitiesFromModel (std::list< std::string > &_entityNameList, bool _saveModel=true)
 
static void getEntityInformation (const std::list< UID > &_entities, std::list< EntityInformation > &_entityInfo)
 
static void getEntityInformation (const std::list< std::string > &_entities, std::list< EntityInformation > &_entityInfo)
 
static bool getEntityInformation (const std::string &_entity, EntityInformation &_entityInfo)
 
static void getEntityChildInformation (const std::string &_entity, std::list< EntityInformation > &_entityInfo, bool recursive)
 
static void getEntityChildInformation (UID _entity, std::list< EntityInformation > &_entityInfo, bool recursive)
 
static void getSelectedEntityInformation (std::list< EntityInformation > &_entityInfo, const std::string &typeFilter="")
 
static void addPropertiesToEntities (std::list< UID > &_entityList, const ot::PropertyGridCfg &_configuration)
 
static void getEntityProperties (UID _entity, bool _recursive, const std::string &_propertyGroupFilter, std::map< UID, EntityProperties > &_entityProperties)
 
static void getEntityProperties (const std::string &entityName, bool _recursive, const std::string &_propertyGroupFilter, std::map< UID, EntityProperties > &_entityProperties)
 
static void updateTopologyEntities (ot::UIDList &topologyEntityIDs, ot::UIDList &topologyEntityVersions, const std::string &comment)
 
static void updatePropertyGrid ()
 

Member Function Documentation

◆ addEntitiesToModel() [1/2]

void ot::ModelServiceAPI::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 )
static

◆ addEntitiesToModel() [2/2]

void ot::ModelServiceAPI::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 )
static

◆ addGeometryOperation()

void ot::ModelServiceAPI::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 )
static

◆ addPropertiesToEntities()

void ot::ModelServiceAPI::addPropertiesToEntities ( std::list< UID > & _entityList,
const ot::PropertyGridCfg & _configuration )
static

◆ deleteEntitiesFromModel()

void ot::ModelServiceAPI::deleteEntitiesFromModel ( std::list< std::string > & _entityNameList,
bool _saveModel = true )
static

◆ enableMessageQueueing()

void ot::ModelServiceAPI::enableMessageQueueing ( bool flag)
static

◆ getAvailableMeshes()

void ot::ModelServiceAPI::getAvailableMeshes ( std::string & _meshFolderName,
UID & _meshFolderID,
std::string & _meshName,
UID & _meshID )
static

◆ getCurrentModelVersion()

std::string ot::ModelServiceAPI::getCurrentModelVersion ( void )
static

◆ getCurrentVisualizationModelID()

ot::UID ot::ModelServiceAPI::getCurrentVisualizationModelID ( void )
static

◆ getEntityChildInformation() [1/2]

void ot::ModelServiceAPI::getEntityChildInformation ( const std::string & _entity,
std::list< EntityInformation > & _entityInfo,
bool recursive )
static

◆ getEntityChildInformation() [2/2]

void ot::ModelServiceAPI::getEntityChildInformation ( UID _entity,
std::list< EntityInformation > & _entityInfo,
bool recursive )
static

◆ getEntityInformation() [1/3]

void ot::ModelServiceAPI::getEntityInformation ( const std::list< std::string > & _entities,
std::list< EntityInformation > & _entityInfo )
static

◆ getEntityInformation() [2/3]

void ot::ModelServiceAPI::getEntityInformation ( const std::list< UID > & _entities,
std::list< EntityInformation > & _entityInfo )
static

◆ getEntityInformation() [3/3]

bool ot::ModelServiceAPI::getEntityInformation ( const std::string & _entity,
EntityInformation & _entityInfo )
static

◆ getEntityProperties() [1/2]

void ot::ModelServiceAPI::getEntityProperties ( const std::string & entityName,
bool _recursive,
const std::string & _propertyGroupFilter,
std::map< UID, EntityProperties > & _entityProperties )
static

◆ getEntityProperties() [2/2]

void ot::ModelServiceAPI::getEntityProperties ( UID _entity,
bool _recursive,
const std::string & _propertyGroupFilter,
std::map< UID, EntityProperties > & _entityProperties )
static

◆ getIDsOfFolderItemsOfType()

std::list< ot::UID > ot::ModelServiceAPI::getIDsOfFolderItemsOfType ( const std::string & _folder,
const std::string & _entityClassName,
bool recursive )
static

◆ getListOfFolderItems()

std::list< std::string > ot::ModelServiceAPI::getListOfFolderItems ( const std::string & _folder,
bool recursive = false )
static

◆ getSelectedEntityInformation()

void ot::ModelServiceAPI::getSelectedEntityInformation ( std::list< EntityInformation > & _entityInfo,
const std::string & typeFilter = "" )
static

◆ modelChangeOperationCompleted()

void ot::ModelServiceAPI::modelChangeOperationCompleted ( const std::string & description)
static

◆ updatePropertyGrid()

void ot::ModelServiceAPI::updatePropertyGrid ( )
static

◆ updateTopologyEntities()

void ot::ModelServiceAPI::updateTopologyEntities ( ot::UIDList & topologyEntityIDs,
ot::UIDList & topologyEntityVersions,
const std::string & comment )
static

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