QGIS API Documentation 3.43.0-Master (56aa1fd18d7)
qgsdebugtextureentity.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsdebugtextureentity.h
3 --------------------------------------
4 Date : June 2024
5 Copyright : (C) 2024 by Benoit De Mezzo
6 Email : 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 QGSDEBUGTEXTUREENTITY_H
17#define QGSDEBUGTEXTUREENTITY_H
18
19#include "qgsrenderpassquad.h"
20
21class QgsFrameGraph;
22namespace Qt3DRender
23{
24 class QTexture2D;
25}
26
27#define SIP_NO_FILE
28
38{
39 Q_OBJECT
40
41 public:
43 QgsDebugTextureEntity( Qt3DRender::QTexture2D *texture, Qt3DRender::QLayer *layer, QNode *parent = nullptr );
44
46 void setPosition( Qt::Corner corner, double size );
47
48 private:
50 void setViewport( const QPointF &centerTexCoords, const QSizeF &sizeTexCoords );
51
52 protected:
53 Qt3DRender::QParameter *mTextureParameter = nullptr;
54 Qt3DRender::QParameter *mCenterTextureCoords = nullptr;
55 Qt3DRender::QParameter *mSizeTextureCoords = nullptr;
56};
57
58#endif // QGSDEBUGTEXTUREENTITY_H
An entity that is responsible for debugging texture.
Qt3DRender::QParameter * mSizeTextureCoords
void setPosition(Qt::Corner corner, double size)
Sets the texture debugging parameters.
Qt3DRender::QParameter * mCenterTextureCoords
Qt3DRender::QParameter * mTextureParameter
Container class that holds different objects related to frame graphs of 3D scenes.
An entity that is responsible for rendering a screen quad for a specific rendering pass.