QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgsfgutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsfgutils.h
3 --------------------------------------
4 Date : August 2024
5 Copyright : (C) 2024 by Mike Krus / Benoit De Mezzo
6 Email : mike dot krus at kdab dot com / benoit dot de dot mezzo at oslandia dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSFG_UTILS_H
17#define QGSFG_UTILS_H
18
19#include <QWindow>
20#include <Qt3DRender/QCamera>
21#include <Qt3DRender/QRenderSurfaceSelector>
22#include <Qt3DRender/QViewport>
23#include <Qt3DRender/QCameraSelector>
24#include <Qt3DRender/QLayerFilter>
25#include <Qt3DRender/QLayer>
26#include <Qt3DRender/QRenderTargetSelector>
27#include <Qt3DRender/QRenderTarget>
28#include <Qt3DRender/QTexture>
29#include <Qt3DRender/QClearBuffers>
30#include <Qt3DRender/QParameter>
31#include <Qt3DRender/QFrustumCulling>
32#include <Qt3DRender/QRenderStateSet>
33#include <Qt3DRender/QDepthTest>
34#include <Qt3DRender/QCullFace>
35#include <Qt3DRender/QPolygonOffset>
36#include <Qt3DRender/QRenderCapture>
37#include <Qt3DRender/QDebugOverlay>
38
39
40#define SIP_NO_FILE
41
48{
49 public:
50
52 {
53 quint64 lowestId = 0;
54 };
55
57 static QStringList dumpSceneGraph( const Qt3DCore::QNode *node, FgDumpContext context );
58
60 static QStringList dumpFrameGraph( const Qt3DCore::QNode *node, FgDumpContext context );
61
62 private:
63 static QString formatIdName( FgDumpContext context, quint64 id, const QString &name );
64
65 static QString formatIdName( FgDumpContext context, const Qt3DRender::QAbstractTexture *texture );
66
67 static QString formatNode( FgDumpContext context, const Qt3DCore::QNode *n );
68
69 static QString formatList( const QStringList &lst );
70
71 static QString formatLongList( const QStringList &lst, int level );
72
73 static QString formatField( const QString &name, const QString &value );
74
75 static QString dumpSGEntity( FgDumpContext context, const Qt3DCore::QEntity *n, int level );
76
77 static QStringList dumpSG( FgDumpContext context, const Qt3DCore::QNode *n, int level = 0 );
78
79 static QString dumpFGNode( FgDumpContext context, const Qt3DRender::QFrameGraphNode *n );
80
81 static QStringList dumpFG( FgDumpContext context, const Qt3DCore::QNode *n, int level = 0 );
82};
83
84#endif // QGSFG_UTILS_H
static QStringList dumpFrameGraph(const Qt3DCore::QNode *node, FgDumpContext context)
Returns a tree view of the frame graph starting from node. The object ids will be given relatively to...
static QStringList dumpSceneGraph(const Qt3DCore::QNode *node, FgDumpContext context)
Returns a tree view of the scene graph starting from node. The object ids will be given relatively to...