diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2019-04-02 16:12:08 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2019-05-07 08:47:05 +0000 |
commit | 988f62c763eef90e4dafe9ecf6bb05629279278e (patch) | |
tree | e5ea6c42f5fba693ca9bd419f71ac69d7e34ca9a /src/Viewer/studio3d/q3dspresentation.h | |
parent | fe0a5a474392de0036019f0083a4401863508a83 (diff) |
Add dynamic object creation to presentation C++ API
A new model element can be dynamically created into the scene.
The slide and properties of the element can be specified at
creation time. A material element is automatically created for
each added model. The material is specified with a custom
"material" property in the list of creation properties.
Task-number: QT3DS-3209
Change-Id: I52b0e929023092110820405473a9399b67a305cd
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Viewer/studio3d/q3dspresentation.h')
-rw-r--r-- | src/Viewer/studio3d/q3dspresentation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Viewer/studio3d/q3dspresentation.h b/src/Viewer/studio3d/q3dspresentation.h index 34809613..97f7b6fc 100644 --- a/src/Viewer/studio3d/q3dspresentation.h +++ b/src/Viewer/studio3d/q3dspresentation.h @@ -83,6 +83,8 @@ public: void keyPressEvent(QKeyEvent *e); void keyReleaseEvent(QKeyEvent *e); + void createElement(const QString &parentElementPath, const QString &slideName, + const QHash<QString, QVariant> &properties); public Q_SLOTS: void setSource(const QUrl &source); void setVariantList(const QStringList &variantList); |