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/Runtime/Source/engine/Qt3DSRuntimeView.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/Runtime/Source/engine/Qt3DSRuntimeView.h')
-rw-r--r-- | src/Runtime/Source/engine/Qt3DSRuntimeView.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Runtime/Source/engine/Qt3DSRuntimeView.h b/src/Runtime/Source/engine/Qt3DSRuntimeView.h index 7b9a5945..3626fd52 100644 --- a/src/Runtime/Source/engine/Qt3DSRuntimeView.h +++ b/src/Runtime/Source/engine/Qt3DSRuntimeView.h @@ -46,10 +46,6 @@ #include <QtCore/qobject.h> #include <QtGui/qsurfaceformat.h> -//============================================================================== -// Namespace -//============================================================================== - typedef void (*qml_Function)(void *inUserData); class QRuntimeViewSignalProxy : public QObject @@ -73,9 +69,6 @@ class NVRenderContext; namespace Q3DStudio { -//============================================================================== -// Forwards -//============================================================================== class CTegraInputEngine; class CTegraRenderEngine; class IScene; @@ -196,6 +189,8 @@ public: virtual QList<QString> dataInputs() const = 0; virtual float dataInputMax(const QString &name) const = 0; virtual float dataInputMin(const QString &name) const = 0; + virtual void createElement(const QString &parentElementPath, const QString &slideName, + const QHash<QString, QVariant> &properties) = 0; virtual void SetAttribute(const char *elementPath, const char *attributeName, const char *value) = 0; virtual bool GetAttribute(const char *elementPath, const char *attributeName, void *value) = 0; |