QGIS API Documentation 4.1.0-Master (01362494303)
Loading...
Searching...
No Matches
qgsgradientbackgroundentity.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsgradientbackgroundentity.h
3 --------------------------------------
4 Date : April 2026
5 Copyright : (C) 2026 by Dominik Cindrić
6 Email : viper dot miniq at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSGRADIENTBACKGROUNDENTITY_H
17#define QGSGRADIENTBACKGROUNDENTITY_H
18
19#include "qgis_3d.h"
20
21#include <QColor>
22#include <Qt3DCore/QEntity>
23
24#define SIP_NO_FILE
25
26namespace Qt3DRender
27{
28 class QEffect;
29 class QFilterKey;
30 class QGeometryRenderer;
31 class QMaterial;
32 class QParameter;
33 class QRenderPass;
34 class QShaderProgram;
35 class QTechnique;
36} // namespace Qt3DRender
37
46class _3D_EXPORT QgsGradientBackgroundEntity : public Qt3DCore::QEntity
47{
48 Q_OBJECT
49 public:
56 QgsGradientBackgroundEntity( const QColor &topColor, const QColor &bottomColor, Qt3DCore::QNode *parent = nullptr );
57
58 private:
59 Qt3DRender::QEffect *mEffect = nullptr;
60 Qt3DRender::QMaterial *mMaterial = nullptr;
61 Qt3DRender::QTechnique *mGl3Technique = nullptr;
62 Qt3DRender::QFilterKey *mFilterKey = nullptr;
63 Qt3DRender::QRenderPass *mGl3RenderPass = nullptr;
64 Qt3DRender::QGeometryRenderer *mMesh = nullptr;
65 Qt3DRender::QShaderProgram *mGlShader = nullptr;
66 Qt3DRender::QParameter *mTopColorParameter = nullptr;
67 Qt3DRender::QParameter *mBottomColorParameter = nullptr;
68};
69
70#endif // QGSGRADIENTBACKGROUNDENTITY_H
QgsGradientBackgroundEntity(const QColor &topColor, const QColor &bottomColor, Qt3DCore::QNode *parent=nullptr)
Constructs a gradient background entity.