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 // Decides which importer owns an input extension that several importers
44 // claim: the highest priority wins, and 0 is the default.
45 virtual int priority() const { return 0; }
46 virtual QString type() const = 0;
47 virtual QJsonObject importOptions() const = 0;
48 virtual QString typeDescription() const = 0;
49 virtual QString import(const QString &sourceFile,
50 const QDir &savePath,
51 const QJsonObject &options,
52 QStringList *generatedFiles = nullptr) = 0;
53 virtual QString import(const QUrl &url,
54 const QJsonObject &options,
55 QSSGSceneDesc::Scene &scene) = 0;
56};
57
58QT_END_NAMESPACE
59
60#endif // QSSGASSETIMPORTER_H
Combined button and popup list for selecting options.
#define QSSGAssetImporterFactoryInterface_iid