QGIS API Documentation
3.0.2-Girona (307d082)
|
A raster contrast enhancement that will clip a value to the specified min/max range. More...
#include <qgscliptominmaxenhancement.h>
Public Member Functions | |
QgsClipToMinMaxEnhancement (Qgis::DataType, double, double) | |
int | enhance (double) override |
A customizable method that takes in a double and returns a int between 0 and 255. More... | |
bool | isValueInDisplayableRange (double) override |
A customicable method to indicate if the pixels is displayable. More... | |
Public Member Functions inherited from QgsContrastEnhancementFunction | |
QgsContrastEnhancementFunction (Qgis::DataType, double, double) | |
QgsContrastEnhancementFunction (const QgsContrastEnhancementFunction &f) | |
virtual | ~QgsContrastEnhancementFunction ()=default |
void | setMaximumValue (double) |
Mustator for the maximum value. More... | |
void | setMinimumValue (double) |
Mutator for the minimum value. More... | |
Additional Inherited Members | |
Protected Attributes inherited from QgsContrastEnhancementFunction | |
double | mMaximumValue |
User defineable maximum value for the band, used for enhanceContrasting. More... | |
double | mMinimumMaximumRange |
Minimum maximum range for the band, used for enhanceContrasting. More... | |
double | mMinimumValue |
User defineable minimum value for the band, used for enhanceContrasting. More... | |
Qgis::DataType | mQgsRasterDataType |
Data type of the band. More... | |
A raster contrast enhancement that will clip a value to the specified min/max range.
For example if a min max range of [10,240] is specified in the constructor, and a value of 250 is called using enhance(), the value will be truncated ('clipped') to 240.
Definition at line 32 of file qgscliptominmaxenhancement.h.
QgsClipToMinMaxEnhancement::QgsClipToMinMaxEnhancement | ( | Qgis::DataType | qgsRasterDataType, |
double | minimumValue, | ||
double | maximumValue | ||
) |
Definition at line 22 of file qgscliptominmaxenhancement.cpp.
|
overridevirtual |
A customizable method that takes in a double and returns a int between 0 and 255.
Reimplemented from QgsContrastEnhancementFunction.
Definition at line 26 of file qgscliptominmaxenhancement.cpp.
|
overridevirtual |
A customicable method to indicate if the pixels is displayable.
Reimplemented from QgsContrastEnhancementFunction.
Definition at line 43 of file qgscliptominmaxenhancement.cpp.