21#ifndef QGSRASTERLAYERPROPERTIES_H
22#define QGSRASTERLAYERPROPERTIES_H
25#include "ui_qgsrasterlayerpropertiesbase.h"
96 bool eventFilter( QObject *obj, QEvent *ev )
override;
103 void loadDefaultStyle();
110 void saveDefaultStyle();
146 void updateDataDefinedButtons();
159 void updateProperty();
166 void buttonBuildPyramids_clicked();
171 void addMetadataUrl();
172 void removeSelectedMetadataUrl();
178 void updateGammaSpinBox(
int value );
184 void updateGammaSlider(
double value );
186 void mRenderTypeComboBox_currentIndexChanged(
int index );
188 void restoreWindowModality();
193 void saveMetadataAs();
195 void saveDefaultMetadata();
197 void loadDefaultMetadata();
203 void mResetColorRenderingBtn_clicked();
206 void toggleBuildPyramidsButton();
209 void toggleSaturationControls(
int grayscaleMode );
212 void toggleColorizeControls(
bool colorizeEnabled );
215 void transparencyCellTextEdited(
const QString &text );
217 void aboutToShowStyleMenu();
222 void urlClicked(
const QUrl &url );
225 void updateMapTipPreview();
230 QPushButton *mBtnStyle =
nullptr;
231 QPushButton *mBtnMetadata =
nullptr;
232 QAction *mActionLoadMetadata =
nullptr;
233 QAction *mActionSaveMetadataAs =
nullptr;
235 QStandardItemModel *mMetadataUrlModel =
nullptr;
238 QList<QgsMapLayerConfigWidget *> mLayerPropertiesPages;
241 const QString TRSTRING_NOT_SET;
244 QString mDefaultContrastEnhancementAlgorithm;
247 double mDefaultStandardDeviation;
251 int mDefaultGreenBand;
252 int mDefaultBlueBand;
255 bool mGrayMinimumMaximumEstimated;
258 bool mRGBMinimumMaximumEstimated;
273 bool rasterIsMultiBandColor();
278 void updateInformationContent();
280 void setTransparencyCell(
int row,
int column,
double value );
281 void setTransparencyCellValue(
int row,
int column,
double value );
282 double transparencyCellValue(
int row,
int column );
283 void setTransparencyToEdited(
int row );
284 void adjustTransparencyCellWidth(
int row,
int column );
286 void setRendererWidget(
const QString &rendererName );
291 void updateRasterAttributeTableOptionsPage();
295 QLinearGradient greenGradient();
296 QLinearGradient redGradient();
297 QLinearGradient blueGradient();
298 QLinearGradient grayGradient();
299 QLinearGradient highlightGradient();
300 qreal mGradientHeight;
301 qreal mGradientWidth;
307 QVector<bool> mTransparencyToEdited;
315 bool mDisableRenderTypeComboBoxCurrentIndexChanged =
false;
317 bool mMetadataFilled;
322 QgsResamplingUtils mResamplingUtils;
330 friend class QgsAppScreenShots;
336 void initMapTipPreview();
This class represents a coordinate reference system (CRS).
Abstract interface for generating an expression context.
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Map canvas is a class for displaying all GIS data types on a canvas.
Stores style information (renderer, opacity, labeling, diagrams etc.) applicable to a map layer.
Base class for all map layer types.
A base dialog for options and properties dialogs that offers vertical tabs.
virtual void optionsStackedWidget_CurrentChanged(int index)
Select relevant tab on current page change.
A class to represent a 2D point.
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
Property sheet for a raster map layer.
StyleType
enumeration for the different types of style
Represents a raster layer.
Property
Data definable properties.
Raster renderer pipe that applies colors to a raster.
The QgsWebView class is a collection of stubs to mimic the API of QWebView on systems where the real ...
const QgsCoordinateReferenceSystem & crs