Skip to content

Commit a54ee34

Browse files
author
ersts
committed
-Major API changes applied to be consistent with the core
-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
1 parent 89adee6 commit a54ee34

13 files changed

+5180
-5291
lines changed

python/core/qgscontrastenhancement.sip

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ class QgsContrastEnhancement
88
public:
99

1010
/** \brief This enumerator describes the types of contrast enhancement algorithms that can be used. */
11-
enum CONTRAST_ENHANCEMENT_ALGORITHM
11+
enum ContrastEnhancementAlgorithm
1212
{
13-
NO_STRETCH, //this should be the default color scaling algorithm
14-
STRETCH_TO_MINMAX, //linear histogram enhanceContrast
15-
STRETCH_AND_CLIP_TO_MINMAX,
16-
CLIP_TO_MINMAX,
17-
USER_DEFINED
13+
NoEnhancement, //this should be the default color scaling algorithm
14+
StretchToMinimumMaximum, //linear histogram enhanceContrast
15+
StretchAndClipToMinimumMaximum,
16+
ClipToMinimumMaximum,
17+
UserDefined
1818
};
1919

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

61-
CONTRAST_ENHANCEMENT_ALGORITHM getContrastEnhancementAlgorithm();
61+
ContrastEnhancementAlgorithm contrastEnhancementAlgorithm();
6262

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

0 commit comments

Comments
 (0)