Debian Codegraph @

src/plugins/geometryloaders/fbx/fbxgeometryloader.h

raw symbols SCIP
1 // Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4 #ifndef FBXGEOMETRYLOADER_H
5 #define FBXGEOMETRYLOADER_H
6
7 //
8 // W A R N I N G
9 // -------------
10 //
11 // This file is not part of the Qt API. It exists for the convenience
12 // of other Qt classes. This header file may change from version to
13 // version without notice, or even be removed.
14 //
15 // We mean it.
16 //
17
18 #include <Qt3DRender/private/qgeometryloaderinterface_p.h>
19
20 #include <private/qlocale_tools_p.h>
21
22 #include <fbxsdk.h>
23
24 QT_BEGIN_NAMESPACE
25
26 namespace Qt3DRender {
27
28 #define FBXGEOMETRYLOADER_EXT QLatin1String("fbx")
29
30 class FbxGeometryLoader : public QGeometryLoaderInterface
31 {
32 Q_OBJECT
33 public:
34 FbxGeometryLoader();
35 ~FbxGeometryLoader();
36
37 QGeometry *geometry() const final;
38
39 bool load(QIODevice *ioDev, const QString &subMesh = QString()) final;
40
41 protected:
42 void recurseNodes();
43 void processNode(FbxNode *node);
44 void processMesh(FbxMesh *mesh);
45
46 private:
47 FbxManager *m_manager;
48 FbxScene *m_scene;
49 QGeometry *m_geometry;
50 QString m_mesh;
51 };
52
53 } // namespace Qt3DRender
54
55 QT_END_NAMESPACE
56
57 #endif // FBXGEOMETRYLOADER_H