|
QGIS API Documentation 3.99.0-Master (f78f5286a64)
|
Rectangular quad entity used for debugging depth maps. 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. | |
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 |
| void QgsPreviewQuad::setViewPort | ( | const QPointF & | centerNDC, |
| const QSizeF & | size | ||
| ) |
Sets where the quad will be located on the scene.