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
42 QgsColorRampTextureGenerator(
const QgsColorRampShader &colorRampShader,
double verticalScale = 1 );
45 Qt3DRender::QTextureImageDataPtr operator()()
override;
47 bool operator ==(
const Qt3DRender::QTextureImageDataGenerator &other )
const override;
51 QT3D_FUNCTOR( QgsColorRampTextureGenerator )
56 double mVerticalScale = 1;
60class QgsColorRampTexture:
public Qt3DRender::QAbstractTextureImage
65 QgsColorRampTexture(
const QgsColorRampShader &colorRampShader,
double verticalScale = 1, Qt3DCore::QNode *parent =
nullptr );
68 Qt3DRender::QTextureImageDataGeneratorPtr dataGenerator()
const override;
72 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)