18 #ifndef QGSCOLORRAMPTEXTURE_H
19 #define QGSCOLORRAMPTEXTURE_H
23 #include <Qt3DRender/QEffect>
24 #include <Qt3DRender/QGraphicsApiFilter>
25 #include <Qt3DRender/QParameter>
26 #include <Qt3DRender/QTexture>
32 #include <Qt3DRender/QBuffer>
41 class QgsColorRampTextureGenerator:
public Qt3DRender::QTextureImageDataGenerator
45 QgsColorRampTextureGenerator(
const QgsColorRampShader &colorRampShader,
double verticalScale = 1 );
48 Qt3DRender::QTextureImageDataPtr operator()()
override;
50 bool operator ==(
const Qt3DRender::QTextureImageDataGenerator &other )
const override;
54 QT3D_FUNCTOR( QgsColorRampTextureGenerator )
59 double mVerticalScale = 1;
63 class QgsColorRampTexture:
public Qt3DRender::QAbstractTextureImage
68 QgsColorRampTexture(
const QgsColorRampShader &colorRampShader,
double verticalScale = 1, Qt3DCore::QNode *parent =
nullptr );
71 Qt3DRender::QTextureImageDataGeneratorPtr dataGenerator()
const override;
75 double mVerticalScale = 1;
80 #endif // QGSCOLORRAMPTEXTURE_H