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