Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
28
QT_BEGIN_NAMESPACE
29
30
class
QQuick3DNode;
31
32
namespace
QSSGSceneDesc
{
33
struct
Scene;
34
}
35
36
class
Q_QUICK3DASSETIMPORT_EXPORT
QSSGAssetImporter
:
public
QObject
37
{
38
Q_OBJECT
39
public
:
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
58
QT_END_NAMESPACE
59
60
#
endif
// QSSGASSETIMPORTER_H
QSSGAssetImporterFactory
Definition
qssgassetimporterfactory_p.h:28
QSSGAssetImporterPlugin
Definition
qssgassetimporterplugin_p.h:34
QSSGAssetImporter
Definition
qssgassetimporter_p.h:37
QSSGSceneDesc
Definition
qssgassetimporter_p.h:32
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QSSGAssetImporterFactoryInterface_iid
#define QSSGAssetImporterFactoryInterface_iid
Definition
qssgassetimporterplugin_p.h:31
qtquick3d
src
assetimport
qssgassetimporter_p.h
Generated on
for Qt by
1.18.0