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
assimpimporter.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 ASSIMPIMPORTER_H
7#define ASSIMPIMPORTER_H
8
9#include <QtQuick3DAssetImport/private/qssgassetimporter_p.h>
10#include <QtQuick3DAssetUtils/private/qssgqmlutilities_p.h>
11
12#include <QtCore/QJsonObject>
13#include <QtCore/QUrl>
14#include <QtCore/QStringList>
15
16enum class QSSGRenderComponentType;
17
18QT_BEGIN_NAMESPACE
19
20class AssimpImporter : public QSSGAssetImporter
21{
22public:
23 AssimpImporter();
24 ~AssimpImporter() override;
25
26 QString name() const override;
27 QStringList inputExtensions() const override;
28 QString outputExtension() const override;
29 QString type() const override;
30 QString typeDescription() const override;
31 QJsonObject importOptions() const override;
32 QString import(const QString &sourceFile, const QDir &savePath, const QJsonObject &options,
33 QStringList *generatedFiles) override;
34 QString import(const QUrl &sourceFile, const QJsonObject &options, QSSGSceneDesc::Scene &scene) override;
35
36private:
37 QJsonObject m_options;
38};
39
40QT_END_NAMESPACE
41
42#endif // ASSIMPIMPORTER_H
Combined button and popup list for selecting options.