QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsPreviewQuad Class Reference

3 More...

#include <qgspreviewquad.h>

Inheritance diagram for QgsPreviewQuad:
Inheritance graph
[legend]

Public Member Functions

 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)
 
void setViewPort (const QPointF &centerNDC, const QSizeF &size)
 Sets where the quad will be located on the scene.
 

Detailed Description

3

Rectangular quad entity used for debugging depth maps

Note
Not available in Python bindings
Since
QGIS 3.16

Definition at line 58 of file qgspreviewquad.h.

Constructor & Destructor Documentation

◆ QgsPreviewQuad()

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)

Parameters
textureThe texture to be rendered
centerNDCThe 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)
sizeThe size of the displayed rectangle
additionalShaderParametersMore parameters to pass to the shader
parentThe parent of the quad

Definition at line 42 of file qgspreviewquad.cpp.

Member Function Documentation

◆ setViewPort()

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.


The documentation for this class was generated from the following files: