16 #ifndef QGSPREVIEWQUAD_H
17 #define QGSPREVIEWQUAD_H
19 #include <Qt3DCore/QEntity>
20 #include <Qt3DRender/QMaterial>
21 #include <Qt3DRender/QParameter>
22 #include <Qt3DRender/QEffect>
37 QgsPreviewQuadMaterial( Qt3DRender::QAbstractTexture *texture, QVector<Qt3DRender::QParameter *> additionalShaderParameters = QVector<Qt3DRender::QParameter *>(), QNode *parent =
nullptr );
40 void setViewPort( QVector2D centerTexCoords, QVector2D sizeTexCoords );
42 Qt3DRender::QEffect *mEffect =
nullptr;
43 Qt3DRender::QParameter *mTextureParameter =
nullptr;
44 Qt3DRender::QParameter *mCenterTextureCoords =
nullptr;
45 Qt3DRender::QParameter *mSizeTextureCoords =
nullptr;
69 QgsPreviewQuad( Qt3DRender::QAbstractTexture *texture,
const QPointF ¢erNDC,
const QSizeF &size, QVector<Qt3DRender::QParameter *> additionalShaderParameters = QVector<Qt3DRender::QParameter *>(), Qt3DCore::QEntity *parent =
nullptr );
72 void setViewPort(
const QPointF ¢erNDC,
const QSizeF &size );
void setViewPort(QVector2D centerTexCoords, QVector2D sizeTexCoords)
Sets the view port of the quad.
QgsPreviewQuadMaterial(Qt3DRender::QAbstractTexture *texture, QVector< Qt3DRender::QParameter * > additionalShaderParameters=QVector< Qt3DRender::QParameter * >(), QNode *parent=nullptr)
Constructor.
void setViewPort(const QPointF ¢erNDC, const QSizeF &size)
Sets where the quad will be located on the scene.
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)