1 | // Copyright (C) 2019 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QSSGASSETIMPORTER_H |
5 | #define QSSGASSETIMPORTER_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtQuick3DAssetImport/private/qtquick3dassetimportglobal_p.h> |
19 | |
20 | #include <QtCore/QVariantMap> |
21 | #include <QtCore/QObject> |
22 | #include <QtCore/QDir> |
23 | #include <QtCore/QFile> |
24 | #include <QtCore/qjsonobject.h> |
25 | |
26 | QT_BEGIN_NAMESPACE |
27 | |
28 | class QQuick3DNode; |
29 | |
30 | namespace QSSGSceneDesc { |
31 | struct Scene; |
32 | } |
33 | |
34 | class Q_QUICK3DASSETIMPORT_EXPORT QSSGAssetImporter : public QObject |
35 | { |
36 | Q_OBJECT |
37 | public: |
38 | virtual QString name() const = 0; |
39 | virtual QStringList inputExtensions() const = 0; |
40 | virtual QString outputExtension() const = 0; |
41 | virtual QString type() const = 0; |
42 | virtual QJsonObject importOptions() const = 0; |
43 | virtual QString typeDescription() const = 0; |
44 | virtual QString import(const QString &sourceFile, |
45 | const QDir &savePath, |
46 | const QJsonObject &options, |
47 | QStringList *generatedFiles = nullptr) = 0; |
48 | virtual QString import(const QUrl &url, |
49 | const QJsonObject &options, |
50 | QSSGSceneDesc::Scene &scene) = 0; |
51 | }; |
52 | |
53 | QT_END_NAMESPACE |
54 | |
55 | #endif // QSSGASSETIMPORTER_H |
56 | |