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;
52 QT3D_FUNCTOR( QgsColorRampTextureGenerator )
56 double mVerticalScale = 1;
60 class QgsColorRampTexture:
public Qt3DRender::QAbstractTextureImage
63 QgsColorRampTexture(
const QgsColorRampShader &colorRampShader,
double verticalScale = 1, Qt3DCore::QNode *parent =
nullptr );
66 Qt3DRender::QTextureImageDataGeneratorPtr dataGenerator()
const override;
70 double mVerticalScale = 1;
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)