Skip to content

Commit

Permalink
-Major API changes applied to be consistent with the core
Browse files Browse the repository at this point in the history
-Should only be minor updates if any to the raster classes from here on out

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9564 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts committed Nov 5, 2008
1 parent 89adee6 commit a54ee34
Show file tree
Hide file tree
Showing 13 changed files with 5,180 additions and 5,291 deletions.
16 changes: 8 additions & 8 deletions python/core/qgscontrastenhancement.sip
Expand Up @@ -8,13 +8,13 @@ class QgsContrastEnhancement
public:

/** \brief This enumerator describes the types of contrast enhancement algorithms that can be used. */
enum CONTRAST_ENHANCEMENT_ALGORITHM
enum ContrastEnhancementAlgorithm
{
NO_STRETCH, //this should be the default color scaling algorithm
STRETCH_TO_MINMAX, //linear histogram enhanceContrast
STRETCH_AND_CLIP_TO_MINMAX,
CLIP_TO_MINMAX,
USER_DEFINED
NoEnhancement, //this should be the default color scaling algorithm
StretchToMinimumMaximum, //linear histogram enhanceContrast
StretchAndClipToMinimumMaximum,
ClipToMinimumMaximum,
UserDefined
};

/*! These are exactly the same as GDAL pixel data types */
Expand Down Expand Up @@ -58,7 +58,7 @@ public:
/** \brief Return the minimum value for the contrast enhancement range. */
double minimumValue();

CONTRAST_ENHANCEMENT_ALGORITHM getContrastEnhancementAlgorithm();
ContrastEnhancementAlgorithm contrastEnhancementAlgorithm();

/*
*
Expand All @@ -68,7 +68,7 @@ public:
/** \brief Return true if pixel is in stretable range, false if pixel is outside of range (i.e., clipped) */
bool isValueInDisplayableRange(double);
/** \brief Set the contrast enhancement algorithm */
void setContrastEnhancementAlgorithm(CONTRAST_ENHANCEMENT_ALGORITHM, bool generateTable=true);
void setContrastEnhancementAlgorithm(ContrastEnhancementAlgorithm, bool generateTable=true);
/** \brief A public method that allows the user to set their own custom contrast enhancment function */
void setContrastEnhancementFunction(QgsContrastEnhancementFunction*);
/** \brief Set the maximum value for the contrast enhancement range. */
Expand Down

0 comments on commit a54ee34

Please sign in to comment.