18 #ifndef QGSCOLORRAMPSHADERWIDGET_H 19 #define QGSCOLORRAMPSHADERWIDGET_H 25 #include "ui_qgscolorrampshaderwidgetbase.h" 53 void initializeForUseWithRasterLayer();
59 void setRasterBand(
int band );
65 void setMinimumMaximumAndClassify(
double minimum,
double maximum );
68 void setMinimumMaximum(
double minimum,
double maximum );
71 double minimum()
const;
74 double maximum()
const;
84 void minimumMaximumChangedFromTree(
double minimum,
double maximum );
100 void loadMinimumMaximumFromTree();
104 void populateColormapTreeWidget(
const QList<QgsColorRampShader::ColorRampItem> &colorRampItems );
123 void setUnitFromLabels();
125 QMenu *contextMenu =
nullptr;
129 void applyColorRamp();
130 void mAddEntryButton_clicked();
131 void mDeleteEntryButton_clicked();
132 void mLoadFromBandButton_clicked();
133 void mLoadFromFileButton_clicked();
134 void mExportToFileButton_clicked();
135 void mUnitLineEdit_textEdited(
const QString &text ) { Q_UNUSED( text ); autoLabel(); }
136 void mColormapTreeWidget_itemDoubleClicked( QTreeWidgetItem *item,
int column );
137 void mColormapTreeWidget_itemEdited( QTreeWidgetItem *item,
int column );
138 void mColorInterpolationComboBox_currentIndexChanged(
int index );
139 void mClassificationModeComboBox_currentIndexChanged(
int index );
141 void changeOpacity();
144 void setLineEditValue( QLineEdit *lineEdit,
double value );
145 double lineEditValue(
const QLineEdit *lineEdit )
const;
146 void resetClassifyButton();
150 double mMin = std::numeric_limits<double>::quiet_NaN();
151 double mMax = std::numeric_limits<double>::quiet_NaN();
160 #endif // QGSCOLORRAMPSHADERWIDGET_H A rectangle specified with double values.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
ClassificationMode
Classification modes used to create the color ramp shader.
A delegate for showing a color swatch in a list.
Base class for raster data providers.