MainPage   Related pages 
 All Classes Functions Pages
AutomationAPI.h
1 
2 //
3 // $Id: AutomationAPI.h 3923 2020-09-01 08:56:54Z stefan.losch $
4 // (c) ceapoint aec technologies GmbH
5 //
6 
7 
8 #pragma once
9 
10 
11 #include "CoreAPI.h"
12 
13 
14 namespace domainBim
15 {
16 
17  class BimProject;
18 
30  class AutomationAPI : public CoreAPI
31  {
32 
33  Q_OBJECT
34 
35  public:
36 
38  /*
39  \param isAutomation Affects access rights
40  */
41  AutomationAPI( BimProject* bimPrj, bool isAutomation, QObject* parent = 0 );
42  virtual ~AutomationAPI();
45  public slots:
46 
47 
48 #pragma region FIND OBJECTS
49 
57  bool hasElement(QString id);
58 
70  QStringList getRootContainerList(QString modelName);
71 
84  QString findContainerByName( const QString& parentId, const QString& name, const QString& lookupDomain = "all" );
85 
86 
103  QString getContainerByName(QString parentId, QString name);
104 
105 
114  bool isContainer( QString id );
115 
126  QVariantList findDocumentsByLocationGps( double lat, double lon, double distance, QStringList idList = QStringList() );
127 
137  QVariantList findDocumentsByLocationRangeGps( QStringList gpsCoordinates, double distance, QStringList idList = QStringList() );
138 
149  QVariantList findDocumentsByLocationGk( double rw, double hw, double distance, QStringList idList = QStringList() );
150 
161  QStringList findDocumentsByDate( QDateTime start, QDateTime end, QStringList idList = QStringList(), bool useRef = false );
162 
163 
165 #pragma endregion
166 
167 
168 #pragma region DOCUMENTS - SYNC, METADATA
169 
183  int synchronizeDocumentContainer( QString containerId );
184 
189  void resetDocumentMetaData( QString objId );
190 
192 #pragma endregion
193 
194 
195 #pragma region ACTIVITIES - TOOLS
196 
220  QVariantMap getVisualisationList();
221 
228  int setVisualisationByID( QString taskIDList, QString visID );
229 
236  int removeVisualisation( QString taskIDList );
237 
253  int setTaskMode( QString taskID, int mode );
254 
295  QVariantMap calcPropertyValuesOverTime( QString propName, QString propType, QVariantMap options );
296 
298 #pragma endregion
299 
300 
301 #pragma region GEOMETRIC TOOLS
302 
304 
336  int hasContact( QString objId1, QString objId2, QVariantMap options = QVariantMap() );
337 
370  QString createContactObject( QString parentId, QString objId1, QString objId2, QString matId, QVariantMap options = QVariantMap() );
371 
402  QStringList cutObject( QString parentId, QString objId, QVariantMap plane = QVariantMap() );
403 
404 
421  QString mergeObjects( QString parentContainerId, QString idList, bool skipClosed = false, bool keepTransparency = false );
422 
423 
432  bool isIncludedIn(QString objId1, QString objId2);
433 
450  int isPointIncludedIn(double x, double y, double z, QString objId, double tol = 1.e-5 );
451 
452 
467  int checkIntersection( QString objId1, QString objId2, double tolerance = -0.00001 );
468 
491  int transformObject( QString objId, QString transformation );
492 
506  int setAsOpening( QString objId, QString openingIDList );
507 
531  QString getProjectionAsSvg( QString idList, QVariantMap options = QVariantMap() );
532 
533 
547  double calcDistance( QString objId1, QString objId2 );
548 
549 
551 #pragma endregion
552 
553 
554 #pragma region SELECTION_SETS
555 
596  QString createSelectionSets( QString propertyTypes, QString rootName, QVariantMap config = QVariantMap() );
597 
605  QStringList getRootNodeListSelectionSets( QString domainFilter = "all" );
606 
616  int addToSelectionSetGeometry( QString setId, QString objectIDList );
617 
629  int removeFromSelectionSetGeometry( QString setId, QString objectIDList );
630 
638  QString createSelectionSet( QString name, QString parentID = QString() ); // , QString domain = "geometry" );
639 
645  bool removeSelectionSet( QString selsetID );
646 
648 #pragma endregion
649 
650 
651 #pragma region MODELS
652 
665  QString getModelByName( QString name, QString domainFilter = "geometry" );
666 
675  QString getModelByElement( QString id, QString domainFilter = "all" );
676 
677 
691  QString getRootContainerByName(QString modelName, QString rootContainerName);
692 
693 
705  QStringList getModelListByName( QString name, QString domain = "geometry" );
706 
716  QStringList getModelListByDomain( QString domainFilter = "all" );
717 
732  QString getRootNodeByModel( QString modelId );
733 
746  QStringList getRootNodeListByDomain( QString domainFilter = "all" );
747 
782  QString createModel(QString name, bool createRootC = true, QString domain = "geometry" );
783 
784 
818  QVariantMap getModelMetaData( QString modelId );
819 
820 
835  int deleteModel( const QString& id );
836 
838 #pragma endregion
839 
840 
841 #pragma region PROJECT
842 
861  void setCloudSettings( QVariantMap vm );
862 
868  void setTempValue( QString name, QVariant value );
869 
874  QVariant getTempValue( QString name );
875 
880  QStringList getListOfTempValues();
881 
884  void clearListOfTempValues();
885 
887 #pragma endregion
888 
889 
890 #pragma region LINKED OBJECTS
891 
905  int setLinkedObjects( const QString& elementID, const QString& IDList );
906 
917  int removeAllLinkedObjects( QString id );
918 
927  int removeLinkedObjects( QString id, QString linkedIdList );
928 
930 #pragma endregion
931 
932 
933 #pragma region PROPERTY TYPES
934 
949  int createPropertyType( const QString& propName, const QString& propDatatype, const QString& uomCode, bool isInh, int target, const QString& domainName = "all" );
950 
974  int setPropertyTypeMetaData( QString pName, QString ptype, QVariantMap metadata );
975 
994  int deletePropertyType( QString propName, QString propDatatype, QString domainName = "all" );
995 
1023  QList<QVariant> getPropertyTypeBookmarkList( );
1024 
1060  QVariantMap getPropertyTypeBookmarkByID( QString bookmarkId );
1061 
1071  int activatePropertyTypeBookmark( QString bkmId );
1072 
1077  bool setPropertyTypeActive(QString pName, QString ptype, QString domain, bool active);
1078 
1084 
1088  int removePropertyTypeBookmarkByID( QString bkmId );
1089 
1099  QString addPropertyTypeBookmark( QVariantMap bookmarkConfig);
1100 
1102 #pragma endregion
1103 
1104 
1105 #pragma region PROPERTIES
1106 
1133  int setPropertyValue( QString objId, QString propName, QString propDataType, QVariant value );
1134 
1157  int setPropertyValueRepository( QString objId, QString propName, QString propDataType, QVariant value, bool createType = true );
1158 
1174  int deleteProperty( QString objId, QString propName, QString propDatatype );
1175 
1198  QList<QVariant> getAvailablePropertyValues( QString propName, QString propDatatype, int maxValues, QString domainName = "geometry" );
1199 
1200 
1216  QList<QVariant> getPropertyValues( QString propName, QString propDatatype, int maxValues = 0, QString domainName = "all", bool getNullValues = false );
1217 
1236  QList<QVariant> getPropertyValuesByObjectList(
1237  QString propName,
1238  QString propDatatype,
1239  bool checkInh,
1240  QString objIdList,
1241  int maxValues = 0,
1242  QString domainName = "all",
1243  bool getNullValues = false );
1244 
1285  QVariantMap getPropertyListAsJSON( QVariantMap options );
1286 
1362  void setPropertyListAsJSON( QVariantMap propmap, QVariantMap opt );
1363 
1365 #pragma endregion
1366 
1367 
1368 #pragma region PROPERTY SCRIPTS
1369 
1408  QVariantMap getPropertyScriptList() const;
1409 
1417  QString getPropertyScriptCode( QString domain, QString pname, QString datatype ) const;
1418 
1426  QString getPropertyScriptFgColor( QString domain, QString pname, QString datatype ) const;
1427 
1435  QString getPropertyScriptBgColor( QString domain, QString pname, QString datatype ) const;
1436 
1448  int setPropertyScriptCode( QString domain, QString pname, QString datatype, QString code );
1449 
1461  int setPropertyScriptFgColor( QString domain, QString pname, QString datatype, QString code );
1462 
1474  int setPropertyScriptBgColor( QString domain, QString pname, QString datatype, QString code );
1475 
1481  QVariantMap addPropertyScript( QString domain, QString pname, QString datatype, QString code = QString() );
1482 
1488  int removePropertyScript( QString domain, QString pname, QString datatype );
1489 
1497  void propertyScriptClearCache();
1498 
1504  void propertyScriptClearCache( QString domain, QString pname, QString datatype );
1505 
1520  QVariantMap getPropertyScriptOptions( QString domain, QString pname, QString datatype );
1521 
1540  int setPropertyScriptOptions( QString domain, QString pname, QString datatype, QVariantMap opt );
1541 
1542 
1544 #pragma endregion
1545 
1546 
1547 #pragma region GEOMETRY - MATERIALS
1548 
1581  QString createMaterial( QString matXml, QString modelId = QString() );
1582 
1594  int deleteMaterial( QString matId );
1595 
1601  QStringList getMaterialList();
1602 
1610  QString getMaterialAsXmlByID( QString matId );
1611 
1632  QVariantMap getMaterial( const QString& matId );
1633 
1640  QString getMaterialIDByName( QString matName );
1641 
1652  void updateMaterial( QString matId, QString xmlMat );
1653 
1666  int setMaterialToObjects( QString matId, QString objectIds );
1667 
1679  int setTransparency( QString objectIds, float defaultTransparency = 0.95 );
1680 
1688  void resetMaterials( bool updateUI = true );
1689 
1695  void reorderElements();
1696 
1698 #pragma endregion
1699 
1700 
1701 #pragma region GEOMETRY - COLOR SCHEMA
1702 
1715  QString createColorSchema( QString setContainerId, QString name );
1716 
1736  QString createColorSchemaFromCurrentMaterials(QString name, bool updateExisting, QVariantMap options = QVariantMap() );
1737 
1747  int deleteColorSchema( QString namePattern );
1748 
1754  QStringList getColorSchemaList();
1755 
1761  QString getCurrentColorSchema();
1762 
1772  bool activateColorSchemaByName( QString name );
1773 
1774 
1776 #pragma endregion
1777 
1778 
1779 #pragma region GEOMETRY- WIREMODE
1780 
1788  void showWireModeSchema( QString name );
1789 
1794  void clearWireMode();
1795 
1805  void setObjectsToWireMode( QString ids, bool wired );
1806 
1819  QString createWireModeSchema( QString ids, QString wmName, bool overwrite = false );
1820 
1825  QString getWired();
1826 
1831  int countWired();
1832 
1833 
1835 #pragma endregion
1836 
1837 
1838 #pragma region BBOX
1839 
1846  double getBBoxMinX();
1847 
1853  double getBBoxMaxX();
1854 
1860  double getBBoxMinY();
1861 
1867  double getBBoxMaxY();
1868 
1874  double getBBoxMinZ();
1875 
1881  double getBBoxMaxZ();
1882 
1887  void updateBoundingBox3DView();
1888 
1901  int calcOOBB( QString objIdList, double eps = 0.001 );
1902 
1915  int updateOOBB( QString obIDList, double eps = 0.001 );
1916 
1929  int calcOOBBxy( QString objIdList, double eps = 0.001 );
1930 
1943  int updateOOBBxy( QString objIdList, double eps = 0.001 );
1944 
1968  QVariantMap getBoundingBoxCommon( QString objIdList );
1969 
1989  QVariantMap getOOBBCommon( QString objIdList );
1990 
2010  QVariantMap getOOBBxyCommon( QString objIdList );
2011 
2024  double checkOverlapOBB( QString id1, QString id2, double eps );
2025 
2027 #pragma endregion
2028 
2029 
2030 #pragma region CREATE / DELETE OBJECTS / GET OBJECTS
2031 
2041  int startProjectTransaction( const QString& domain = "geometry" );
2042 
2051  int endProjectTransaction( const QString& domain = "geometry" );
2052 
2356  QString createObjectFromXml( const QString& parentId, const QString& objectXML );
2357 
2358 
2371  int deleteObjects( QString idList );
2372 
2373 
2387  void setName( QString objIdList, QString name );
2388 
2389 
2407  QString createObject( QString parentId, QString name );
2408 
2475  QVariantMap getAsJSON( QString objId );
2476 
2489  int setAsComposite( const QString& id, bool composite );
2490 
2491 
2493 #pragma endregion
2494 
2495 
2496 #pragma region REGIONS OF ALIGNMENTS
2497 
2531  QString addRegionToAlignment( QString alignmentId, QVariantMap setting );
2532 
2543  int removeAllRegionsFromAlignment( QString alignmentId );
2544 
2560  int addRangeToRegion( QString regionId, double fromStation, double toStation, QString alignmentId = QString() );
2561 
2577  int removeRangeFromRegion( QString regionId, double fromStation, double toStation, QString alignmentId = QString() );
2578 
2591  int removeAllRangesFromRegion( QString regionId, QString alignmentId = QString() );
2592 
2594 #pragma endregion
2595 
2596 
2597 #pragma region FILE OPERATIONS
2598 
2613  int createDirectory( QString path, QString dirName );
2614 
2627  bool writeFile( QString filePath, const QString& content, const QString& encoding = QString() );
2628 
2629 
2642  bool appendToFile(QString filePath, const QString& content, const QString& encoding = QString() );
2643 
2654  bool removeFile(QString filePath);
2655 
2660  bool copyFile( QString fnFrom, QString fnTo );
2661 
2666  bool moveFile( QString fnFrom, QString fnTo );
2667 
2678  bool checkIfFileExists(QString filePath);
2679 
2693  bool openFile( QString filePath, const QString& encoding = QString() );
2694 
2707  bool writeToFile(QString content);
2708 
2717  bool closeFile();
2718 
2741  QStringList readTextFile( QString filename, bool ignoreLineBreakesInDoubleQuotes = false, QString codec = QString() );
2742 
2752  QString readTextFileAsString( QString filename, QString codec = QString() );
2753 
2799  QVariantMap readCsvFile( QString filename, QString delimiter = ";", QString quoteSign = "\"" );
2800 
2816  int csvOpen( QString filename, QString delimiter = ";", QString quoteSign = "\"" );
2817 
2824  QStringList csvNextLine( );
2825 
2832  bool csvHasNextLine();
2833 
2840  bool csvClose( );
2841 
2842 
2843 
2844 
2858  QString readImageFile( QString filename, QString targetFormat = "" );
2859 
2860 
2885  QVariantList getDirectoryEntryList( QString dirPath, bool filesOnly = false, QString orderBy = "Name" );
2886 
2887 
2889 #pragma endregion
2890 
2891 
2892 #pragma region DATABASE
2893 
2899  bool dbIsLocalCopy();
2900 
2905  QString dbGetFilepath() const;
2906 
2927  int dbOpen(const QVariant connectionData = QVariant());
2928 
2933  bool dbClose();
2934 
2940  void dbCheckIn();
2941 
2950  void dbCheckOut(const QStringList& propList);
2951 
2963  bool dbQueryExec(const QString& sqlQuery);
2964 
2993  QVariantMap dbQueryRecordset(const QString& sqlQuery, const QString& key, int maxNumberOfRows = 0 );
2994 
3002  bool dbEndQueryExec();
3003 
3014  bool dbQueryNext();
3015 
3019  QVariant dbQueryValue(int column);
3020 
3026  QString dbQueryLastError();
3027 
3057  int setPropertyValueDB(const QString& objIdList, const QString& propName, const QString& propDataType, const QString& propDomain, const QVariant& value, bool createType = true);
3058 
3076  int writePropertyValueDB(const QString& objIdList, const QString& propName, const QString& propDataType, const QString& propDomain, const QVariant& value, bool createType = true );
3077 
3081  bool startTransaction();
3082 
3086  bool endTransaction();
3087 
3093  bool dbGetImmediateUpdate();
3094 
3100  void dbSetImmediateUpdate(bool);
3101 
3107  int dbClearCache( const QString& propName, const QString& propType );
3108 
3113  void dbClearCacheAll();
3114 
3125  int dbDeleteProperty( const QString& objIdList, const QString& propName, const QString& propType );
3126 
3148  int dbAssertTable( const QString& tableName, const QStringList& columnsList );
3149 
3151 #pragma endregion
3152 
3153 
3154 #pragma region OBJECT TOOLTIPS
3155 
3157 
3162  QStringList getListOfObjTooltips();
3163 
3172  void addObjectListToTooltip( QString idList, QString tooltipname );
3173 
3182  void removeObjectListFromTooltip( QString idList, QString tooltipname );
3183 
3185 
3186 #pragma endregion
3187 
3188 
3189 #pragma region LOCKING OF OBJECTS
3190 
3197  void lockObjects( QString idList );
3198 
3204  void unlockObjects( QString idList );
3205 
3210  void unlockAllObjects();
3211 
3217  QString getLocked();
3218 
3224  int countLocked();
3225 
3227 #pragma endregion
3228 
3229 
3230 #pragma region OBJECT ITERATOR
3231 
3237  void itClear();
3238 
3257  int itByFilter(QString propName, QString propDatatype, QString filterPattern, bool checkInh = true, QString domain = "geometry" );
3258 
3259 
3275  int itFilterByStatus(QString status, bool enabled = true, QString domain = "geometry");
3276 
3277 
3285  int itByObjectList( QString idList );
3286 
3292  QString itGetObjectList();
3293 
3301  bool itHasNext();
3302 
3308  QString itNext();
3309 
3315  int itCount();
3316 
3322  void itToFront();
3323 
3331  QList<QVariant> itGetAvailablePropertyValues(QString propName, QString propDatatype, int maxValues );
3332 
3337  void itSetupDbCache( QString propName, QString propType );
3338 
3343  void itSetMaterial(QString matId);
3344 
3357  void itColorCode( QString propName, QString propDT );
3358 
3373  void itColorCodeNumber( QString propName, QString propDT, double intervalSize );
3374 
3380  void itCalcOOBB( double eps );
3381 
3386  void itUpdateOOBB( double eps );
3387 
3393  void itCalcOOBBxy( double eps );
3394 
3399  void itUpdateOOBBxy( double eps );
3400 
3402 #pragma endregion
3403 
3406  private:
3407 
3408  QFile* _file;
3409  QTextStream* _textstream;
3410  QFile* _csvFile;
3411  QTextStream* _csvTextStream;
3412 
3413  char _c_delimiter;
3414  char _c_quoteSign;
3415  bool _isAutomation;
3416 
3417  /*
3418  Check if a given filePath actually contains a path, or just the filename.
3419  If path included: input unmodified, return true
3420  If path not included and project open: prepend project path to input, return true
3421  If path not included and no project open: input unmodified, return false
3422 
3423  \since 2.4.2, 2019-03-01, ah
3424  */
3425  bool _checkCompleteFilePath(QString& filePath);
3426 
3429  };
3430 
3431 }
QVariantMap getPropertyScriptOptions(QString domain, QString pname, QString datatype)
int removePropertyTypeBookmarkByID(QString bkmId)
int itFilterByStatus(QString status, bool enabled=true, QString domain="geometry")
QString getModelByName(QString name, QString domainFilter="geometry")
QStringList getListOfObjTooltips()
int setPropertyValue(QString objId, QString propName, QString propDataType, QVariant value)
QString getModelByElement(QString id, QString domainFilter="all")
void setCloudSettings(QVariantMap vm)
int removeAllRangesFromRegion(QString regionId, QString alignmentId=QString())
int addToSelectionSetGeometry(QString setId, QString objectIDList)
int deleteMaterial(QString matId)
QVariant getTempValue(QString name)
QString getPropertyScriptCode(QString domain, QString pname, QString datatype) const
int removeAllLinkedObjects(QString id)
QList< QVariant > getPropertyValuesByObjectList(QString propName, QString propDatatype, bool checkInh, QString objIdList, int maxValues=0, QString domainName="all", bool getNullValues=false)
int removeLinkedObjects(QString id, QString linkedIdList)
QStringList getModelListByName(QString name, QString domain="geometry")
QStringList getListOfTempValues()
QStringList readTextFile(QString filename, bool ignoreLineBreakesInDoubleQuotes=false, QString codec=QString())
void resetDocumentMetaData(QString objId)
void itColorCodeNumber(QString propName, QString propDT, double intervalSize)
int calcOOBB(QString objIdList, double eps=0.001)
bool writeToFile(QString content)
int setVisualisationByID(QString taskIDList, QString visID)
int checkIntersection(QString objId1, QString objId2, double tolerance=-0.00001)
int setAsComposite(const QString &id, bool composite)
QString getRootContainerByName(QString modelName, QString rootContainerName)
void showWireModeSchema(QString name)
bool openFile(QString filePath, const QString &encoding=QString())
QStringList cutObject(QString parentId, QString objId, QVariantMap plane=QVariantMap())
QString addPropertyTypeBookmark(QVariantMap bookmarkConfig)
int removeRangeFromRegion(QString regionId, double fromStation, double toStation, QString alignmentId=QString())
QVariantMap getBoundingBoxCommon(QString objIdList)
QString dbGetFilepath() const
QVariantList findDocumentsByLocationGps(double lat, double lon, double distance, QStringList idList=QStringList())
QString findContainerByName(const QString &parentId, const QString &name, const QString &lookupDomain="all")
QString getContainerByName(QString parentId, QString name)
QVariantList findDocumentsByLocationRangeGps(QStringList gpsCoordinates, double distance, QStringList idList=QStringList())
void itCalcOOBB(double eps)
QVariantMap addPropertyScript(QString domain, QString pname, QString datatype, QString code=QString())
int setPropertyValueRepository(QString objId, QString propName, QString propDataType, QVariant value, bool createType=true)
bool checkIfFileExists(QString filePath)
QString addRegionToAlignment(QString alignmentId, QVariantMap setting)
int setPropertyScriptCode(QString domain, QString pname, QString datatype, QString code)
QString createObjectFromXml(const QString &parentId, const QString &objectXML)
QList< QVariant > getPropertyTypeBookmarkList()
QVariantMap readCsvFile(QString filename, QString delimiter=";", QString quoteSign="\"")
int setTransparency(QString objectIds, float defaultTransparency=0.95)
QVariantMap getMaterial(const QString &matId)
QList< QVariant > getAvailablePropertyValues(QString propName, QString propDatatype, int maxValues, QString domainName="geometry")
bool setPropertyTypeActive(QString pName, QString ptype, QString domain, bool active)
QString mergeObjects(QString parentContainerId, QString idList, bool skipClosed=false, bool keepTransparency=false)
bool copyFile(QString fnFrom, QString fnTo)
int createDirectory(QString path, QString dirName)
int dbClearCache(const QString &propName, const QString &propType)
QVariantMap getOOBBCommon(QString objIdList)
bool moveFile(QString fnFrom, QString fnTo)
int removeFromSelectionSetGeometry(QString setId, QString objectIDList)
int removeVisualisation(QString taskIDList)
QVariantMap calcPropertyValuesOverTime(QString propName, QString propType, QVariantMap options)
bool isContainer(QString id)
bool appendToFile(QString filePath, const QString &content, const QString &encoding=QString())
int deleteModel(const QString &id)
int setAsOpening(QString objId, QString openingIDList)
int updateOOBBxy(QString objIdList, double eps=0.001)
int hasContact(QString objId1, QString objId2, QVariantMap options=QVariantMap())
Definition: CoreAPI.h:53
Definition: AutomationAPI.h:30
int deleteObjects(QString idList)
bool removeSelectionSet(QString selsetID)
int csvOpen(QString filename, QString delimiter=";", QString quoteSign="\"")
double checkOverlapOBB(QString id1, QString id2, double eps)
bool removeFile(QString filePath)
QString getPropertyScriptBgColor(QString domain, QString pname, QString datatype) const
QStringList getRootNodeListSelectionSets(QString domainFilter="all")
int setPropertyScriptOptions(QString domain, QString pname, QString datatype, QVariantMap opt)
bool dbQueryExec(const QString &sqlQuery)
void setPropertyListAsJSON(QVariantMap propmap, QVariantMap opt)
QString getPropertyScriptFgColor(QString domain, QString pname, QString datatype) const
int calcOOBBxy(QString objIdList, double eps=0.001)
int deletePropertyType(QString propName, QString propDatatype, QString domainName="all")
QStringList getRootContainerList(QString modelName)
QString createContactObject(QString parentId, QString objId1, QString objId2, QString matId, QVariantMap options=QVariantMap())
QString getMaterialAsXmlByID(QString matId)
int writePropertyValueDB(const QString &objIdList, const QString &propName, const QString &propDataType, const QString &propDomain, const QVariant &value, bool createType=true)
QVariantList findDocumentsByLocationGk(double rw, double hw, double distance, QStringList idList=QStringList())
QString getMaterialIDByName(QString matName)
void updateMaterial(QString matId, QString xmlMat)
int removePropertyScript(QString domain, QString pname, QString datatype)
int itByFilter(QString propName, QString propDatatype, QString filterPattern, bool checkInh=true, QString domain="geometry")
int setLinkedObjects(const QString &elementID, const QString &IDList)
QStringList findDocumentsByDate(QDateTime start, QDateTime end, QStringList idList=QStringList(), bool useRef=false)
QString createSelectionSet(QString name, QString parentID=QString())
void lockObjects(QString idList)
int dbDeleteProperty(const QString &objIdList, const QString &propName, const QString &propType)
QVariantMap getPropertyListAsJSON(QVariantMap options)
int deleteProperty(QString objId, QString propName, QString propDatatype)
void itSetMaterial(QString matId)
void resetMaterials(bool updateUI=true)
QString createColorSchema(QString setContainerId, QString name)
int addRangeToRegion(QString regionId, double fromStation, double toStation, QString alignmentId=QString())
int transformObject(QString objId, QString transformation)
void dbSetImmediateUpdate(bool)
int activatePropertyTypeBookmark(QString bkmId)
void itSetupDbCache(QString propName, QString propType)
int setMaterialToObjects(QString matId, QString objectIds)
QString createWireModeSchema(QString ids, QString wmName, bool overwrite=false)
QString readTextFileAsString(QString filename, QString codec=QString())
int createPropertyType(const QString &propName, const QString &propDatatype, const QString &uomCode, bool isInh, int target, const QString &domainName="all")
void setObjectsToWireMode(QString ids, bool wired)
QString createSelectionSets(QString propertyTypes, QString rootName, QVariantMap config=QVariantMap())
void removeObjectListFromTooltip(QString idList, QString tooltipname)
QString getProjectionAsSvg(QString idList, QVariantMap options=QVariantMap())
QVariant dbQueryValue(int column)
QStringList getRootNodeListByDomain(QString domainFilter="all")
int dbOpen(const QVariant connectionData=QVariant())
QVariantMap dbQueryRecordset(const QString &sqlQuery, const QString &key, int maxNumberOfRows=0)
void itUpdateOOBB(double eps)
int setPropertyScriptFgColor(QString domain, QString pname, QString datatype, QString code)
bool isIncludedIn(QString objId1, QString objId2)
void unlockObjects(QString idList)
bool activateColorSchemaByName(QString name)
void setName(QString objIdList, QString name)
QVariantMap getAsJSON(QString objId)
QVariantMap getVisualisationList()
QStringList getMaterialList()
QString createColorSchemaFromCurrentMaterials(QString name, bool updateExisting, QVariantMap options=QVariantMap())
int startProjectTransaction(const QString &domain="geometry")
QString createModel(QString name, bool createRootC=true, QString domain="geometry")
int setPropertyTypeMetaData(QString pName, QString ptype, QVariantMap metadata)
QVariantList getDirectoryEntryList(QString dirPath, bool filesOnly=false, QString orderBy="Name")
QVariantMap getPropertyScriptList() const
QVariantMap getOOBBxyCommon(QString objIdList)
int itByObjectList(QString idList)
QVariantMap getModelMetaData(QString modelId)
QString getRootNodeByModel(QString modelId)
QStringList csvNextLine()
QStringList getColorSchemaList()
int isPointIncludedIn(double x, double y, double z, QString objId, double tol=1.e-5)
QVariantMap getPropertyTypeBookmarkByID(QString bookmarkId)
int setPropertyValueDB(const QString &objIdList, const QString &propName, const QString &propDataType, const QString &propDomain, const QVariant &value, bool createType=true)
QStringList getModelListByDomain(QString domainFilter="all")
QString readImageFile(QString filename, QString targetFormat="")
int deleteColorSchema(QString namePattern)
void addObjectListToTooltip(QString idList, QString tooltipname)
QList< QVariant > getPropertyValues(QString propName, QString propDatatype, int maxValues=0, QString domainName="all", bool getNullValues=false)
bool hasElement(QString id)
void itCalcOOBBxy(double eps)
void itColorCode(QString propName, QString propDT)
void itUpdateOOBBxy(double eps)
int synchronizeDocumentContainer(QString containerId)
QString createMaterial(QString matXml, QString modelId=QString())
int updateOOBB(QString obIDList, double eps=0.001)
int setPropertyScriptBgColor(QString domain, QString pname, QString datatype, QString code)
int dbAssertTable(const QString &tableName, const QStringList &columnsList)
QList< QVariant > itGetAvailablePropertyValues(QString propName, QString propDatatype, int maxValues)
void dbCheckOut(const QStringList &propList)
int removeAllRegionsFromAlignment(QString alignmentId)
int setTaskMode(QString taskID, int mode)
bool writeFile(QString filePath, const QString &content, const QString &encoding=QString())
int endProjectTransaction(const QString &domain="geometry")
double calcDistance(QString objId1, QString objId2)
QString createObject(QString parentId, QString name)
void setTempValue(QString name, QVariant value)

Created: Tue Sep 1 2020 16:05:27