18#ifndef QGSCOLORRAMPSHADERWIDGET_H
19#define QGSCOLORRAMPSHADERWIDGET_H
22#include "ui_qgscolorrampshaderwidgetbase.h"
31#include <QStyledItemDelegate>
34class QgsLocaleAwareNumericLineEditDelegate;
128 bool colormapMinMax(
double &min,
double &max )
const;
131 void setUnitFromLabels();
133 QMenu *contextMenu =
nullptr;
137 void applyColorRamp();
138 void updateColorRamp();
139 void mAddEntryButton_clicked();
140 void mDeleteEntryButton_clicked();
141 void mLoadFromBandButton_clicked();
142 void mLoadFromFileButton_clicked();
143 void mExportToFileButton_clicked();
144 void mUnitLineEdit_textEdited(
const QString &text );
145 void mColormapTreeWidget_itemDoubleClicked( QTreeWidgetItem *item,
int column );
146 void mColormapTreeWidget_itemEdited( QTreeWidgetItem *item,
int column );
147 void mColorInterpolationComboBox_currentIndexChanged(
int index );
148 void mClassificationModeComboBox_currentIndexChanged(
int index );
150 void changeOpacity();
151 void showLegendSettings();
154 void setLineEditValue( QLineEdit *lineEdit,
double value );
155 double lineEditValue(
const QLineEdit *lineEdit )
const;
156 void resetClassifyButton();
158 QString createLabel( QTreeWidgetItem *item,
int row,
const QString unit );
165 double mMin = std::numeric_limits<double>::quiet_NaN();
166 double mMax = std::numeric_limits<double>::quiet_NaN();
169 QPointer<QgsRasterDataProvider> mRasterDataProvider;
172 QgsLocaleAwareNumericLineEditDelegate *mValueDelegate =
nullptr;
175 int mBlockChanges = 0;
ShaderClassificationMethod
Color ramp shader classification methods.
Settings for a color ramp legend node.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
Base class for raster data providers.
A rectangle specified with double values.