Quantum GIS API Documentation  1.7.4
Public Member Functions | Protected Attributes
QgsContrastEnhancementFunction Class Reference

A contrast enhancement funcion is the base class for all raster contrast enhancements. More...

#include <qgscontrastenhancementfunction.h>

Inheritance diagram for QgsContrastEnhancementFunction:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 QgsContrastEnhancementFunction (QgsContrastEnhancement::QgsRasterDataType, double, double)
virtual ~QgsContrastEnhancementFunction ()
virtual int enhance (double)
 A customizable method that takes in a double and returns a int between 0 and 255.
virtual bool isValueInDisplayableRange (double)
 A customicable method to indicate if the pixels is displayable.
void setMaximumValue (double)
 Mustator for the maximum value.
void setMinimumValue (double)
 Mutator for the minimum value.

Protected Attributes

double mMaximumValue
 User defineable maximum value for the band, used for enhanceContrasting.
double mMinimumValue
 User defineable minimum value for the band, used for enhanceContrasting.
double mMinimumMaximumRange
 Minimum maximum range for the band, used for enhanceContrasting.
QgsContrastEnhancement::QgsRasterDataType mQgsRasterDataType
 Data type of the band.

Detailed Description

A contrast enhancement funcion is the base class for all raster contrast enhancements.

The purpose of a contrast enhancement is to enhanceContrast or clip a pixel value into a specified bounding range.

Definition at line 30 of file qgscontrastenhancementfunction.h.


Constructor & Destructor Documentation

QgsContrastEnhancementFunction::QgsContrastEnhancementFunction ( QgsContrastEnhancement::QgsRasterDataType  theDataType,
double  theMinimumValue,
double  theMaximumValue 
)

Definition at line 35 of file qgscontrastenhancementfunction.h.


Member Function Documentation

int QgsContrastEnhancementFunction::enhance ( double  theValue) [virtual]
bool QgsContrastEnhancementFunction::isValueInDisplayableRange ( double  theValue) [virtual]

Member Data Documentation

Minimum maximum range for the band, used for enhanceContrasting.

Definition at line 57 of file qgscontrastenhancementfunction.h.

Referenced by QgsLinearMinMaxEnhancement::enhance(), QgsLinearMinMaxEnhancementWithClip::enhance(), QgsContrastEnhancementFunction(), setMaximumValue(), and setMinimumValue().

User defineable minimum value for the band, used for enhanceContrasting.

Definition at line 54 of file qgscontrastenhancementfunction.h.

Referenced by QgsLinearMinMaxEnhancement::enhance(), QgsLinearMinMaxEnhancementWithClip::enhance(), QgsContrastEnhancementFunction(), setMaximumValue(), and setMinimumValue().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines