18#ifndef QGSCOLORRAMPTEXTURE_H
19#define QGSCOLORRAMPTEXTURE_H
23#include <Qt3DRender/QEffect>
24#include <Qt3DRender/QGraphicsApiFilter>
25#include <Qt3DRender/QParameter>
26#include <Qt3DRender/QTexture>
38class QgsColorRampTextureGenerator :
public Qt3DRender::QTextureImageDataGenerator
41 QgsColorRampTextureGenerator(
const QgsColorRampShader &colorRampShader,
double verticalScale = 1 );
44 Qt3DRender::QTextureImageDataPtr operator()()
override;
46 bool operator==(
const Qt3DRender::QTextureImageDataGenerator &other )
const override;
50 QT3D_FUNCTOR( QgsColorRampTextureGenerator )
55 double mVerticalScale = 1;
59class QgsColorRampTexture :
public Qt3DRender::QAbstractTextureImage
64 QgsColorRampTexture(
const QgsColorRampShader &colorRampShader,
double verticalScale = 1, Qt3DCore::QNode *parent =
nullptr );
67 Qt3DRender::QTextureImageDataGeneratorPtr dataGenerator()
const override;
71 double mVerticalScale = 1;
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
#define Q_NOWARN_DEPRECATED_POP
#define Q_NOWARN_DEPRECATED_PUSH
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)