MainPage   Related pages 
AutomationAPI.h
1 
2 //
3 // $Id: AutomationAPI.h 4471 2021-02-04 17:33:46Z ansgar.horstmann $
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 
207  int synchronizeDocumentContainer( QString containerId, QScriptValue callback = QScriptValue(), bool blockExecution = false );
208 
213  void resetDocumentMetaData( QString objId );
214 
216 #pragma endregion
217 
218 
219 #pragma region ACTIVITIES - TOOLS
220 
244  QVariantMap getVisualisationList();
245 
252  int setVisualisationByID( QString taskIDList, QString visID );
253 
260  int removeVisualisation( QString taskIDList );
261 
277  int setTaskMode( QString taskID, int mode );
278 
319  QVariantMap calcPropertyValuesOverTime( QString propName, QString propType, QVariantMap options );
320 
322 #pragma endregion
323 
324 
325 #pragma region GEOMETRIC TOOLS
326 
328 
360  int hasContact( QString objId1, QString objId2, QVariantMap options = QVariantMap() );
361 
394  QString createContactObject( QString parentId, QString objId1, QString objId2, QString matId, QVariantMap options = QVariantMap() );
395 
426  QStringList cutObject( QString parentId, QString objId, QVariantMap plane = QVariantMap() );
427 
428 
445  QString mergeObjects( QString parentContainerId, QString idList, bool skipClosed = false, bool keepTransparency = false );
446 
447 
456  bool isIncludedIn(QString objId1, QString objId2);
457 
474  int isPointIncludedIn(double x, double y, double z, QString objId, double tol = 1.e-5 );
475 
476 
491  int checkIntersection( QString objId1, QString objId2, double tolerance = -0.00001 );
492 
515  int transformObject( QString objId, QString transformation );
516 
530  int setAsOpening( QString objId, QString openingIDList );
531 
555  QString getProjectionAsSvg( QString idList, QVariantMap options = QVariantMap() );
556 
557 
571  double calcDistance( QString objId1, QString objId2 );
572 
573 
575 #pragma endregion
576 
577 
578 #pragma region SELECTION_SETS
579 
620  QString createSelectionSets( QString propertyTypes, QString rootName, QVariantMap config = QVariantMap() );
621 
629  QStringList getRootNodeListSelectionSets( QString domainFilter = "all" );
630 
640  int addToSelectionSetGeometry( QString setId, QString objectIDList );
641 
653  int removeFromSelectionSetGeometry( QString setId, QString objectIDList );
654 
662  QString createSelectionSet( QString name, QString parentID = QString() ); // , QString domain = "geometry" );
663 
669  bool removeSelectionSet( QString selsetID );
670 
675  void updateSmartSets();
676 
682  int updateSmartSets(QStringList smartSetIDs);
683 
685 #pragma endregion
686 
687 
688 #pragma region MODELS
689 
702  QString getModelByName( QString name, QString domainFilter = "geometry" );
703 
712  QString getModelByElement( QString id, QString domainFilter = "all" );
713 
714 
728  QString getRootContainerByName(QString modelName, QString rootContainerName);
729 
730 
742  QStringList getModelListByName( QString name, QString domain = "geometry" );
743 
753  QStringList getModelListByDomain( QString domainFilter = "all" );
754 
769  QString getRootNodeByModel( QString modelId );
770 
783  QStringList getRootNodeListByDomain( QString domainFilter = "all" );
784 
819  QString createModel(QString name, bool createRootC = true, QString domain = "geometry" );
820 
821 
855  QVariantMap getModelMetaData( QString modelId );
856 
857 
872  int deleteModel( const QString& id );
873 
875 #pragma endregion
876 
877 
878 #pragma region PROJECT
879 
898  void setCloudSettings( QVariantMap vm );
899 
905  void setTempValue( QString name, QVariant value );
906 
911  QVariant getTempValue( QString name );
912 
917  QStringList getListOfTempValues();
918 
921  void clearListOfTempValues();
922 
924 #pragma endregion
925 
926 
927 #pragma region LINKED OBJECTS
928 
942  int setLinkedObjects( const QString& elementID, const QString& IDList );
943 
954  int removeAllLinkedObjects( QString id );
955 
964  int removeLinkedObjects( QString id, QString linkedIdList );
965 
967 #pragma endregion
968 
969 
970 #pragma region PROPERTY TYPES
971 
986  int createPropertyType( const QString& propName, const QString& propDatatype, const QString& uomCode, bool isInh, int target, const QString& domainName = "all" );
987 
1011  int setPropertyTypeMetaData( QString pName, QString ptype, QVariantMap metadata );
1012 
1031  int deletePropertyType( QString propName, QString propDatatype, QString domainName = "all" );
1032 
1060  QList<QVariant> getPropertyTypeBookmarkList( );
1061 
1097  QVariantMap getPropertyTypeBookmarkByID( QString bookmarkId );
1098 
1108  int activatePropertyTypeBookmark( QString bkmId );
1109 
1114  bool setPropertyTypeActive(QString pName, QString ptype, QString domain, bool active);
1115 
1121 
1125  int removePropertyTypeBookmarkByID( QString bkmId );
1126 
1136  QString addPropertyTypeBookmark( QVariantMap bookmarkConfig);
1137 
1139 #pragma endregion
1140 
1141 
1142 #pragma region PROPERTIES
1143 
1170  int setPropertyValue( QString objId, QString propName, QString propDataType, QVariant value );
1171 
1194  int setPropertyValueRepository( QString objId, QString propName, QString propDataType, QVariant value, bool createType = true );
1195 
1211  int deleteProperty( QString objId, QString propName, QString propDatatype );
1212 
1235  QList<QVariant> getAvailablePropertyValues( QString propName, QString propDatatype, int maxValues, QString domainName = "geometry" );
1236 
1237 
1253  QList<QVariant> getPropertyValues( QString propName, QString propDatatype, int maxValues = 0, QString domainName = "all", bool getNullValues = false );
1254 
1273  QList<QVariant> getPropertyValuesByObjectList(
1274  QString propName,
1275  QString propDatatype,
1276  bool checkInh,
1277  QString objIdList,
1278  int maxValues = 0,
1279  QString domainName = "all",
1280  bool getNullValues = false );
1281 
1322  QVariantMap getPropertyListAsJSON( QVariantMap options );
1323 
1399  void setPropertyListAsJSON( QVariantMap propmap, QVariantMap opt );
1400 
1402 #pragma endregion
1403 
1404 
1405 #pragma region PROPERTY SCRIPTS
1406 
1445  QVariantMap getPropertyScriptList() const;
1446 
1454  QString getPropertyScriptCode( QString domain, QString pname, QString datatype ) const;
1455 
1463  QString getPropertyScriptFgColor( QString domain, QString pname, QString datatype ) const;
1464 
1472  QString getPropertyScriptBgColor( QString domain, QString pname, QString datatype ) const;
1473 
1485  int setPropertyScriptCode( QString domain, QString pname, QString datatype, QString code );
1486 
1498  int setPropertyScriptFgColor( QString domain, QString pname, QString datatype, QString code );
1499 
1511  int setPropertyScriptBgColor( QString domain, QString pname, QString datatype, QString code );
1512 
1518  QVariantMap addPropertyScript( QString domain, QString pname, QString datatype, QString code = QString() );
1519 
1525  int removePropertyScript( QString domain, QString pname, QString datatype );
1526 
1534  void propertyScriptClearCache();
1535 
1541  void propertyScriptClearCache( QString domain, QString pname, QString datatype );
1542 
1557  QVariantMap getPropertyScriptOptions( QString domain, QString pname, QString datatype );
1558 
1577  int setPropertyScriptOptions( QString domain, QString pname, QString datatype, QVariantMap opt );
1578 
1579 
1581 #pragma endregion
1582 
1583 
1584 #pragma region GEOMETRY - MATERIALS
1585 
1618  QString createMaterial( QString matXml, QString modelId = QString() );
1619 
1631  int deleteMaterial( QString matId );
1632 
1638  QStringList getMaterialList();
1639 
1647  QString getMaterialAsXmlByID( QString matId );
1648 
1669  QVariantMap getMaterial( const QString& matId );
1670 
1677  QString getMaterialIDByName( QString matName );
1678 
1689  void updateMaterial( QString matId, QString xmlMat );
1690 
1703  int setMaterialToObjects( QString matId, QString objectIds );
1704 
1716  int setTransparency( QString objectIds, float defaultTransparency = 0.95 );
1717 
1725  void resetMaterials( bool updateUI = true );
1726 
1732  void reorderElements();
1733 
1735 #pragma endregion
1736 
1737 
1738 #pragma region GEOMETRY - COLOR SCHEMA
1739 
1752  QString createColorSchema( QString setContainerId, QString name );
1753 
1773  QString createColorSchemaFromCurrentMaterials(QString name, bool updateExisting, QVariantMap options = QVariantMap() );
1774 
1784  int deleteColorSchema( QString namePattern );
1785 
1791  QStringList getColorSchemaList();
1792 
1798  QString getCurrentColorSchema();
1799 
1809  bool activateColorSchemaByName( QString name );
1810 
1811 
1813 #pragma endregion
1814 
1815 
1816 #pragma region GEOMETRY- WIREMODE
1817 
1825  void showWireModeSchema( QString name );
1826 
1831  void clearWireMode();
1832 
1842  void setObjectsToWireMode( QString ids, bool wired );
1843 
1856  QString createWireModeSchema( QString ids, QString wmName, bool overwrite = false );
1857 
1862  QString getWired();
1863 
1868  int countWired();
1869 
1870 
1872 #pragma endregion
1873 
1874 
1875 #pragma region BBOX
1876 
1883  double getBBoxMinX();
1884 
1890  double getBBoxMaxX();
1891 
1897  double getBBoxMinY();
1898 
1904  double getBBoxMaxY();
1905 
1911  double getBBoxMinZ();
1912 
1918  double getBBoxMaxZ();
1919 
1924  void updateBoundingBox3DView();
1925 
1938  int calcOOBB( QString objIdList, double eps = 0.001 );
1939 
1952  int updateOOBB( QString obIDList, double eps = 0.001 );
1953 
1966  int calcOOBBxy( QString objIdList, double eps = 0.001 );
1967 
1980  int updateOOBBxy( QString objIdList, double eps = 0.001 );
1981 
2005  QVariantMap getBoundingBoxCommon( QString objIdList );
2006 
2026  QVariantMap getOOBBCommon( QString objIdList );
2027 
2047  QVariantMap getOOBBxyCommon( QString objIdList );
2048 
2061  double checkOverlapOBB( QString id1, QString id2, double eps );
2062 
2064 #pragma endregion
2065 
2066 
2067 #pragma region CREATE / DELETE OBJECTS / GET OBJECTS
2068 
2078  int startProjectTransaction( const QString& domain = "geometry" );
2079 
2088  int endProjectTransaction( const QString& domain = "geometry" );
2089 
2393  QString createObjectFromXml( const QString& parentId, const QString& objectXML );
2394 
2395 
2408  int deleteObjects( QString idList );
2409 
2410 
2424  void setName( QString objIdList, QString name );
2425 
2426 
2444  QString createObject( QString parentId, QString name );
2445 
2521  QVariantMap getAsJSON( QString objId );
2522 
2535  int setAsComposite( const QString& id, bool composite );
2536 
2537 
2539 #pragma endregion
2540 
2541 
2542 #pragma region REGIONS OF ALIGNMENTS
2543 
2577  QString addRegionToAlignment( QString alignmentId, QVariantMap setting );
2578 
2589  int removeAllRegionsFromAlignment( QString alignmentId );
2590 
2606  int addRangeToRegion( QString regionId, double fromStation, double toStation, QString alignmentId = QString() );
2607 
2623  int removeRangeFromRegion( QString regionId, double fromStation, double toStation, QString alignmentId = QString() );
2624 
2637  int removeAllRangesFromRegion( QString regionId, QString alignmentId = QString() );
2638 
2640 #pragma endregion
2641 
2642 
2643 #pragma region FILE OPERATIONS
2644 
2659  int createDirectory( QString path, QString dirName );
2660 
2673  bool writeFile( QString filePath, const QString& content, const QString& encoding = QString() );
2674 
2675 
2688  bool appendToFile(QString filePath, const QString& content, const QString& encoding = QString() );
2689 
2700  bool removeFile(QString filePath);
2701 
2706  bool copyFile( QString fnFrom, QString fnTo );
2707 
2712  bool moveFile( QString fnFrom, QString fnTo );
2713 
2724  bool checkIfFileExists(QString filePath);
2725 
2739  bool openFile( QString filePath, const QString& encoding = QString() );
2740 
2753  bool writeToFile(QString content);
2754 
2763  bool closeFile();
2764 
2787  QStringList readTextFile( QString filename, bool ignoreLineBreakesInDoubleQuotes = false, QString codec = QString() );
2788 
2798  QString readTextFileAsString( QString filename, QString codec = QString() );
2799 
2845  QVariantMap readCsvFile( QString filename, QString delimiter = ";", QString quoteSign = "\"" );
2846 
2862  int csvOpen( QString filename, QString delimiter = ";", QString quoteSign = "\"" );
2863 
2870  QStringList csvNextLine( );
2871 
2878  bool csvHasNextLine();
2879 
2886  bool csvClose( );
2887 
2888 
2889 
2890 
2905  QString readImageFile( QString filename, QString targetFormat = "", bool applyExifRotation = false );
2906 
2907 
2932  QVariantList getDirectoryEntryList( QString dirPath, bool filesOnly = false, QString orderBy = "Name" );
2933 
2934 
2936 #pragma endregion
2937 
2938 
2939 #pragma region DATABASE
2940 
2946  bool dbIsLocalCopy();
2947 
2952  QString dbGetFilepath() const;
2953 
2974  int dbOpen(const QVariant connectionData = QVariant());
2975 
2980  bool dbClose();
2981 
2987  void dbCheckIn();
2988 
2997  void dbCheckOut(const QStringList& propList);
2998 
3010  bool dbQueryExec(const QString& sqlQuery);
3011 
3040  QVariantMap dbQueryRecordset(const QString& sqlQuery, const QString& key, int maxNumberOfRows = 0 );
3041 
3049  bool dbEndQueryExec();
3050 
3061  bool dbQueryNext();
3062 
3066  QVariant dbQueryValue(int column);
3067 
3073  QString dbQueryLastError();
3074 
3104  int setPropertyValueDB(const QString& objIdList, const QString& propName, const QString& propDataType, const QString& propDomain, const QVariant& value, bool createType = true);
3105 
3123  int writePropertyValueDB(const QString& objIdList, const QString& propName, const QString& propDataType, const QString& propDomain, const QVariant& value, bool createType = true );
3124 
3128  bool startTransaction();
3129 
3133  bool endTransaction();
3134 
3140  bool dbGetImmediateUpdate();
3141 
3147  void dbSetImmediateUpdate(bool);
3148 
3154  int dbClearCache( const QString& propName, const QString& propType );
3155 
3160  void dbClearCacheAll();
3161 
3172  int dbDeleteProperty( const QString& objIdList, const QString& propName, const QString& propType );
3173 
3195  int dbAssertTable( const QString& tableName, const QStringList& columnsList );
3196 
3198 #pragma endregion
3199 
3200 
3201 #pragma region OBJECT TOOLTIPS
3202 
3204 
3209  QStringList getListOfObjTooltips();
3210 
3219  void addObjectListToTooltip( QString idList, QString tooltipname );
3220 
3229  void removeObjectListFromTooltip( QString idList, QString tooltipname );
3230 
3232 
3233 #pragma endregion
3234 
3235 
3236 #pragma region LOCKING OF OBJECTS
3237 
3244  void lockObjects( QString idList );
3245 
3251  void unlockObjects( QString idList );
3252 
3257  void unlockAllObjects();
3258 
3264  QString getLocked();
3265 
3271  int countLocked();
3272 
3274 #pragma endregion
3275 
3276 
3277 #pragma region OBJECT ITERATOR
3278 
3284  void itClear();
3285 
3304  int itByFilter(QString propName, QString propDatatype, QString filterPattern, bool checkInh = true, QString domain = "geometry" );
3305 
3306 
3322  int itFilterByStatus(QString status, bool enabled = true, QString domain = "geometry");
3323 
3324 
3332  int itByObjectList( QString idList );
3333 
3339  QString itGetObjectList();
3340 
3348  bool itHasNext();
3349 
3355  QString itNext();
3356 
3362  int itCount();
3363 
3369  void itToFront();
3370 
3378  QList<QVariant> itGetAvailablePropertyValues(QString propName, QString propDatatype, int maxValues );
3379 
3384  void itSetupDbCache( QString propName, QString propType );
3385 
3390  void itSetMaterial(QString matId);
3391 
3404  void itColorCode( QString propName, QString propDT );
3405 
3420  void itColorCodeNumber( QString propName, QString propDT, double intervalSize );
3421 
3427  void itCalcOOBB( double eps );
3428 
3433  void itUpdateOOBB( double eps );
3434 
3440  void itCalcOOBBxy( double eps );
3441 
3446  void itUpdateOOBBxy( double eps );
3447 
3449 #pragma endregion
3450 
3453  private:
3454 
3455  QFile* _file;
3456  QTextStream* _textstream;
3457  QFile* _csvFile;
3458  QTextStream* _csvTextStream;
3459 
3460  char _c_delimiter;
3461  char _c_quoteSign;
3462  bool _isAutomation;
3463 
3464  /*
3465  Check if a given filePath actually contains a path, or just the filename.
3466  If path included: input unmodified, return true
3467  If path not included and project open: prepend project path to input, return true
3468  If path not included and no project open: input unmodified, return false
3469 
3470  \since 2.4.2, 2019-03-01, ah
3471  */
3472  bool _checkCompleteFilePath(QString& filePath);
3473 
3476  };
3477 
3478 }
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()
Definition: CoreAPI.h:32
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())
int synchronizeDocumentContainer(QString containerId, QScriptValue callback=QScriptValue(), bool blockExecution=false)
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
QString readImageFile(QString filename, QString targetFormat="", bool applyExifRotation=false)
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")
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)
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: Mon Feb 8 2021 03:23:24