QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
3 More...
#include <qgspreviewquad.h>
Public Member Functions | |
QgsPreviewQuad (Qt3DRender::QAbstractTexture *texture, const QPointF ¢erNDC, const QSizeF &size, QVector< Qt3DRender::QParameter * > additionalShaderParameters=QVector< Qt3DRender::QParameter * >(), Qt3DCore::QEntity *parent=nullptr) | |
Construct an object that displays a texture for debugging purposes (example: depth buffer) More... | |
void | setViewPort (const QPointF ¢erNDC, const QSizeF &size) |
Sets where the quad will be located on the scene. More... | |
3
Rectangular quad entity used for debugging depth maps
Definition at line 58 of file qgspreviewquad.h.
QgsPreviewQuad::QgsPreviewQuad | ( | Qt3DRender::QAbstractTexture * | texture, |
const QPointF & | centerNDC, | ||
const QSizeF & | size, | ||
QVector< Qt3DRender::QParameter * > | additionalShaderParameters = QVector<Qt3DRender::QParameter *>() , |
||
Qt3DCore::QEntity * | parent = nullptr |
||
) |
Construct an object that displays a texture for debugging purposes (example: depth buffer)
texture | The texture to be rendered |
centerNDC | The center of the texture in opnegl normalized device coordinates ie. Bottom left of the viewport is (-1, -1), the top right of the viewport is (1, 1) |
size | The size of the displayed rectangle |
additionalShaderParameters | More parameters to pass to the shader |
parent | The parent of the quad |
Definition at line 41 of file qgspreviewquad.cpp.
void QgsPreviewQuad::setViewPort | ( | const QPointF & | centerNDC, |
const QSizeF & | size | ||
) |
Sets where the quad will be located on the scene.
Definition at line 81 of file qgspreviewquad.cpp.