18 #ifndef QGSCOLORRAMPSHADERWIDGET_H 
   19 #define QGSCOLORRAMPSHADERWIDGET_H 
   21 #include <QStyledItemDelegate> 
   26 #include "ui_qgscolorrampshaderwidgetbase.h" 
   32 class QgsLocaleAwareNumericLineEditDelegate;
 
   56     void initializeForUseWithRasterLayer();
 
   62     void setRasterBand( 
int band );
 
   68     void setMinimumMaximumAndClassify( 
double minimum, 
double maximum );
 
   71     void setMinimumMaximum( 
double minimum, 
double maximum );
 
   74     double minimum() 
const;
 
   77     double maximum() 
const;
 
  103     void loadMinimumMaximumFromTree();
 
  108     void populateColormapTreeWidget( 
const QList<QgsColorRampShader::ColorRampItem> &colorRampItems );
 
  127     bool colormapMinMax( 
double &min, 
double &max ) 
const;
 
  130     void setUnitFromLabels();
 
  132     QMenu *contextMenu = 
nullptr;
 
  136     void applyColorRamp();
 
  137     void updateColorRamp();
 
  138     void mAddEntryButton_clicked();
 
  139     void mDeleteEntryButton_clicked();
 
  140     void mLoadFromBandButton_clicked();
 
  141     void mLoadFromFileButton_clicked();
 
  142     void mExportToFileButton_clicked();
 
  143     void mUnitLineEdit_textEdited( 
const QString &text ) { Q_UNUSED( text ) autoLabel(); }
 
  144     void mColormapTreeWidget_itemDoubleClicked( QTreeWidgetItem *item, 
int column );
 
  145     void mColormapTreeWidget_itemEdited( QTreeWidgetItem *item, 
int column );
 
  146     void mColorInterpolationComboBox_currentIndexChanged( 
int index );
 
  147     void mClassificationModeComboBox_currentIndexChanged( 
int index );
 
  149     void changeOpacity();
 
  150     void showLegendSettings();
 
  153     void setLineEditValue( QLineEdit *lineEdit, 
double value );
 
  154     double lineEditValue( 
const QLineEdit *lineEdit ) 
const;
 
  155     void resetClassifyButton();
 
  157     QString createLabel( QTreeWidgetItem *item, 
int row, 
const QString unit );
 
  164     double mMin = std::numeric_limits<double>::quiet_NaN();
 
  165     double mMax = std::numeric_limits<double>::quiet_NaN();
 
  171     QgsLocaleAwareNumericLineEditDelegate *mValueDelegate = 
nullptr;
 
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.
ClassificationMode
Classification modes used to create the color ramp shader.
Base class for raster data providers.
A rectangle specified with double values.