QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
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 54 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 28 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 70 of file qgspreviewquad.cpp.