![]() |
COLNEO Pro 1.0
|
Project API interface.
Register with "cnProjectAPI".
The Project API provides project related functions such as ...
Functions | |
PROJECT | |
ApiJsonResponse | getInfo () |
ApiJsonResponse | setInfo (QVariantMap &projectInfo) |
ApiJsonResponse | create (QVariantMap settings) |
ApiJsonResponse | open (QString filepath) |
ApiJsonResponse | saveAs (QString &filepath) |
ApiJsonResponse | archive (QString &filepath) |
ApiJsonResponse | getEvaluation () |
ApiJsonResponse | getTemplates () |
ApiJsonResponse | getRecentProjects () |
ApiJsonResponse | removeRecentProject (QString &filename) |
MODELS | |
ApiJsonResponse | getModels (QStringList &domains=QStringList()<< "all") |
ApiJsonResponse | getModelMetaData (QString &modelId) |
ApiJsonResponse | importModel (QString &filepath, QVariantMap &importOptions=QVariantMap()) |
ApiJsonResponse | exportModels (QString &filePath, QList< QString > &modelList, QVariantMap &options) |
ApiJsonResponse | createModel (QString &name, QString &domainCode, QVariantMap &settings=QVariantMap()) |
ApiJsonResponse | deleteModel (QString &modelId) |
MACROS | |
ApiJsonResponse | getMacros () |
ApiJsonResponse | getMacroById (QString &id) |
ApiJsonResponse | createMacro (QVariantMap ¯oAsJson) |
ApiJsonResponse | updateMacro (QString &id, QVariantMap ¯oAsJson) |
ApiJsonResponse | deleteMacro (QString &id) |
ApiJsonResponse | runMacro (QString &id) |
STYLES | |
ApiJsonResponse | getStyles () |
ApiJsonResponse | getStyleData (QString &styleId) |
ApiJsonResponse | createStyle (QVariantMap &styleData) |
ApiJsonResponse | updateStyle (QString &styleId, QVariantMap &styleData) |
ApiJsonResponse | deleteStyles (QStringList &styleIds) |
ApiJsonResponse | setStyle (QStringList &objectIds, QString &styleId) |
ApiJsonResponse | resetStyles (QStringList &objectIds=QStringList(), QVariantMap &filter=QVariantMap()) |
INFOHUB | |
ApiJsonResponse | getInfohubSettings () |
ApiJsonResponse | setInfohubSettings (QVariantMap &settings) |
Events | |
macroFinished (QString ¯oId, bool success) | |
Public Member Functions | |
Constructors/Destructor | |
Interface IApiObject | |
QString & | getApiObjectName () |
|
slot |
Creates a project archive (zip).
filepath |
|
slot |
Create a new, empty project.
settings | {
name: "",
code: "",
description: ""
}
|
|
slot |
Create a new macro.
macroAsJson | {
}
|
|
slot |
Create a model in the specified domain.
name | Name of model |
domainCode | Domain short code, e.g. 'geo' |
settings | ? (to specify) {
...
}
|
|
slot |
...
styleData | {
}
|
|
slot |
...
id |
|
slot |
Delete a model. All objects and properties coming with this model are also deleted. Handle with care!
modelId | ID of the model |
|
slot |
...
styleIds | Style object ID or list of style object IDs. |
|
slot |
Write models to specified file.
filePath | Full file path |
modelList | List of model IDs |
options | ? (to specify) |
QString & getApiObjectName | ( | ) |
|
slot |
...
|
slot |
Get project information.
|
slot |
Get infohub settings such as scope and project shortid,
|
slot |
Get macro.
id |
|
slot |
Get list of available macros in project.
|
slot |
Get the metadata of a model.
modelId | ID of model |
|
slot |
Get list of models, filtered by domains.
domains | Domain short code or combination as array, e.g. 'all' or [ 'geo', 'act' ] |
|
slot |
Get recent project as list.
|
slot |
...
styleId |
|
slot |
...
|
slot |
...
|
slot |
...
filepath | The file path of the model file, e.g "C:/MyModels/Test.ifc" |
importOptions | Import options {
format: "ifc",
transformation: {
dx: 0.0,
dy: 0.0,
dz: 0.0,
}
}
|
|
signal |
Set visible columns from bookmark.
bkmId | |
domainCode |
Create a bookmark in the given tree structure.
domainCode | |
bookmarkAsJson |
Delete the bookmark with the given ID. The bookmarks for each tree structure are searched for the ID.
id |
|
slot |
Open the project from a given file path.
filepath |
|
slot |
Removes a recent project with the given filename from the recent project list
|
slot |
...
objectIds | Object ID or list of object IDs. If empty, all objects will be considered. |
filter | {
???
}
|
|
slot |
Run (evaluates) a macro
id | ID of macro. |
|
slot |
Saves the project under the current file path
|
slot |
Set Project Information.
|
slot |
Set infohub settings such as scope and project shortid
settings | {
'scope' : ' ... ',
'project_shortid' : ' ... '
}
|
|
slot |
...
objectIds | |
styleId |
|
slot |
...
id | |
macroAsJson |
|
slot |