MainPage   Related pages 
Public Slots | Signals | Public Member Functions | List of all members
desiteCore::NavigatorProjectAPI Class Reference

#include <desiteCore/NavigatorProjectAPI.h>

Inheritance diagram for desiteCore::NavigatorProjectAPI:
desiteCore::ProjectAPI domainBim::AutomationAPI domainBim::CoreAPI

Public Slots

QVariant callScriptByName (QString scriptName, QString code_prefix=QString())
QVariantMap tpApiAuth ()
void blockSignals (bool block, int msecsDelay=0)
- Public Slots inherited from desiteCore::ProjectAPI
int message (QString)
bool sendRemoteMessage (QString message)
QVariantMap getClipping (int i)
void setClipping (int i, QVariantMap clp)
QVariantMap getCamera ()
QVariantMap getCameraAsJsonObject ()
void setCamera (QVariantMap cam)
void setCameraFromJsonObject (QVariantMap camJSON)
QList< QVariant > getLightSources ()
void setLightSources (QList< QVariant > lList)
QVariantMap getVisualizationOptions ()
void setVisualizationOptions (QVariantMap opt)
QVariantMap getPainterOptions ()
void setPainterOptions (QVariantMap opt)
void startEXE (QString prg, QString args)
void showOnScreenKeyboard ()
void openLink (QString url, bool useDesktopService)
QString showOpenFileDialog (QString caption="", QString directory="", QString filter="")
QString showSaveFileDialog (QString caption="", QString directory="", QString filter="")
void openProject (QString url, bool useSessionData)
int saveProject ()
int saveCPA (QString cpa_filename, QString pack_bookmark)
QVariant importModel (QString filename, bool showDialog=true, QVariantMap options=QVariantMap())
QString exportBCF (QStringList sourceIds, QString targetPath, QString targetFileBaseName, QString bcfVersion="2.1")
bool importBCF (QString sourceFilePath)
int redirectDocument (QString modelId, QString newSourceFilePath)
void filterElements (QString pName, QString pType, QString pattern, bool checkInh=true, QString domainCombination="geometry")
int showColorSchema (QString name)
void showAll (bool repaint, QString domainCombination="geometry")
void hideAll (bool repaint, QString domainCombination="geometry")
void showElements (QString idList, bool includeBlocked=false, QString domainCombination="geometry")
void showElementsOnly (QString idList, QString domainCombination="geometry")
void hideElements (QString idList, bool ignoreObjectLocking=false, QString domainCombination="geometry")
void clearSelection (bool repaint, QString domainCombination="geometry")
void selectVisible ()
void selectVisibleGeometric ()
void selectElements (QString idList, bool flag, QString domainCombination="geometry")
void zoomToSelected ()
void zoomToVisible ()
void zoomToObjects (QString objIDs)
void zoomToAllDocuments ()
void zoomToSelectedDocuments ()
void zoomToVisibleDocuments ()
void zoomToDocuments (QStringList idList)
void zoomToAllResources ()
void zoomToSelectedResources ()
void zoomToVisibleResources ()
void zoomToResources (QStringList idList)
void zoomToLocationGK (double rw, double hw, double h)
void zoomToLocationGps (double lat, double lon)
void moveToLocationGps (double lat, double lon)
void zoomTopView ()
QString getAll (QString domainFilter="geometry")
QStringList getAllElements (QString domainFilter="geometry")
QString getVisible (QString domainFilter="geometry")
QStringList getVisibleElements (QString domainFilter="geometry")
bool hasVisible (QString domainFilter="all")
int countVisible (QString domainFilter="geometry")
QString getSelected (QString domainFilter="geometry")
QStringList getSelectedElements (QString domainFilter="geometry")
bool hasSelected (QString domainFilter="all")
int countSelected (QString domainFilter="geometry")
void setVisualisationMode (int mode, bool repaint=true)
int getVisualisationMode ()
QVariantMap showElementsOOBBSide (QString IDList, double prec=1.e-2)
QVariantMap showElementsOOBBTop (QString IDList, double prec=1.e-2)
QVariantMap showElementsOOBBFront (QString idList, double prec=1.e-2)
void showDimensionsPainter (bool showAABB, bool showOOBB)
void hideDimensionsPainter ()
void repaint3DView ()
int showViewpoint (QString name)
int showViewpointByID (QString id)
QVariantMap getViewpointList ()
QVariantMap getViewpointMetadata (QString id)
void addToViewPoint (QString vpID, QString objIdList)
void removeFromViewPoint (QString vpID, QString objIdList)
QString saveViewpoint (QString name, bool saveVisible=true, bool saveSelected=false, QString desc=QString(), bool saveRedlining=false, bool copyMeasureItems=false)
bool deleteViewpointByID (QString id)
bool deleteAllViewpoints ()
QString getCurrentViewAsImage ()
bool saveCurrentViewToFile (QString filename)
QVariantMap getViewpointAsJsonObject (const QString &vpID, const QStringList &blacklist=QStringList())
QString createViewpointFromJsonObject (const QVariantMap &vm)
QVariantMap getViewpointObjectDataAsJsonObject (const QString &vpID)
int setViewpointObjectDataFromJsonObject (const QString &vpID, const QVariantMap &vm)
QVariantMap getViewpointMeasureItemsAsJsonObject (const QString &vpID)
int addMeasureItemsToViewpointFromJsonObject (const QString &vpID, const QVariantMap &vm)
void applyViewByJsonObject (const QVariantMap &vm)
void applyMeasureItemsFromJsonObject (const QVariantMap &vm)
int activateObjTooltip (QString name)
void deactivateObjTooltip ()
QString getActiveTooltipName () const
void setDocumentsTooltipsVisible (bool v)
bool getDocumentsTooltipsVisible ()
void setResourcesTooltipsVisible (bool v)
bool getResourcesTooltipsVisible ()
void set4dIsActive (bool active)
bool get4dIsActive ()
bool set4dDateTime (QDateTime dt)
QDateTime get4dDateTime ()
QVariantMap get4dOptions ()
void set4dOptions (QVariantMap opt)
QDateTime get4dProjectStart ()
QDateTime get4dProjectFinish ()
QStringList get4dActiveTaskList (QDateTime dt, bool linkedToObjectsOnly=false)
QStringList get4dActiveTaskListByInterval (QDateTime dtStart, QDateTime dtEnd, bool linkedToObjectsOnly=false)
QStringList get4dFinishedTaskList (QDateTime, bool linkedToObjectsOnly=false)
QStringList get4dProspectiveTaskList (QDateTime, bool linkedToObjectsOnly=false)
QString get4dTaskColor (QString taskID, QDateTime dt, QString defaultColorName="#000")
void setBsPlanUnderlayActive (bool active)
bool getBsPlanUnderlayActive ()
QString getNavigationMode ()
void setNavigationMode (QString mode, QString pinModeContainerID=QString())
QVariantMap getHandlerMode ()
bool setHandlerMode (QVariantMap handlerInfo)
QStringList getCreatedPins ()
QVariantMap getPickedPoint ()
QVariantMap getAllPickedPoints ()
QVariantMap getPickedPointGPS ()
QVariantMap getPickedPointGK ()
QVariantMap getPickedFaces ()
void clearMeasureItems ()
void showClashList (QString clashIdList)
QVariantMap getWebFormLocations ()
void createWebFormBookmark (QString url, QString name)
int removeWebFormBookmark (QString url)
- Public Slots inherited from domainBim::AutomationAPI
bool hasElement (QString id)
QStringList getRootContainerList (QString modelName)
QString findContainerByName (const QString &parentId, const QString &name, const QString &lookupDomain="all")
QString getContainerByName (QString parentId, QString name)
bool isContainer (QString id)
QVariantList findDocumentsByLocationGps (double lat, double lon, double distance, QStringList idList=QStringList())
QVariantList findDocumentsByLocationRangeGps (QStringList gpsCoordinates, double distance, QStringList idList=QStringList())
QVariantList findDocumentsByLocationGk (double rw, double hw, double distance, QStringList idList=QStringList())
QStringList findDocumentsByDate (QDateTime start, QDateTime end, QStringList idList=QStringList(), bool useRef=false)
int synchronizeDocumentContainer (QString containerId, QScriptValue callback=QScriptValue(), bool blockExecution=false)
void resetDocumentMetaData (QString objId)
QVariantMap getVisualisationList ()
int setVisualisationByID (QString taskIDList, QString visID)
int removeVisualisation (QString taskIDList)
int setTaskMode (QString taskID, int mode)
int recalculateActivityProject (QString taskID=QString(), bool visibleOnly=false)
QVariantMap calcPropertyValuesOverTime (QString propName, QString propType, QVariantMap options)
QStringList getCalendarList ()
QString getCalendarByName (QString name)
QString getCalendarByTask (QString taskID, bool checkInh=true)
int setCalendar (QString taskID, QString calendarID)
int removeCalendarFromTask (QString taskID)
int setCalendarOptions (QString calendarID, QVariantMap options)
QVariantMap getCalendarOptions (QString calendarID)
int calcWorkInMinutes (QDateTime start, QDateTime finish, QString calendarID=QString())
QStringList getTaskRestrictionsList ()
QString getTaskRestrictionsByName (QString name)
int setTaskRestrictions (QString taskID, QString restrictionsID)
int removeTaskRestrictions (QString taskID)
int setBoQBreakdownStructure (QString boqModelID, QString templateStr)
int hasContact (QString objId1, QString objId2, QVariantMap options=QVariantMap())
QString createContactObject (QString parentId, QString objId1, QString objId2, QString matId, QVariantMap options=QVariantMap())
QStringList cutObject (QString parentId, QString objId, QVariantMap plane=QVariantMap(), bool closeCuts=true, bool splitUnconnectedParts=true)
- Public Slots inherited from domainBim::CoreAPI
QString addDays (QString dateStr, int nrDays)
QString timeStamp (QString format=QString())
int getCalendarWeek (QDateTime dt)
QString format (double v, int dec=2, QString frmt="%L1", int fieldWidth=10, QChar fillChar=QChar::Nbsp)
QString formatDateTime (QDateTime dt, QString formatstr="iso")
QString createID ()
long calcHashcode (QString str)
QString compressToIfcGuid (QString id)
QString uncompressFromIfcGuid (QString ifcGuid)
bool checkRegExp (QString value, QString pattern)
double calcSlantedArea (QString objId, double angleMin=0.0, double angleMax=45.0)
QVariantMap calcGpsCoordsByStation (QString objId, double station)
QVariantMap calcGpsCoordsByModelCoords (double x, double y)
QVariantMap calcModelCoordsByGpsCoords (double lat, double lon)
QVariantMap calcGkCoordsByGpsCoords (double lat, double lon)
QVariantMap calcGpsCoordsByGkCoords (double rw, double hw)
QString idListToStr (QStringList idList)
QStringList strToIdList (QString strIDList)
QVariantMap getFileInfo (QString filePath)
QString getAbsolutePath (QString filePath)
QString getBaseName (QString filePath)
QString getFileName (QString filePath)
QString getApplicationDirectory ()
QString getApplicationFilename ()
virtual QString getApplicationLanguage ()
QString getVersionAsString ()
int getVersionMAJOR ()
int getVersionMINOR ()
int getVersionBUILD ()
QVariantMap getVersion ()
bool requireVersion (int major, int minor, int patch)
QString getUserName ()
QString getProjectID ()
int getProjectVariantNumber ()
int getProjectVersionNumber ()
QString getProjectNumber ()
int setProjectNumber (QString s, bool overwriteExisting=false)
QString getProjectName ()
QString getProjectShortDescription ()
int setProjectShortDescription (QString s, bool overwriteExisting=false)
QString getProjectLongDescription ()
int setProjectLongDescription (QString s, bool overwriteExisting=false)
QString getProjectDirectory ()
QString getLocation ()
QVariantMap getProjectLocation () const
QVariantMap getCloudSettings ()
QVariantMap getProjectInfo ()
QString getDomainByElement (QString objId)
QVariant getPropertyValue (QString objId, QString propName, QString propType, bool inh=true)
QList< QVariant > getPropertyValuesByObject (QString objId, QString filterpattern="*")
QVariant getPropertySource (QString objId, QString propName, QString propType, bool inh=true)
QString getPropertyUnit (QString objId, QString propName, QString propType, bool inh=true)
QString getPropertyUnit (QString propName, QString propType)
QVariant getPropertyValueByDate (QString objId, QString propName, QString propType, bool inh=true)
QDateTime getPropertyLastDate (QString objId, QString propName, QString propType, bool inh=true)
QDateTime getPropertyFirstDate (QString objId, QString propName, QString propType, bool inh)
QVariantMap getPropertyDateListAsJSON (QString objId, QString propName, QString propType, bool inh=true)
QVariantList getPropertyDateList (QString objectId, QString propertyBaseName, QString propertyType)
QVariantMap getPropertyTypesByObject (QString objId, QString filterPattern="*")
QVariantMap getPropertyTypesByDomain (QString domainName, QString filterPattern="*")
QVariantMap getPropertyTypeMetaData (QString propName, QString propType)
QList< QVariant > getPropertyTypeList (QString domain="all", QString filterPattern="*", bool activeOnly=false)
QList< QVariant > getPropertyTypeListByObject (QString objId, QString filterPattern="*")
bool isPropertyInherited (QString objId, QString propName, QString propType)
QString getPropertyValueRange (QString idList, QString propName, QString propType, QString domainFilter="geometry")
QStringList getPropertyValueList (QString propName, QString propType, int maxValues)
QString getPropertyValueAsString (QString objId, QString propName, QString propType, bool inh=true)
QVariant evaluateFormula (QString code, QString id, QString id_otherdomain=QString())
QString prepareJsCode (QString code, QString id, int dec=-1, QString frmt="%L1", int fieldWidth=10, QChar fillChar=QChar())
QStringList extractPropertyNames (const QString &code, const QString &startTag="[[", const QString &endTag="]]")
QStringList getLinkedObjects (QString objectIDList, QString resultDomains="all", QString objectLookupDomains="all")
QStringList getTasksByObjectList (QString idList)
QStringList getObjectsByTaskList (QString idList)
QStringList getDocumentsByObjectList (QString idList)
QStringList getObjectsByDocumentList (QString idList)
QStringList getSectionsByObjectList (QString idList)
QStringList getObjectsBySectionList (QString idList)
QStringList getTypesByObjectList (QString idList)
QStringList getObjectsByTypeList (QString idList)
QStringList getResourcesByObjectList (QString idList)
QStringList getObjectsByResourcesList (QString idList)
QStringList getBoQItemsByObjectList (QString idList)
QStringList getObjectsByBoQItemList (QString idList)
QStringList getPcItemsByObjectList (QString idList)
QStringList getObjectsByPcItemList (QString idList)
QStringList getContainedElements (QString containerId, int maxDepth, bool loadExternal=true)
int countContainedElements (QString containerId, int maxDepth, bool loadExternal=true)
QString getParent (QString objId)
QStringList getOpenings (QString objId)
QStringList getParts (QString objId)
bool isVisible (QString objId)
bool isSelected (QString objId)
bool isLocked (QString objId)
bool isWired (QString objId)
QVariantList getPointList (QString objId)
QVariantMap getPointOnAlignmentAtStation (QString alignmentId, double d)
double getStationOfProjectedPoint (QString alignmentId, double x, double y, double z=0.0)
QStringList getRegionsOfAlignment (QString alignmentId)
QVariantList getRangesOfRegion (QString alignmentID, QString regionID)
double getValueOfAlignmentRegion (QString alignmentID, QString regionID)
int getTaskMode (QString taskID)
QString getTaskVisualisation (QString taskID)
QString getTaskRestrictionsByTask (QString taskID)
int updateRuleBasedLinks (QString domainName, bool visibleOnly=false)
int removeRuleBasedLinks (QString domainName)


void selectionChanged ()
void selectionChangedByDomain (QString domain)
void visibilityChanged ()
void visibilityChangedByDomain (QString domain)
void dataUpdated ()
void simulationDateChanged (QDateTime)
void simulationActivated (bool)

Public Member Functions

void forwardSimulationActivated (bool)
void forwardSimulationDateChanged (QDateTime)
 NavigatorProjectAPI (NavigatorProject *np, QObject *parent=0)
virtual ~NavigatorProjectAPI ()
- Public Member Functions inherited from desiteCore::ProjectAPI
 ProjectAPI (NavigatorProject *np, QObject *parent=0)
virtual ~ProjectAPI ()
- Public Member Functions inherited from domainBim::AutomationAPI
QString createSelectionSets (QString propertyTypes, QString rootName, QVariantMap config=QVariantMap())
QStringList getRootNodeListSelectionSets (QString domainFilter="all")
int addToSelectionSetGeometry (QString setId, QString objectIDList)
int removeFromSelectionSetGeometry (QString setId, QString objectIDs)
QString createSelectionSet (QString name, QString parentID=QString())
bool removeSelectionSet (QString selsetID)
int updateSmartSets (QStringList smartSetIDs=QStringList())
QString getModelByName (QString name, QString domainFilter="geometry")
QString getModelByElement (QString id, QString domainFilter="all")
QString getRootContainerByName (QString modelName, QString rootContainerName)
QStringList getModelListByName (QString name, QString domain="geometry")
QStringList getModelListByDomain (QString domainFilter="all")
QString getRootNodeByModel (QString modelId)
QStringList getRootNodeListByDomain (QString domainFilter="all")
QString createModel (QString name, bool createRootC=true, QString domain="geometry")
QVariantMap getModelMetaData (QString modelId)
int deleteModel (const QString &id)
void setCloudSettings (QVariantMap vm)
void setTempValue (QString name, QVariant value)
QVariant getTempValue (QString name)
QStringList getListOfTempValues ()
void clearListOfTempValues ()
int setLinkedObjects (const QString &elementID, const QString &IDList)
int removeAllLinkedObjects (QString id)
int removeLinkedObjects (QString id, QString linkedIdList)
int createPropertyType (const QString &propName, const QString &propDatatype, const QString &uomCode, bool isInh, int target, const QString &domainName="all")
int setPropertyTypeMetaData (QString pName, QString ptype, QVariantMap metadata)
int deletePropertyType (QString propName, QString propDatatype, QString domainName="all")
QList< QVariant > getPropertyTypeBookmarkList ()
QVariantMap getPropertyTypeBookmarkByID (QString bookmarkId)
int activatePropertyTypeBookmark (QString bkmId)
bool setPropertyTypeActive (QString pName, QString ptype, QString domain, bool active)
int setAllPropertyTypesActive ()
int removePropertyTypeBookmarkByID (QString bkmId)
QString addPropertyTypeBookmark (QVariantMap bookmarkConfig)
int setPropertyValue (QString objId, QString propName, QString propDataType, QVariant value)
int setPropertyValueRepository (QString objId, QString propName, QString propDataType, QVariant value, bool createType=true)
int deleteProperty (QString objId, QString propName, QString propDatatype)
QList< QVariant > getAvailablePropertyValues (QString propName, QString propDatatype, int maxValues, QString domainName="geometry")
QList< QVariant > getPropertyValues (QString propName, QString propDatatype, int maxValues=0, QString domainName="all", bool getNullValues=false)
QList< QVariant > getPropertyValuesByObjectList (QString propName, QString propDatatype, bool checkInh, QString objIdList, int maxValues=0, QString domainName="all", bool getNullValues=false)
QVariantMap getPropertyListAsJSON (QVariantMap options)
void setPropertyListAsJSON (QVariantMap propmap, QVariantMap opt)
QVariantMap getPropertyScriptList () const
QString getPropertyScriptCode (QString domain, QString pname, QString datatype) const
QString getPropertyScriptFgColor (QString domain, QString pname, QString datatype) const
QString getPropertyScriptBgColor (QString domain, QString pname, QString datatype) const
int setPropertyScriptCode (QString domain, QString pname, QString datatype, QString code)
int setPropertyScriptFgColor (QString domain, QString pname, QString datatype, QString code)
int setPropertyScriptBgColor (QString domain, QString pname, QString datatype, QString code)
QVariantMap addPropertyScript (QString domain, QString pname, QString datatype, QString code=QString())
int removePropertyScript (QString domain, QString pname, QString datatype)
void propertyScriptClearCache ()
void propertyScriptClearCache (QString domain, QString pname, QString datatype)
QVariantMap getPropertyScriptOptions (QString domain, QString pname, QString datatype)
int setPropertyScriptOptions (QString domain, QString pname, QString datatype, QVariantMap opt)
QString createMaterial (QString matXml, QString modelId=QString())
int deleteMaterial (QString matId)
QStringList getMaterialList ()
QString getMaterialAsXmlByID (QString matId)
QVariantMap getMaterial (const QString &matId)
QString getMaterialIDByName (QString matName)
void updateMaterial (QString matId, QString xmlMat)
int setMaterialToObjects (QString matId, QString objectIds)
int setTransparency (QString objectIds, float defaultTransparency=0.95)
void resetMaterials (bool updateUI=true)
void reorderElements ()
QString createColorSchema (QString setContainerId, QString name)
QString createColorSchemaFromCurrentMaterials (QString name, bool updateExisting, QVariantMap options=QVariantMap())
int deleteColorSchema (QString namePattern)
QStringList getColorSchemaList ()
QString getCurrentColorSchema ()
bool activateColorSchemaByName (QString name)
void showWireModeSchema (QString name)
void clearWireMode ()
void setObjectsToWireMode (QString ids, bool wired)
QString createWireModeSchema (QString ids, QString wmName, bool overwrite=false)
QString getWired ()
int countWired ()
double getBBoxMinX ()
double getBBoxMaxX ()
double getBBoxMinY ()
double getBBoxMaxY ()
double getBBoxMinZ ()
double getBBoxMaxZ ()
void updateBoundingBox3DView ()
int calcOOBB (QString objIdList, double eps=0.001)
int updateOOBB (QString obIDList, double eps=0.001)
int calcOOBBxy (QString objIdList, double eps=0.001)
int updateOOBBxy (QString objIdList, double eps=0.001)
QVariantMap getBoundingBoxCommon (QString objIdList)
QVariantMap getOOBBCommon (QString objIdList)
QVariantMap getOOBBxyCommon (QString objIdList)
double checkOverlapOBB (QString id1, QString id2, double eps=0.001)
int startProjectTransaction (const QString &domain="geometry")
int endProjectTransaction (const QString &domain="geometry")
QString createObjectFromXml (const QString &parentId, const QString &objectXML)
int deleteObjects (QString idList)
void setName (QString objIdList, QString name)
QString createObject (QString parentId, QString name)
QVariantMap getAsJSON (QString objId)
int setAsComposite (const QString &id, bool composite)
QString addRegionToAlignment (QString alignmentId, QVariantMap setting)
int removeAllRegionsFromAlignment (QString alignmentId)
int addRangeToRegion (QString regionId, double fromStation, double toStation, QString alignmentId=QString())
int removeRangeFromRegion (QString regionId, double fromStation, double toStation, QString alignmentId=QString())
int removeAllRangesFromRegion (QString regionId, QString alignmentId=QString())
int createDirectory (QString path, QString dirName)
bool writeFile (QString filePath, const QString &content, const QString &encoding=QString())
bool writeBinaryFile (QString filePath, const QByteArray &data)
bool appendToFile (QString filePath, const QString &content, const QString &encoding=QString())
bool removeFile (QString filePath)
bool copyFile (QString fnFrom, QString fnTo)
bool moveFile (QString fnFrom, QString fnTo)
bool checkIfFileExists (QString filePath)
bool openFile (QString filePath, const QString &encoding=QString())
bool writeToFile (QString content)
bool closeFile ()
QStringList readTextFile (QString filename, bool ignoreLineBreakesInDoubleQuotes=false, QString codec=QString())
QString readTextFileAsString (QString filename, QString codec=QString())
QByteArray readBinaryFile (QString filePath)
QVariantMap readCsvFile (QString filename, QString delimiter=";", QString quoteSign="\)
int csvOpen (QString filename, QString delimiter=";", QString quoteSign="\)
QStringList csvNextLine ()
bool csvHasNextLine ()
bool csvClose ()
QString readImageFile (QString filename, QString targetFormat="", bool applyExifRotation=false)
QVariantList getDirectoryEntryList (QString dirPath, bool filesOnly=false, QString orderBy="Name")
bool dbIsLocalCopy ()
QString dbGetFilepath () const
int dbOpen (const QVariant connectionData=QVariant())
bool dbClose ()
void dbCheckIn ()
void dbCheckOut (const QStringList &propList)
bool dbQueryExec (const QString &sqlQuery)
QVariantMap dbQueryRecordset (const QString &sqlQuery, const QString &key, int maxNumberOfRows=0)
bool dbEndQueryExec ()
bool dbQueryNext ()
QVariant dbQueryValue (int column)
QString dbQueryLastError ()
int setPropertyValueDB (const QString &objIdList, const QString &propName, const QString &propDataType, const QString &propDomain, const QVariant &value, bool createType=true)
int writePropertyValueDB (const QString &objIdList, const QString &propName, const QString &propDataType, const QString &propDomain, const QVariant &value, bool createType=true)
bool startTransaction ()
bool endTransaction ()
bool dbGetImmediateUpdate ()
void dbSetImmediateUpdate (bool)
int dbClearCache (const QString &propName, const QString &propType)
void dbClearCacheAll ()
int dbDeleteProperty (const QString &objIdList, const QString &propName, const QString &propType)
int dbAssertTable (const QString &tableName, const QStringList &columnsList)
QStringList getListOfObjTooltips ()
void addObjectListToTooltip (QString idList, QString tooltipname)
void removeObjectListFromTooltip (QString idList, QString tooltipname)
void lockObjects (QString idList)
void unlockObjects (QString idList)
void unlockAllObjects ()
QString getLocked ()
int countLocked ()
void itClear ()
int itByFilter (QString propName, QString propDatatype, QString filterPattern, bool checkInh=true, QString domain="geometry")
int itFilterByStatus (QString status, bool enabled=true, QString domain="geometry")
int itByObjectList (QString idList)
QString itGetObjectList ()
bool itHasNext ()
QString itNext ()
int itCount ()
void itToFront ()
QList< QVariant > itGetAvailablePropertyValues (QString propName, QString propDatatype, int maxValues)
void itSetupDbCache (QString propName, QString propType)
void itSetMaterial (QString matId)
void itColorCode (QString propName, QString propDT)
void itColorCodeNumber (QString propName, QString propDT, double intervalSize)
void itCalcOOBB (double eps)
void itUpdateOOBB (double eps)
void itCalcOOBBxy (double eps)
void itUpdateOOBBxy (double eps)
QString mergeObjects (QString parentContainerId, QString idList, bool skipClosed=false, bool keepTransparency=false, bool keepCommonProperties=false, bool replaceParent=false)
bool isIncludedIn (QString objId1, QString objId2)
int isPointIncludedIn (double x, double y, double z, QString objId, double tol=1.e-5)
int checkIntersection (QString objId1, QString objId2, double tolerance=-0.00001)
int transformObject (QString objId, QString transformation)
int setAsOpening (QString objId, QString openingIDList)
QString getProjectionAsSvg (QString idList, QVariantMap options=QVariantMap())
double calcDistance (QString objId1, QString objId2)
int swapOrientationOfTriangles (QVariantList idList)

Additional Inherited Members

- Static Public Attributes inherited from domainBim::CoreAPI
static bool BLOCK_UNSAFE

Detailed Description

API in WebForms
Objectname: desiteAPI

1.0.16, 05 apr 2012 by jh
NavigatorProjectAPI.h 4751 2021-04-13 16:50:12Z stefan.losch

(c) ceapoint aec technologies GmbH

Member Function Documentation

◆ blockSignals

void desiteCore::NavigatorProjectAPI::blockSignals ( bool  block,
int  msecsDelay = 0 

Block and unblock signaling.
When you have code inside an event handler that would trigger the event again - for instance, selecting additional objects in reaction to the "selectionChanged" event - you must temporarily block the signaling to avoid infinite loops.

blocktrue for block, false for unblock
msecsDelayDelay the operation by the value given in milliseconds. Due to the asynchronous nature of the signaling, you may need to delay the unblocking to make sure that it does not happen before a signal is emitted.


function onSelectionChanged() {
// just random examples for calls that modify selection.
// script execution may continue before all "selectionChanged" signals are emitted...
desiteAPI.selectElements( '6dda98c0-8af6-463f-916f-8d5d7fa49a34', true );
desiteAPI.blockSignals(false, 500); // ... which is why we delay the unblocking by half a second
2.7.1, 2020-11-25, ah

◆ callScriptByName

QVariant desiteCore::NavigatorProjectAPI::callScriptByName ( QString  scriptName,
QString  code_prefix = QString() 

Run the script 'scriptName'.

1.3.7, 01 may 2014, jh

◆ dataUpdated

void desiteCore::NavigatorProjectAPI::dataUpdated ( )

Update of database finished.

1.0.18, 15 aug 2012, jh

◆ selectionChanged

void desiteCore::NavigatorProjectAPI::selectionChanged ( )

Selection of objects in domain 'geometry' changed.
Connect the signal when web page is loaded.


Called function:

function onSelectionChanged()

◆ selectionChangedByDomain

void desiteCore::NavigatorProjectAPI::selectionChangedByDomain ( QString  domain)

Selection of objects in any domain changed.
Connect the signal when web page is loaded.


Called function:

function onSelectionChangedByDomain(domain)

◆ simulationActivated

void desiteCore::NavigatorProjectAPI::simulationActivated ( bool  )

4D-Simulation is activated (true) or deactivated (false).

1.5.0, 11 sep 2015

◆ simulationDateChanged

void desiteCore::NavigatorProjectAPI::simulationDateChanged ( QDateTime  )

Date of 4D-Simulation has changed.

1.5.0, 11 sep 2015

◆ tpApiAuth

QVariantMap desiteCore::NavigatorProjectAPI::tpApiAuth ( )

Open the thinkproject SSO page for authorization for the tp API.

Object with token data (or error information).
2.7.1, 2020-10-13, ah

◆ visibilityChanged

void desiteCore::NavigatorProjectAPI::visibilityChanged ( )

Visibility of objects in domain 'geometry' changed.
Connect the signal when web page is loaded.


Called function:

function onVisibilityChanged()

◆ visibilityChangedByDomain

void desiteCore::NavigatorProjectAPI::visibilityChangedByDomain ( QString  domain)

Visibility of objects in any domain changed.
Connect the signal when web page is loaded.


Called function:

function onVisibilityChangedByDomain(domain)

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

Created: Tue Dec 13 2022 13:14:00