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