QGIS API Documentation 3.41.0-Master (af5edcb665c)
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:
51 {
52 quint64 lowestId = 0;
53 };
54
56 static QStringList dumpSceneGraph( const Qt3DCore::QNode *node, FgDumpContext context );
57
59 static QStringList dumpFrameGraph( const Qt3DCore::QNode *node, FgDumpContext context );
60
61 private:
62 static QString formatIdName( FgDumpContext context, quint64 id, const QString &name );
63
64 static QString formatIdName( FgDumpContext context, const Qt3DRender::QAbstractTexture *texture );
65
66 static QString formatNode( FgDumpContext context, const Qt3DCore::QNode *n );
67
68 static QString formatList( const QStringList &lst );
69
70 static QString formatLongList( const QStringList &lst, int level );
71
72 static QString formatField( const QString &name, const QString &value );
73
74 static QString dumpSGEntity( FgDumpContext context, const Qt3DCore::QEntity *n, int level );
75
76 static QStringList dumpSG( FgDumpContext context, const Qt3DCore::QNode *n, int level = 0 );
77
78 static QString dumpFGNode( FgDumpContext context, const Qt3DRender::QFrameGraphNode *n );
79
80 static QStringList dumpFG( FgDumpContext context, const Qt3DCore::QNode *n, int level = 0 );
81};
82
83#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...