QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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) | |
void | setViewPort (const QPointF ¢erNDC, const QSizeF &size) |
Sets where the quad will be located on the scene. | |
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 42 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 82 of file qgspreviewquad.cpp.