Skip to content

Commit 14cbce3

Browse files
author
gsherman
committed
Fix for wacked sip files
git-svn-id: http://svn.osgeo.org/qgis/trunk@7928 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 89b8386 commit 14cbce3

5 files changed

+0
-540
lines changed

python/core/qgscontrastenhancement.sip

-161
Original file line numberDiff line numberDiff line change
@@ -80,164 +80,3 @@ public:
8080

8181
};
8282

83-
class QgsContrastEnhancement
84-
{
85-
%TypeHeaderCode
86-
#include <qgscontrastenhancement.h>
87-
%End
88-
89-
public:
90-
91-
/** \brief This enumerator describes the types of contrast enhancement algorithms that can be used. */
92-
enum CONTRAST_ENHANCEMENT_ALGORITHM
93-
{
94-
NO_STRETCH, //this should be the default color scaling algorithm
95-
STRETCH_TO_MINMAX, //linear histogram stretch
96-
STRETCH_AND_CLIP_TO_MINMAX,
97-
CLIP_TO_MINMAX,
98-
USER_DEFINED
99-
};
100-
101-
/*! These are exactly the same as GDAL pixel data types */
102-
enum QgsRasterDataType {
103-
QGS_Unknown = 0,
104-
/*! Eight bit unsigned integer */ QGS_Byte = 1,
105-
/*! Sixteen bit unsigned integer */ QGS_UInt16 = 2,
106-
/*! Sixteen bit signed integer */ QGS_Int16 = 3,
107-
/*! Thirty two bit unsigned integer */ QGS_UInt32 = 4,
108-
/*! Thirty two bit signed integer */ QGS_Int32 = 5,
109-
/*! Thirty two bit floating point */ QGS_Float32 = 6,
110-
/*! Sixty four bit floating point */ QGS_Float64 = 7,
111-
/*! Complex Int16 */ QGS_CInt16 = 8,
112-
/*! Complex Int32 */ QGS_CInt32 = 9,
113-
/*! Complex Float32 */ QGS_CFloat32 = 10,
114-
/*! Complex Float64 */ QGS_CFloat64 = 11,
115-
QGS_TypeCount = 12 /* maximum type # + 1 */
116-
};
117-
118-
QgsContrastEnhancement(QgsContrastEnhancement::QgsRasterDataType theDatatype=QGS_Byte);
119-
~QgsContrastEnhancement();
120-
121-
/*
122-
*
123-
* Static methods
124-
*
125-
*/
126-
/** \brief Helper function that returns the maximum possible value for a GDAL data type */
127-
static double getMaximumPossibleValue(QgsRasterDataType);
128-
/** \brief Helper function that returns the minimum possible value for a GDAL data type */
129-
static double getMinimumPossibleValue(QgsRasterDataType);
130-
131-
/*
132-
*
133-
* Non-Static Inline methods
134-
*
135-
*/
136-
/** \brief Return the maximum value for the contrast enhancement range. */
137-
double getMaximumValue();
138-
139-
/** \brief Return the minimum value for the contrast enhancement range. */
140-
double getMinimumValue();
141-
142-
CONTRAST_ENHANCEMENT_ALGORITHM getContrastEnhancementAlgorithm();
143-
144-
/*
145-
*
146-
* Non-Static methods
147-
*
148-
*/
149-
/** \brief Return true if pixel is in stretable range, false if pixel is outside of range (i.e., clipped) */
150-
bool isValueInDisplayableRange(double);
151-
/** \brief Set the contrast enhancement algorithm */
152-
void setContrastEnhancementAlgorithm(CONTRAST_ENHANCEMENT_ALGORITHM, bool generateTable=true);
153-
/** \brief A public method that allows the user to set their own custom contrast enhancment function */
154-
void setContrastEnhancementFunction(QgsContrastEnhancementFunction*);
155-
/** \brief Set the maximum value for the contrast enhancement range. */
156-
void setMaximumValue(double, bool generateTable=true);
157-
/** \brief Return the minimum value for the contrast enhancement range. */
158-
void setMinimumValue(double, bool generateTable=true);
159-
/** \brief Apply the contrast enhancement to a value. Return values are 0 - 254, -1 means the pixel was clipped and should not be displayed */
160-
int stretch(double);
161-
162-
};
163-
164-
class QgsContrastEnhancement
165-
{
166-
%TypeHeaderCode
167-
#include <qgscontrastenhancement.h>
168-
%End
169-
170-
public:
171-
172-
/** \brief This enumerator describes the types of contrast enhancement algorithms that can be used. */
173-
enum CONTRAST_ENHANCEMENT_ALGORITHM
174-
{
175-
NO_STRETCH, //this should be the default color scaling algorithm
176-
STRETCH_TO_MINMAX, //linear histogram stretch
177-
STRETCH_AND_CLIP_TO_MINMAX,
178-
CLIP_TO_MINMAX,
179-
USER_DEFINED
180-
};
181-
182-
/*! These are exactly the same as GDAL pixel data types */
183-
enum QgsRasterDataType {
184-
QGS_Unknown = 0,
185-
/*! Eight bit unsigned integer */ QGS_Byte = 1,
186-
/*! Sixteen bit unsigned integer */ QGS_UInt16 = 2,
187-
/*! Sixteen bit signed integer */ QGS_Int16 = 3,
188-
/*! Thirty two bit unsigned integer */ QGS_UInt32 = 4,
189-
/*! Thirty two bit signed integer */ QGS_Int32 = 5,
190-
/*! Thirty two bit floating point */ QGS_Float32 = 6,
191-
/*! Sixty four bit floating point */ QGS_Float64 = 7,
192-
/*! Complex Int16 */ QGS_CInt16 = 8,
193-
/*! Complex Int32 */ QGS_CInt32 = 9,
194-
/*! Complex Float32 */ QGS_CFloat32 = 10,
195-
/*! Complex Float64 */ QGS_CFloat64 = 11,
196-
QGS_TypeCount = 12 /* maximum type # + 1 */
197-
};
198-
199-
QgsContrastEnhancement(QgsContrastEnhancement::QgsRasterDataType theDatatype=QGS_Byte);
200-
~QgsContrastEnhancement();
201-
202-
/*
203-
*
204-
* Static methods
205-
*
206-
*/
207-
/** \brief Helper function that returns the maximum possible value for a GDAL data type */
208-
static double getMaximumPossibleValue(QgsRasterDataType);
209-
/** \brief Helper function that returns the minimum possible value for a GDAL data type */
210-
static double getMinimumPossibleValue(QgsRasterDataType);
211-
212-
/*
213-
*
214-
* Non-Static Inline methods
215-
*
216-
*/
217-
/** \brief Return the maximum value for the contrast enhancement range. */
218-
double getMaximumValue();
219-
220-
/** \brief Return the minimum value for the contrast enhancement range. */
221-
double getMinimumValue();
222-
223-
CONTRAST_ENHANCEMENT_ALGORITHM getContrastEnhancementAlgorithm();
224-
225-
/*
226-
*
227-
* Non-Static methods
228-
*
229-
*/
230-
/** \brief Return true if pixel is in stretable range, false if pixel is outside of range (i.e., clipped) */
231-
bool isValueInDisplayableRange(double);
232-
/** \brief Set the contrast enhancement algorithm */
233-
void setContrastEnhancementAlgorithm(CONTRAST_ENHANCEMENT_ALGORITHM, bool generateTable=true);
234-
/** \brief A public method that allows the user to set their own custom contrast enhancment function */
235-
void setContrastEnhancementFunction(QgsContrastEnhancementFunction*);
236-
/** \brief Set the maximum value for the contrast enhancement range. */
237-
void setMaximumValue(double, bool generateTable=true);
238-
/** \brief Return the minimum value for the contrast enhancement range. */
239-
void setMinimumValue(double, bool generateTable=true);
240-
/** \brief Apply the contrast enhancement to a value. Return values are 0 - 254, -1 means the pixel was clipped and should not be displayed */
241-
int stretch(double);
242-
243-
};

python/core/qgscontrastenhancementfunction.sip

-45
Original file line numberDiff line numberDiff line change
@@ -22,48 +22,3 @@ class QgsContrastEnhancementFunction
2222

2323
};
2424

25-
class QgsContrastEnhancementFunction
26-
{
27-
%TypeHeaderCode
28-
#include <qgscontrastenhancement.h>
29-
#include <qgscontrastenhancementfunction.h>
30-
%End
31-
32-
public:
33-
QgsContrastEnhancementFunction(QgsContrastEnhancement::QgsRasterDataType, double, double);
34-
virtual ~QgsContrastEnhancementFunction();
35-
36-
/** \brief Mustator for the maximum value */
37-
void setMaximumValue(double);
38-
/** \brief Mutator for the minimum value */
39-
void setMinimumValue(double);
40-
41-
/** \brief A customizable method that takes in a double and returns a int between 0 and 255 */
42-
virtual int enhanceValue(double);
43-
/** \brief A customicable method to indicate if the pixels is displayable */
44-
virtual bool isValueInDisplayableRange(double);
45-
46-
};
47-
48-
class QgsContrastEnhancementFunction
49-
{
50-
%TypeHeaderCode
51-
#include <qgscontrastenhancement.h>
52-
#include <qgscontrastenhancementfunction.h>
53-
%End
54-
55-
public:
56-
QgsContrastEnhancementFunction(QgsContrastEnhancement::QgsRasterDataType, double, double);
57-
virtual ~QgsContrastEnhancementFunction();
58-
59-
/** \brief Mustator for the maximum value */
60-
void setMaximumValue(double);
61-
/** \brief Mutator for the minimum value */
62-
void setMinimumValue(double);
63-
64-
/** \brief A customizable method that takes in a double and returns a int between 0 and 255 */
65-
virtual int enhanceValue(double);
66-
/** \brief A customicable method to indicate if the pixels is displayable */
67-
virtual bool isValueInDisplayableRange(double);
68-
69-
};

python/core/qgsrastershader.sip

-80
Original file line numberDiff line numberDiff line change
@@ -6,86 +6,6 @@ class QgsRasterShader
66
#include <qgsrastershaderfunction.h>
77
%End
88

9-
public:
10-
QgsRasterShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
11-
~QgsRasterShader();
12-
/*
13-
*
14-
* Non-Static Inline methods
15-
*
16-
*/
17-
/** \brief Return the maximum value for the raster shader */
18-
double getMaximumValue();
19-
20-
/** \brief Return the minimum value for the raster shader */
21-
double getMinimumValue();
22-
23-
QgsRasterShaderFunction* getRasterShaderFunction();
24-
25-
/*
26-
*
27-
* Non-Static methods
28-
*
29-
*/
30-
/** \brief generates and new RGB value based on one input value */
31-
bool generateShadedValue(double, int*, int*, int*);
32-
/** \brief generates and new RGB value based on original RGB value */
33-
bool generateShadedValue(double, double, double, int*, int*, int*);
34-
/** \brief A public method that allows the user to set their own shader function */
35-
void setRasterShaderFunction(QgsRasterShaderFunction*);
36-
/** \brief Set the maximum value */
37-
void setMaximumValue(double);
38-
/** \brief Return the minimum value */
39-
void setMinimumValue(double);
40-
};
41-
42-
class QgsRasterShader
43-
{
44-
%TypeHeaderCode
45-
#include <qgsrastershader.h>
46-
#include <qgsrastershaderfunction.h>
47-
%End
48-
49-
public:
50-
QgsRasterShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
51-
~QgsRasterShader();
52-
/*
53-
*
54-
* Non-Static Inline methods
55-
*
56-
*/
57-
/** \brief Return the maximum value for the raster shader */
58-
double getMaximumValue();
59-
60-
/** \brief Return the minimum value for the raster shader */
61-
double getMinimumValue();
62-
63-
QgsRasterShaderFunction* getRasterShaderFunction();
64-
65-
/*
66-
*
67-
* Non-Static methods
68-
*
69-
*/
70-
/** \brief generates and new RGB value based on one input value */
71-
bool generateShadedValue(double, int*, int*, int*);
72-
/** \brief generates and new RGB value based on original RGB value */
73-
bool generateShadedValue(double, double, double, int*, int*, int*);
74-
/** \brief A public method that allows the user to set their own shader function */
75-
void setRasterShaderFunction(QgsRasterShaderFunction*);
76-
/** \brief Set the maximum value */
77-
void setMaximumValue(double);
78-
/** \brief Return the minimum value */
79-
void setMinimumValue(double);
80-
};
81-
82-
class QgsRasterShader
83-
{
84-
%TypeHeaderCode
85-
#include <qgsrastershader.h>
86-
#include <qgsrastershaderfunction.h>
87-
%End
88-
899
public:
9010
QgsRasterShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
9111
~QgsRasterShader();

python/core/qgsrastershaderfunction.sip

-42
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,3 @@ public:
1919
/** \brief Return the minimum value */
2020
virtual void setMinimumValue(double);
2121
};
22-
23-
class QgsRasterShaderFunction
24-
{
25-
%TypeHeaderCode
26-
#include <qgsrastershaderfunction.h>
27-
%End
28-
29-
public:
30-
QgsRasterShaderFunction(double theMinimumValue = 0.0, double theMaximumValue = 255.0);
31-
virtual ~QgsRasterShaderFunction();
32-
33-
/** \brief generates and new RGB value based on one input value */
34-
virtual bool generateShadedValue(double, int*, int*, int*);
35-
/** \brief generates and new RGB value based on original RGB value */
36-
virtual bool generateShadedValue(double, double, double, int*, int*, int*);
37-
38-
/** \brief Set the maximum value */
39-
virtual void setMaximumValue(double);
40-
/** \brief Return the minimum value */
41-
virtual void setMinimumValue(double);
42-
};
43-
44-
class QgsRasterShaderFunction
45-
{
46-
%TypeHeaderCode
47-
#include <qgsrastershaderfunction.h>
48-
%End
49-
50-
public:
51-
QgsRasterShaderFunction(double theMinimumValue = 0.0, double theMaximumValue = 255.0);
52-
virtual ~QgsRasterShaderFunction();
53-
54-
/** \brief generates and new RGB value based on one input value */
55-
virtual bool generateShadedValue(double, int*, int*, int*);
56-
/** \brief generates and new RGB value based on original RGB value */
57-
virtual bool generateShadedValue(double, double, double, int*, int*, int*);
58-
59-
/** \brief Set the maximum value */
60-
virtual void setMaximumValue(double);
61-
/** \brief Return the minimum value */
62-
virtual void setMinimumValue(double);
63-
};

0 commit comments

Comments
 (0)