QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgsframegraphutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsframegraphutils.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 QGSFRAMEGRAPH_UTILS_H
17#define QGSFRAMEGRAPH_UTILS_H
18
19#include <QWindow>
20#include <Qt3DRender/QCamera>
21#include <Qt3DRender/QCameraSelector>
22#include <Qt3DRender/QClearBuffers>
23#include <Qt3DRender/QCullFace>
24#include <Qt3DRender/QDebugOverlay>
25#include <Qt3DRender/QDepthTest>
26#include <Qt3DRender/QFrustumCulling>
27#include <Qt3DRender/QLayer>
28#include <Qt3DRender/QLayerFilter>
29#include <Qt3DRender/QParameter>
30#include <Qt3DRender/QPolygonOffset>
31#include <Qt3DRender/QRenderCapture>
32#include <Qt3DRender/QRenderStateSet>
33#include <Qt3DRender/QRenderSurfaceSelector>
34#include <Qt3DRender/QRenderTarget>
35#include <Qt3DRender/QRenderTargetSelector>
36#include <Qt3DRender/QTexture>
37#include <Qt3DRender/QViewport>
38
39#define SIP_NO_FILE
40
47{
48 public:
50 {
51 quint64 lowestId = 0;
52 };
53
55 static QStringList dumpSceneGraph( const Qt3DCore::QNode *node, FgDumpContext context );
56
58 static QStringList dumpFrameGraph( const Qt3DCore::QNode *node, FgDumpContext context );
59
60 private:
61 static QString formatIdName( FgDumpContext context, quint64 id, const QString &name );
62
63 static QString formatIdName( FgDumpContext context, const Qt3DRender::QAbstractTexture *texture );
64
65 static QString formatNode( FgDumpContext context, const Qt3DCore::QNode *n );
66
67 static QString formatList( const QStringList &lst );
68
69 static QString formatLongList( const QStringList &lst, int level );
70
71 static QString formatField( const QString &name, const QString &value );
72
73 static QString dumpSGEntity( FgDumpContext context, const Qt3DCore::QEntity *n, int level );
74
75 static QStringList dumpSG( FgDumpContext context, const Qt3DCore::QNode *n, int level = 0 );
76
77 static QString dumpFGNode( FgDumpContext context, const Qt3DRender::QFrameGraphNode *n );
78
79 static QStringList dumpFG( FgDumpContext context, const Qt3DCore::QNode *n, int level = 0 );
80};
81
82#endif // QGSFRAMEGRAPH_UTILS_H
Util class to dump Qt3D framegraph or scenegraph.
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...