Skip to content

Commit 899596b

Browse files
author
ersts
committedJan 26, 2008
-Removed strange triplicate defs in .h file
-Moved loadDefaultStyle() to prevent crash when loading qml git-svn-id: http://svn.osgeo.org/qgis/trunk@8051 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e4e86b8 commit 899596b

11 files changed

+5
-1193
lines changed
 

‎src/core/raster/qgscliptominmaxenhancement.h

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -31,69 +31,3 @@ class CORE_EXPORT QgsClipToMinMaxEnhancement : public QgsContrastEnhancementFunc
3131
};
3232

3333
#endif
34-
/* **************************************************************************
35-
qgscliptominmaxenhancement.h - description
36-
-------------------
37-
begin : Fri Nov 16 2007
38-
copyright : (C) 2007 by Peter J. Ersts
39-
email : ersts@amnh.org
40-
41-
****************************************************************************/
42-
43-
/* **************************************************************************
44-
* *
45-
* This program is free software; you can redistribute it and/or modify *
46-
* it under the terms of the GNU General Public License as published by *
47-
* the Free Software Foundation; either version 2 of the License, or *
48-
* (at your option) any later version. *
49-
* *
50-
***************************************************************************/
51-
52-
#ifndef QGSCLIPTOMINMAXENHANCEMENT_H
53-
#define QGSCLIPTOMINMAXENHANCEMENT_H
54-
55-
#include "qgscontrastenhancementfunction.h"
56-
57-
class CORE_EXPORT QgsClipToMinMaxEnhancement : public QgsContrastEnhancementFunction
58-
{
59-
60-
public:
61-
QgsClipToMinMaxEnhancement(QgsContrastEnhancement::QgsRasterDataType, double, double);
62-
int enhanceValue(double);
63-
bool isValueInDisplayableRange(double);
64-
};
65-
66-
#endif
67-
/* **************************************************************************
68-
qgscliptominmaxenhancement.h - description
69-
-------------------
70-
begin : Fri Nov 16 2007
71-
copyright : (C) 2007 by Peter J. Ersts
72-
email : ersts@amnh.org
73-
74-
****************************************************************************/
75-
76-
/* **************************************************************************
77-
* *
78-
* This program is free software; you can redistribute it and/or modify *
79-
* it under the terms of the GNU General Public License as published by *
80-
* the Free Software Foundation; either version 2 of the License, or *
81-
* (at your option) any later version. *
82-
* *
83-
***************************************************************************/
84-
85-
#ifndef QGSCLIPTOMINMAXENHANCEMENT_H
86-
#define QGSCLIPTOMINMAXENHANCEMENT_H
87-
88-
#include "qgscontrastenhancementfunction.h"
89-
90-
class CORE_EXPORT QgsClipToMinMaxEnhancement : public QgsContrastEnhancementFunction
91-
{
92-
93-
public:
94-
QgsClipToMinMaxEnhancement(QgsContrastEnhancement::QgsRasterDataType, double, double);
95-
int enhanceValue(double);
96-
bool isValueInDisplayableRange(double);
97-
};
98-
99-
#endif

‎src/core/raster/qgscolorrampshader.h

Lines changed: 0 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -68,162 +68,6 @@ class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction {
6868

6969

7070

71-
private:
72-
/**Gets the color for a pixel value from the classification vector mValueClassification. Assigns the color of the lower class for every pixel between two class breaks.*/
73-
bool getDiscreteColor(double, int*, int*, int*);
74-
/**Gets the color for a pixel value from the classification vector mValueClassification. Interpolates the color between two class breaks linearly.*/
75-
bool getInterpolatedColor(double, int*, int*, int*);
76-
77-
/**This vector holds the information for classification based on values. Each item holds a value, a label and a color. The member mDiscreteClassification holds if one color is applied for all values between two class breaks (true) or if the item values are (linearly) interpolated for values between the item values (false)*/
78-
QList<QgsColorRampShader::ColorRampItem> mColorRampItemList;
79-
80-
QgsColorRampShader::COLOR_RAMP_TYPE mColorRampType;
81-
};
82-
83-
#endif
84-
/* **************************************************************************
85-
qgscolorrampshader.h - description
86-
-------------------
87-
begin : Fri Dec 28 2007
88-
copyright : (C) 2007 by Peter J. Ersts
89-
email : ersts@amnh.org
90-
91-
This class is based off of code that was originally written by Marco Hugentobler and
92-
originally part of the larger QgsRasterLayer class
93-
****************************************************************************/
94-
95-
/* **************************************************************************
96-
* *
97-
* This program is free software; you can redistribute it and/or modify *
98-
* it under the terms of the GNU General Public License as published by *
99-
* the Free Software Foundation; either version 2 of the License, or *
100-
* (at your option) any later version. *
101-
* *
102-
***************************************************************************/
103-
104-
#ifndef QGSCOLORRAMPSHADER_H
105-
#define QGSCOLORRAMPSHADER_H
106-
107-
#include <QColor>
108-
109-
#include "qgsrastershaderfunction.h"
110-
111-
class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction {
112-
113-
public:
114-
QgsColorRampShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
115-
116-
//An entry for classification based upon value.
117-
//Such a classification is typically used for
118-
//single band layers where a pixel value represents
119-
//not a color but a quantity, e.g. temperature or elevation
120-
struct ColorRampItem
121-
{
122-
QString label;
123-
double value;
124-
QColor color;
125-
};
126-
127-
enum COLOR_RAMP_TYPE {
128-
INTERPOLATED,
129-
DISCRETE
130-
};
131-
132-
bool generateShadedValue(double, int*, int*, int*);
133-
bool generateShadedValue(double, double, double, int*, int*, int*);
134-
135-
/** Get the custom colormap*/
136-
QList<QgsColorRampShader::ColorRampItem> getColorRampItemList() const {return mColorRampItemList;}
137-
138-
/**Get the color ramp type */
139-
QgsColorRampShader::COLOR_RAMP_TYPE getColorRampType() {return mColorRampType;}
140-
141-
/**Set custom colormap */
142-
void setColorRampItemList(const QList<QgsColorRampShader::ColorRampItem>& theList) { mColorRampItemList = theList; }
143-
144-
/**Set discrete/interpolated colors for custom classification*/
145-
void setColorRampType(QgsColorRampShader::COLOR_RAMP_TYPE theColorRampType) {mColorRampType = theColorRampType;}
146-
147-
148-
149-
private:
150-
/**Gets the color for a pixel value from the classification vector mValueClassification. Assigns the color of the lower class for every pixel between two class breaks.*/
151-
bool getDiscreteColor(double, int*, int*, int*);
152-
/**Gets the color for a pixel value from the classification vector mValueClassification. Interpolates the color between two class breaks linearly.*/
153-
bool getInterpolatedColor(double, int*, int*, int*);
154-
155-
/**This vector holds the information for classification based on values. Each item holds a value, a label and a color. The member mDiscreteClassification holds if one color is applied for all values between two class breaks (true) or if the item values are (linearly) interpolated for values between the item values (false)*/
156-
QList<QgsColorRampShader::ColorRampItem> mColorRampItemList;
157-
158-
QgsColorRampShader::COLOR_RAMP_TYPE mColorRampType;
159-
};
160-
161-
#endif
162-
/* **************************************************************************
163-
qgscolorrampshader.h - description
164-
-------------------
165-
begin : Fri Dec 28 2007
166-
copyright : (C) 2007 by Peter J. Ersts
167-
email : ersts@amnh.org
168-
169-
This class is based off of code that was originally written by Marco Hugentobler and
170-
originally part of the larger QgsRasterLayer class
171-
****************************************************************************/
172-
173-
/* **************************************************************************
174-
* *
175-
* This program is free software; you can redistribute it and/or modify *
176-
* it under the terms of the GNU General Public License as published by *
177-
* the Free Software Foundation; either version 2 of the License, or *
178-
* (at your option) any later version. *
179-
* *
180-
***************************************************************************/
181-
182-
#ifndef QGSCOLORRAMPSHADER_H
183-
#define QGSCOLORRAMPSHADER_H
184-
185-
#include <QColor>
186-
187-
#include "qgsrastershaderfunction.h"
188-
189-
class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction {
190-
191-
public:
192-
QgsColorRampShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
193-
194-
//An entry for classification based upon value.
195-
//Such a classification is typically used for
196-
//single band layers where a pixel value represents
197-
//not a color but a quantity, e.g. temperature or elevation
198-
struct ColorRampItem
199-
{
200-
QString label;
201-
double value;
202-
QColor color;
203-
};
204-
205-
enum COLOR_RAMP_TYPE {
206-
INTERPOLATED,
207-
DISCRETE
208-
};
209-
210-
bool generateShadedValue(double, int*, int*, int*);
211-
bool generateShadedValue(double, double, double, int*, int*, int*);
212-
213-
/** Get the custom colormap*/
214-
QList<QgsColorRampShader::ColorRampItem> getColorRampItemList() const {return mColorRampItemList;}
215-
216-
/**Get the color ramp type */
217-
QgsColorRampShader::COLOR_RAMP_TYPE getColorRampType() {return mColorRampType;}
218-
219-
/**Set custom colormap */
220-
void setColorRampItemList(const QList<QgsColorRampShader::ColorRampItem>& theList) { mColorRampItemList = theList; }
221-
222-
/**Set discrete/interpolated colors for custom classification*/
223-
void setColorRampType(QgsColorRampShader::COLOR_RAMP_TYPE theColorRampType) {mColorRampType = theColorRampType;}
224-
225-
226-
22771
private:
22872
/**Gets the color for a pixel value from the classification vector mValueClassification. Assigns the color of the lower class for every pixel between two class breaks.*/
22973
bool getDiscreteColor(double, int*, int*, int*);

‎src/core/raster/qgscontrastenhancement.h

Lines changed: 0 additions & 274 deletions
Original file line numberDiff line numberDiff line change
@@ -135,277 +135,3 @@ class CORE_EXPORT QgsContrastEnhancement {
135135
};
136136

137137
#endif
138-
/* **************************************************************************
139-
qgscontrastenhancement.h - description
140-
-------------------
141-
begin : Mon Oct 22 2007
142-
copyright : (C) 2007 by Peter J. Ersts
143-
email : ersts@amnh.org
144-
145-
This class contains code that was originally part of the larger QgsRasterLayer
146-
class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
147-
****************************************************************************/
148-
149-
/* **************************************************************************
150-
* *
151-
* This program is free software; you can redistribute it and/or modify *
152-
* it under the terms of the GNU General Public License as published by *
153-
* the Free Software Foundation; either version 2 of the License, or *
154-
* (at your option) any later version. *
155-
* *
156-
***************************************************************************/
157-
158-
#ifndef QGSCONTRASTENHANCEMENT_H
159-
#define QGSCONTRASTENHANCEMENT_H
160-
161-
#include <limits>
162-
163-
class QgsContrastEnhancementFunction;
164-
165-
class CORE_EXPORT QgsContrastEnhancement {
166-
167-
public:
168-
169-
/** \brief This enumerator describes the types of contrast enhancement algorithms that can be used. */
170-
enum CONTRAST_ENHANCEMENT_ALGORITHM
171-
{
172-
NO_STRETCH, //this should be the default color scaling algorithm
173-
STRETCH_TO_MINMAX, //linear histogram stretch
174-
STRETCH_AND_CLIP_TO_MINMAX,
175-
CLIP_TO_MINMAX,
176-
USER_DEFINED
177-
};
178-
179-
/** These are exactly the same as GDAL pixel data types
180-
** This was added so that the python bindings could be built,
181-
** which initially was a problem because GDALDataType was passed
182-
** around as an argument to numerous method, including the constructor.
183-
**
184-
** It seems like there should be a better way to do this...
185-
*/
186-
typedef enum QgsRasterDataType {
187-
QGS_Unknown = 0,
188-
/*! Eight bit unsigned integer */ QGS_Byte = 1,
189-
/*! Sixteen bit unsigned integer */ QGS_UInt16 = 2,
190-
/*! Sixteen bit signed integer */ QGS_Int16 = 3,
191-
/*! Thirty two bit unsigned integer */ QGS_UInt32 = 4,
192-
/*! Thirty two bit signed integer */ QGS_Int32 = 5,
193-
/*! Thirty two bit floating point */ QGS_Float32 = 6,
194-
/*! Sixty four bit floating point */ QGS_Float64 = 7,
195-
/*! Complex Int16 */ QGS_CInt16 = 8,
196-
/*! Complex Int32 */ QGS_CInt32 = 9,
197-
/*! Complex Float32 */ QGS_CFloat32 = 10,
198-
/*! Complex Float64 */ QGS_CFloat64 = 11,
199-
QGS_TypeCount = 12 /* maximum type # + 1 */
200-
};
201-
202-
QgsContrastEnhancement(QgsContrastEnhancement::QgsRasterDataType theDatatype=QGS_Byte);
203-
~QgsContrastEnhancement();
204-
205-
/*
206-
*
207-
* Static methods
208-
*
209-
*/
210-
/** \brief Helper function that returns the maximum possible value for a GDAL data type */
211-
static double getMaximumPossibleValue(QgsRasterDataType);
212-
/** \brief Helper function that returns the minimum possible value for a GDAL data type */
213-
static double getMinimumPossibleValue(QgsRasterDataType);
214-
215-
/*
216-
*
217-
* Non-Static Inline methods
218-
*
219-
*/
220-
/** \brief Return the maximum value for the contrast enhancement range. */
221-
double getMaximumValue() { return mMaximumValue; }
222-
223-
/** \brief Return the minimum value for the contrast enhancement range. */
224-
double getMinimumValue() { return mMinimumValue; }
225-
226-
CONTRAST_ENHANCEMENT_ALGORITHM getContrastEnhancementAlgorithm() { return mContrastEnhancementAlgorithm; }
227-
228-
/*
229-
*
230-
* Non-Static methods
231-
*
232-
*/
233-
/** \brief Return true if pixel is in stretable range, false if pixel is outside of range (i.e., clipped) */
234-
bool isValueInDisplayableRange(double);
235-
/** \brief Set the contrast enhancement algorithm */
236-
void setContrastEnhancementAlgorithm(CONTRAST_ENHANCEMENT_ALGORITHM, bool generateTable=true);
237-
/** \brief A public method that allows the user to set their own custom contrast enhancment function */
238-
void setContrastEnhancementFunction(QgsContrastEnhancementFunction*);
239-
/** \brief Set the maximum value for the contrast enhancement range. */
240-
void setMaximumValue(double, bool generateTable=true);
241-
/** \brief Return the minimum value for the contrast enhancement range. */
242-
void setMinimumValue(double, bool generateTable=true);
243-
/** \brief Apply the contrast enhancement to a value. Return values are 0 - 254, -1 means the pixel was clipped and should not be displayed */
244-
int stretch(double);
245-
246-
private:
247-
/** \brief Current contrast enhancement algorithm */
248-
CONTRAST_ENHANCEMENT_ALGORITHM mContrastEnhancementAlgorithm;
249-
/** \brief Data type of the band */
250-
QgsRasterDataType mRasterDataType;
251-
/** \brief Maximum range of values for a given data type */
252-
double mRasterDataTypeRange;
253-
/** \brief Flag indicating if the lookup table needs to be regenerated */
254-
bool mEnhancementDirty;
255-
256-
QgsContrastEnhancementFunction* mContrastEnhancementFunction;
257-
258-
/** \brief User defineable minimum value for the band, used for stretching */
259-
double mMinimumValue;
260-
/** \brief user defineable maximum value for the band, used for stretching */
261-
double mMaximumValue;
262-
263-
/** \brief Scalar so that values can be used as array indicies */
264-
double mLookupTableOffset;
265-
/** \brief Pointer to the lookup table */
266-
int *mLookupTable;
267-
268-
/** \brief Method to generate a new lookup table */
269-
bool generateLookupTable();
270-
/** \brief Method to calculate the actual stretched value(s) */
271-
int calculateContrastEnhancementValue(double);
272-
};
273-
274-
#endif
275-
/* **************************************************************************
276-
qgscontrastenhancement.h - description
277-
-------------------
278-
begin : Mon Oct 22 2007
279-
copyright : (C) 2007 by Peter J. Ersts
280-
email : ersts@amnh.org
281-
282-
This class contains code that was originally part of the larger QgsRasterLayer
283-
class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
284-
****************************************************************************/
285-
286-
/* **************************************************************************
287-
* *
288-
* This program is free software; you can redistribute it and/or modify *
289-
* it under the terms of the GNU General Public License as published by *
290-
* the Free Software Foundation; either version 2 of the License, or *
291-
* (at your option) any later version. *
292-
* *
293-
***************************************************************************/
294-
295-
#ifndef QGSCONTRASTENHANCEMENT_H
296-
#define QGSCONTRASTENHANCEMENT_H
297-
298-
#include <limits>
299-
300-
class QgsContrastEnhancementFunction;
301-
302-
class CORE_EXPORT QgsContrastEnhancement {
303-
304-
public:
305-
306-
/** \brief This enumerator describes the types of contrast enhancement algorithms that can be used. */
307-
enum CONTRAST_ENHANCEMENT_ALGORITHM
308-
{
309-
NO_STRETCH, //this should be the default color scaling algorithm
310-
STRETCH_TO_MINMAX, //linear histogram stretch
311-
STRETCH_AND_CLIP_TO_MINMAX,
312-
CLIP_TO_MINMAX,
313-
USER_DEFINED
314-
};
315-
316-
/** These are exactly the same as GDAL pixel data types
317-
** This was added so that the python bindings could be built,
318-
** which initially was a problem because GDALDataType was passed
319-
** around as an argument to numerous method, including the constructor.
320-
**
321-
** It seems like there should be a better way to do this...
322-
*/
323-
typedef enum QgsRasterDataType {
324-
QGS_Unknown = 0,
325-
/*! Eight bit unsigned integer */ QGS_Byte = 1,
326-
/*! Sixteen bit unsigned integer */ QGS_UInt16 = 2,
327-
/*! Sixteen bit signed integer */ QGS_Int16 = 3,
328-
/*! Thirty two bit unsigned integer */ QGS_UInt32 = 4,
329-
/*! Thirty two bit signed integer */ QGS_Int32 = 5,
330-
/*! Thirty two bit floating point */ QGS_Float32 = 6,
331-
/*! Sixty four bit floating point */ QGS_Float64 = 7,
332-
/*! Complex Int16 */ QGS_CInt16 = 8,
333-
/*! Complex Int32 */ QGS_CInt32 = 9,
334-
/*! Complex Float32 */ QGS_CFloat32 = 10,
335-
/*! Complex Float64 */ QGS_CFloat64 = 11,
336-
QGS_TypeCount = 12 /* maximum type # + 1 */
337-
};
338-
339-
QgsContrastEnhancement(QgsContrastEnhancement::QgsRasterDataType theDatatype=QGS_Byte);
340-
~QgsContrastEnhancement();
341-
342-
/*
343-
*
344-
* Static methods
345-
*
346-
*/
347-
/** \brief Helper function that returns the maximum possible value for a GDAL data type */
348-
static double getMaximumPossibleValue(QgsRasterDataType);
349-
/** \brief Helper function that returns the minimum possible value for a GDAL data type */
350-
static double getMinimumPossibleValue(QgsRasterDataType);
351-
352-
/*
353-
*
354-
* Non-Static Inline methods
355-
*
356-
*/
357-
/** \brief Return the maximum value for the contrast enhancement range. */
358-
double getMaximumValue() { return mMaximumValue; }
359-
360-
/** \brief Return the minimum value for the contrast enhancement range. */
361-
double getMinimumValue() { return mMinimumValue; }
362-
363-
CONTRAST_ENHANCEMENT_ALGORITHM getContrastEnhancementAlgorithm() { return mContrastEnhancementAlgorithm; }
364-
365-
/*
366-
*
367-
* Non-Static methods
368-
*
369-
*/
370-
/** \brief Return true if pixel is in stretable range, false if pixel is outside of range (i.e., clipped) */
371-
bool isValueInDisplayableRange(double);
372-
/** \brief Set the contrast enhancement algorithm */
373-
void setContrastEnhancementAlgorithm(CONTRAST_ENHANCEMENT_ALGORITHM, bool generateTable=true);
374-
/** \brief A public method that allows the user to set their own custom contrast enhancment function */
375-
void setContrastEnhancementFunction(QgsContrastEnhancementFunction*);
376-
/** \brief Set the maximum value for the contrast enhancement range. */
377-
void setMaximumValue(double, bool generateTable=true);
378-
/** \brief Return the minimum value for the contrast enhancement range. */
379-
void setMinimumValue(double, bool generateTable=true);
380-
/** \brief Apply the contrast enhancement to a value. Return values are 0 - 254, -1 means the pixel was clipped and should not be displayed */
381-
int stretch(double);
382-
383-
private:
384-
/** \brief Current contrast enhancement algorithm */
385-
CONTRAST_ENHANCEMENT_ALGORITHM mContrastEnhancementAlgorithm;
386-
/** \brief Data type of the band */
387-
QgsRasterDataType mRasterDataType;
388-
/** \brief Maximum range of values for a given data type */
389-
double mRasterDataTypeRange;
390-
/** \brief Flag indicating if the lookup table needs to be regenerated */
391-
bool mEnhancementDirty;
392-
393-
QgsContrastEnhancementFunction* mContrastEnhancementFunction;
394-
395-
/** \brief User defineable minimum value for the band, used for stretching */
396-
double mMinimumValue;
397-
/** \brief user defineable maximum value for the band, used for stretching */
398-
double mMaximumValue;
399-
400-
/** \brief Scalar so that values can be used as array indicies */
401-
double mLookupTableOffset;
402-
/** \brief Pointer to the lookup table */
403-
int *mLookupTable;
404-
405-
/** \brief Method to generate a new lookup table */
406-
bool generateLookupTable();
407-
/** \brief Method to calculate the actual stretched value(s) */
408-
int calculateContrastEnhancementValue(double);
409-
};
410-
411-
#endif

‎src/core/raster/qgscontrastenhancementfunction.h

Lines changed: 0 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -50,107 +50,3 @@ class CORE_EXPORT QgsContrastEnhancementFunction
5050
};
5151

5252
#endif
53-
/* **************************************************************************
54-
qgscontrastenhancementfunction.h - description
55-
-------------------
56-
begin : Fri Nov 16 2007
57-
copyright : (C) 2007 by Peter J. Ersts
58-
email : ersts@amnh.org
59-
60-
****************************************************************************/
61-
62-
/* **************************************************************************
63-
* *
64-
* This program is free software; you can redistribute it and/or modify *
65-
* it under the terms of the GNU General Public License as published by *
66-
* the Free Software Foundation; either version 2 of the License, or *
67-
* (at your option) any later version. *
68-
* *
69-
***************************************************************************/
70-
71-
#ifndef QGSCONTRASTENHANCEMENTFUNCTION_H
72-
#define QGSCONTRASTENHANCEMENTFUNCTION_H
73-
74-
#include "qgscontrastenhancement.h"
75-
76-
class CORE_EXPORT QgsContrastEnhancementFunction
77-
{
78-
79-
public:
80-
QgsContrastEnhancementFunction(QgsContrastEnhancement::QgsRasterDataType, double, double);
81-
virtual ~QgsContrastEnhancementFunction() {}
82-
83-
/** \brief Mustator for the maximum value */
84-
void setMaximumValue(double);
85-
/** \brief Mutator for the minimum value */
86-
void setMinimumValue(double);
87-
88-
/** \brief A customizable method that takes in a double and returns a int between 0 and 255 */
89-
virtual int enhanceValue(double);
90-
/** \brief A customicable method to indicate if the pixels is displayable */
91-
virtual bool isValueInDisplayableRange(double);
92-
93-
protected:
94-
/** \brief User defineable maximum value for the band, used for stretching */
95-
double mMaximumValue;
96-
/** \brief User defineable minimum value for the band, used for stretching */
97-
double mMinimumValue;
98-
/** \brief Minimum maximum range for the band, used for stretching */
99-
double mMinimumMaximumRange;
100-
/** \brief Data type of the band */
101-
QgsContrastEnhancement::QgsRasterDataType mQgsRasterDataType;
102-
};
103-
104-
#endif
105-
/* **************************************************************************
106-
qgscontrastenhancementfunction.h - description
107-
-------------------
108-
begin : Fri Nov 16 2007
109-
copyright : (C) 2007 by Peter J. Ersts
110-
email : ersts@amnh.org
111-
112-
****************************************************************************/
113-
114-
/* **************************************************************************
115-
* *
116-
* This program is free software; you can redistribute it and/or modify *
117-
* it under the terms of the GNU General Public License as published by *
118-
* the Free Software Foundation; either version 2 of the License, or *
119-
* (at your option) any later version. *
120-
* *
121-
***************************************************************************/
122-
123-
#ifndef QGSCONTRASTENHANCEMENTFUNCTION_H
124-
#define QGSCONTRASTENHANCEMENTFUNCTION_H
125-
126-
#include "qgscontrastenhancement.h"
127-
128-
class CORE_EXPORT QgsContrastEnhancementFunction
129-
{
130-
131-
public:
132-
QgsContrastEnhancementFunction(QgsContrastEnhancement::QgsRasterDataType, double, double);
133-
virtual ~QgsContrastEnhancementFunction() {}
134-
135-
/** \brief Mustator for the maximum value */
136-
void setMaximumValue(double);
137-
/** \brief Mutator for the minimum value */
138-
void setMinimumValue(double);
139-
140-
/** \brief A customizable method that takes in a double and returns a int between 0 and 255 */
141-
virtual int enhanceValue(double);
142-
/** \brief A customicable method to indicate if the pixels is displayable */
143-
virtual bool isValueInDisplayableRange(double);
144-
145-
protected:
146-
/** \brief User defineable maximum value for the band, used for stretching */
147-
double mMaximumValue;
148-
/** \brief User defineable minimum value for the band, used for stretching */
149-
double mMinimumValue;
150-
/** \brief Minimum maximum range for the band, used for stretching */
151-
double mMinimumMaximumRange;
152-
/** \brief Data type of the band */
153-
QgsContrastEnhancement::QgsRasterDataType mQgsRasterDataType;
154-
};
155-
156-
#endif

‎src/core/raster/qgsfreakoutshader.h

Lines changed: 0 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -47,107 +47,3 @@ class CORE_EXPORT QgsFreakOutShader : public QgsRasterShaderFunction {
4747
};
4848

4949
#endif
50-
51-
52-
/* **************************************************************************
53-
qgsfreakoutshader.h - description
54-
-------------------
55-
begin : Fri Dec 28 2007
56-
copyright : (C) 2007 by Peter J. Ersts
57-
email : ersts@amnh.org
58-
59-
This class contains code that was originally part of the larger QgsRasterLayer
60-
class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
61-
****************************************************************************/
62-
63-
/* **************************************************************************
64-
* *
65-
* This program is free software; you can redistribute it and/or modify *
66-
* it under the terms of the GNU General Public License as published by *
67-
* the Free Software Foundation; either version 2 of the License, or *
68-
* (at your option) any later version. *
69-
* *
70-
***************************************************************************/
71-
72-
#ifndef QGSFREAKOUTSHADER_H
73-
#define QGSFREAKOUTSHADER_H
74-
75-
#include "qgsrastershaderfunction.h"
76-
77-
class CORE_EXPORT QgsFreakOutShader : public QgsRasterShaderFunction {
78-
79-
public:
80-
QgsFreakOutShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
81-
82-
bool generateShadedValue(double, int*, int*, int*);
83-
bool generateShadedValue(double, double, double, int*, int*, int*);
84-
/** \brief Set the maximum value */
85-
void setMaximumValue(double);
86-
/** \brief Return the minimum value */
87-
void setMinimumValue(double);
88-
89-
private:
90-
void setClassBreaks();
91-
92-
double mBreakSize;
93-
double mClassBreakMin1;
94-
double mClassBreakMax1;
95-
double mClassBreakMin2;
96-
double mClassBreakMax2;
97-
double mClassBreakMin3;
98-
};
99-
100-
#endif
101-
102-
103-
/* **************************************************************************
104-
qgsfreakoutshader.h - description
105-
-------------------
106-
begin : Fri Dec 28 2007
107-
copyright : (C) 2007 by Peter J. Ersts
108-
email : ersts@amnh.org
109-
110-
This class contains code that was originally part of the larger QgsRasterLayer
111-
class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
112-
****************************************************************************/
113-
114-
/* **************************************************************************
115-
* *
116-
* This program is free software; you can redistribute it and/or modify *
117-
* it under the terms of the GNU General Public License as published by *
118-
* the Free Software Foundation; either version 2 of the License, or *
119-
* (at your option) any later version. *
120-
* *
121-
***************************************************************************/
122-
123-
#ifndef QGSFREAKOUTSHADER_H
124-
#define QGSFREAKOUTSHADER_H
125-
126-
#include "qgsrastershaderfunction.h"
127-
128-
class CORE_EXPORT QgsFreakOutShader : public QgsRasterShaderFunction {
129-
130-
public:
131-
QgsFreakOutShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
132-
133-
bool generateShadedValue(double, int*, int*, int*);
134-
bool generateShadedValue(double, double, double, int*, int*, int*);
135-
/** \brief Set the maximum value */
136-
void setMaximumValue(double);
137-
/** \brief Return the minimum value */
138-
void setMinimumValue(double);
139-
140-
private:
141-
void setClassBreaks();
142-
143-
double mBreakSize;
144-
double mClassBreakMin1;
145-
double mClassBreakMax1;
146-
double mClassBreakMin2;
147-
double mClassBreakMax2;
148-
double mClassBreakMin3;
149-
};
150-
151-
#endif
152-
153-

‎src/core/raster/qgslinearminmaxenhancement.h

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -31,69 +31,3 @@ class CORE_EXPORT QgsLinearMinMaxEnhancement : public QgsContrastEnhancementFunc
3131
};
3232

3333
#endif
34-
/* **************************************************************************
35-
qgslinearminmaxenhancement.h - description
36-
-------------------
37-
begin : Fri Nov 16 2007
38-
copyright : (C) 2007 by Peter J. Ersts
39-
email : ersts@amnh.org
40-
41-
****************************************************************************/
42-
43-
/* **************************************************************************
44-
* *
45-
* This program is free software; you can redistribute it and/or modify *
46-
* it under the terms of the GNU General Public License as published by *
47-
* the Free Software Foundation; either version 2 of the License, or *
48-
* (at your option) any later version. *
49-
* *
50-
***************************************************************************/
51-
52-
#ifndef QGSLINEARMINMAXENHANCEMENT_H
53-
#define QGSLINEARMINMAXENHANCEMENT_H
54-
55-
#include "qgscontrastenhancementfunction.h"
56-
57-
class CORE_EXPORT QgsLinearMinMaxEnhancement : public QgsContrastEnhancementFunction
58-
{
59-
60-
public:
61-
QgsLinearMinMaxEnhancement(QgsContrastEnhancement::QgsRasterDataType, double, double);
62-
int enhanceValue(double);
63-
64-
};
65-
66-
#endif
67-
/* **************************************************************************
68-
qgslinearminmaxenhancement.h - description
69-
-------------------
70-
begin : Fri Nov 16 2007
71-
copyright : (C) 2007 by Peter J. Ersts
72-
email : ersts@amnh.org
73-
74-
****************************************************************************/
75-
76-
/* **************************************************************************
77-
* *
78-
* This program is free software; you can redistribute it and/or modify *
79-
* it under the terms of the GNU General Public License as published by *
80-
* the Free Software Foundation; either version 2 of the License, or *
81-
* (at your option) any later version. *
82-
* *
83-
***************************************************************************/
84-
85-
#ifndef QGSLINEARMINMAXENHANCEMENT_H
86-
#define QGSLINEARMINMAXENHANCEMENT_H
87-
88-
#include "qgscontrastenhancementfunction.h"
89-
90-
class CORE_EXPORT QgsLinearMinMaxEnhancement : public QgsContrastEnhancementFunction
91-
{
92-
93-
public:
94-
QgsLinearMinMaxEnhancement(QgsContrastEnhancement::QgsRasterDataType, double, double);
95-
int enhanceValue(double);
96-
97-
};
98-
99-
#endif

‎src/core/raster/qgslinearminmaxenhancementwithclip.h

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -31,69 +31,3 @@ class CORE_EXPORT QgsLinearMinMaxEnhancementWithClip : public QgsContrastEnhance
3131
};
3232

3333
#endif
34-
/* **************************************************************************
35-
qgslinearminmaxenhancementwithclip.h - description
36-
-------------------
37-
begin : Fri Nov 16 2007
38-
copyright : (C) 2007 by Peter J. Ersts
39-
email : ersts@amnh.org
40-
41-
****************************************************************************/
42-
43-
/* **************************************************************************
44-
* *
45-
* This program is free software; you can redistribute it and/or modify *
46-
* it under the terms of the GNU General Public License as published by *
47-
* the Free Software Foundation; either version 2 of the License, or *
48-
* (at your option) any later version. *
49-
* *
50-
***************************************************************************/
51-
52-
#ifndef QGSLINEARMINMAXENHANCEMENTWITHCLIP_H
53-
#define QGSLINEARMINMAXENHANCEMENTWITHCLIP_H
54-
55-
#include "qgscontrastenhancementfunction.h"
56-
57-
class CORE_EXPORT QgsLinearMinMaxEnhancementWithClip : public QgsContrastEnhancementFunction
58-
{
59-
60-
public:
61-
QgsLinearMinMaxEnhancementWithClip(QgsContrastEnhancement::QgsRasterDataType, double, double);
62-
int enhanceValue(double);
63-
bool isValueInDisplayableRange(double);
64-
};
65-
66-
#endif
67-
/* **************************************************************************
68-
qgslinearminmaxenhancementwithclip.h - description
69-
-------------------
70-
begin : Fri Nov 16 2007
71-
copyright : (C) 2007 by Peter J. Ersts
72-
email : ersts@amnh.org
73-
74-
****************************************************************************/
75-
76-
/* **************************************************************************
77-
* *
78-
* This program is free software; you can redistribute it and/or modify *
79-
* it under the terms of the GNU General Public License as published by *
80-
* the Free Software Foundation; either version 2 of the License, or *
81-
* (at your option) any later version. *
82-
* *
83-
***************************************************************************/
84-
85-
#ifndef QGSLINEARMINMAXENHANCEMENTWITHCLIP_H
86-
#define QGSLINEARMINMAXENHANCEMENTWITHCLIP_H
87-
88-
#include "qgscontrastenhancementfunction.h"
89-
90-
class CORE_EXPORT QgsLinearMinMaxEnhancementWithClip : public QgsContrastEnhancementFunction
91-
{
92-
93-
public:
94-
QgsLinearMinMaxEnhancementWithClip(QgsContrastEnhancement::QgsRasterDataType, double, double);
95-
int enhanceValue(double);
96-
bool isValueInDisplayableRange(double);
97-
};
98-
99-
#endif

‎src/core/raster/qgspseudocolorshader.h

Lines changed: 0 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -45,109 +45,4 @@ class CORE_EXPORT QgsPseudoColorShader : public QgsRasterShaderFunction {
4545
double mClassBreakMax2;
4646
double mClassBreakMin3;
4747
};
48-
4948
#endif
50-
51-
52-
/* **************************************************************************
53-
qgspseudocolorshader.h - description
54-
-------------------
55-
begin : Fri Dec 28 2007
56-
copyright : (C) 2007 by Peter J. Ersts
57-
email : ersts@amnh.org
58-
59-
This class contains code that was originally part of the larger QgsRasterLayer
60-
class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
61-
****************************************************************************/
62-
63-
/* **************************************************************************
64-
* *
65-
* This program is free software; you can redistribute it and/or modify *
66-
* it under the terms of the GNU General Public License as published by *
67-
* the Free Software Foundation; either version 2 of the License, or *
68-
* (at your option) any later version. *
69-
* *
70-
***************************************************************************/
71-
72-
#ifndef QGSPSEUDOCOLORSHADER_H
73-
#define QGSPSEUDOCOLORSHADER_H
74-
75-
#include "qgsrastershaderfunction.h"
76-
77-
class CORE_EXPORT QgsPseudoColorShader : public QgsRasterShaderFunction {
78-
79-
public:
80-
QgsPseudoColorShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
81-
82-
bool generateShadedValue(double, int*, int*, int*);
83-
bool generateShadedValue(double, double, double, int*, int*, int*);
84-
/** \brief Set the maximum value */
85-
void setMaximumValue(double);
86-
/** \brief Return the minimum value */
87-
void setMinimumValue(double);
88-
89-
private:
90-
void setClassBreaks();
91-
92-
double mBreakSize;
93-
double mClassBreakMin1;
94-
double mClassBreakMax1;
95-
double mClassBreakMin2;
96-
double mClassBreakMax2;
97-
double mClassBreakMin3;
98-
};
99-
100-
#endif
101-
102-
103-
/* **************************************************************************
104-
qgspseudocolorshader.h - description
105-
-------------------
106-
begin : Fri Dec 28 2007
107-
copyright : (C) 2007 by Peter J. Ersts
108-
email : ersts@amnh.org
109-
110-
This class contains code that was originally part of the larger QgsRasterLayer
111-
class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
112-
****************************************************************************/
113-
114-
/* **************************************************************************
115-
* *
116-
* This program is free software; you can redistribute it and/or modify *
117-
* it under the terms of the GNU General Public License as published by *
118-
* the Free Software Foundation; either version 2 of the License, or *
119-
* (at your option) any later version. *
120-
* *
121-
***************************************************************************/
122-
123-
#ifndef QGSPSEUDOCOLORSHADER_H
124-
#define QGSPSEUDOCOLORSHADER_H
125-
126-
#include "qgsrastershaderfunction.h"
127-
128-
class CORE_EXPORT QgsPseudoColorShader : public QgsRasterShaderFunction {
129-
130-
public:
131-
QgsPseudoColorShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
132-
133-
bool generateShadedValue(double, int*, int*, int*);
134-
bool generateShadedValue(double, double, double, int*, int*, int*);
135-
/** \brief Set the maximum value */
136-
void setMaximumValue(double);
137-
/** \brief Return the minimum value */
138-
void setMinimumValue(double);
139-
140-
private:
141-
void setClassBreaks();
142-
143-
double mBreakSize;
144-
double mClassBreakMin1;
145-
double mClassBreakMax1;
146-
double mClassBreakMin2;
147-
double mClassBreakMax2;
148-
double mClassBreakMin3;
149-
};
150-
151-
#endif
152-
153-

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,11 @@ QgsRasterLayer::QgsRasterLayer(
393393
mStandardDeviations(0),
394394
mDataProvider(0)
395395
{
396+
mUserDefinedRGBMinMaxFlag = false; //defaults needed to bypass stretch
397+
mUserDefinedGrayMinMaxFlag = false;
398+
399+
mRasterShader = new QgsRasterShader();
400+
396401
if ( loadDefaultStyleFlag )
397402
{
398403
bool defaultLoadedFlag = false;
@@ -402,10 +407,6 @@ QgsRasterLayer::QgsRasterLayer(
402407
return;
403408
}
404409
}
405-
mUserDefinedRGBMinMaxFlag = false; //defaults needed to bypass stretch
406-
mUserDefinedGrayMinMaxFlag = false;
407-
408-
mRasterShader = new QgsRasterShader();
409410

410411
// Initialise the affine transform matrix
411412
mGeoTransform[0] = 0;

‎src/core/raster/qgsrastershaderfunction.h

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -17,100 +17,6 @@ email : ersts@amnh.org
1717
***************************************************************************/
1818

1919

20-
#ifndef QGSRASTERSHADERFUNCTION_H
21-
#define QGSRASTERSHADERFUNCTION_H
22-
23-
class CORE_EXPORT QgsRasterShaderFunction {
24-
25-
public:
26-
QgsRasterShaderFunction(double theMinimumValue=0.0, double theMaximumValue=255.0);
27-
virtual ~QgsRasterShaderFunction() {}
28-
29-
/** \brief generates and new RGB value based on one input value */
30-
virtual bool generateShadedValue(double, int*, int*, int*);
31-
/** \brief generates and new RGB value based on original RGB value */
32-
virtual bool generateShadedValue(double, double, double, int*, int*, int*);
33-
34-
/** \brief Set the maximum value */
35-
virtual void setMaximumValue(double);
36-
/** \brief Return the minimum value */
37-
virtual void setMinimumValue(double);
38-
39-
protected:
40-
/** \brief User defineable maximum value for the shading function */
41-
double mMaximumValue;
42-
/** \brief User defineable minimum value for the shading function */
43-
double mMinimumValue;
44-
/** \brief Minimum maximum range for the shading function */
45-
double mMinimumMaximumRange;
46-
};
47-
#endif
48-
/* **************************************************************************
49-
qgsrastershaderfunction.h - description
50-
-------------------
51-
begin : Fri Dec 28 2007
52-
copyright : (C) 2007 by Peter J. Ersts
53-
email : ersts@amnh.org
54-
55-
****************************************************************************/
56-
57-
/* **************************************************************************
58-
* *
59-
* This program is free software; you can redistribute it and/or modify *
60-
* it under the terms of the GNU General Public License as published by *
61-
* the Free Software Foundation; either version 2 of the License, or *
62-
* (at your option) any later version. *
63-
* *
64-
***************************************************************************/
65-
66-
67-
#ifndef QGSRASTERSHADERFUNCTION_H
68-
#define QGSRASTERSHADERFUNCTION_H
69-
70-
class CORE_EXPORT QgsRasterShaderFunction {
71-
72-
public:
73-
QgsRasterShaderFunction(double theMinimumValue=0.0, double theMaximumValue=255.0);
74-
virtual ~QgsRasterShaderFunction() {}
75-
76-
/** \brief generates and new RGB value based on one input value */
77-
virtual bool generateShadedValue(double, int*, int*, int*);
78-
/** \brief generates and new RGB value based on original RGB value */
79-
virtual bool generateShadedValue(double, double, double, int*, int*, int*);
80-
81-
/** \brief Set the maximum value */
82-
virtual void setMaximumValue(double);
83-
/** \brief Return the minimum value */
84-
virtual void setMinimumValue(double);
85-
86-
protected:
87-
/** \brief User defineable maximum value for the shading function */
88-
double mMaximumValue;
89-
/** \brief User defineable minimum value for the shading function */
90-
double mMinimumValue;
91-
/** \brief Minimum maximum range for the shading function */
92-
double mMinimumMaximumRange;
93-
};
94-
#endif
95-
/* **************************************************************************
96-
qgsrastershaderfunction.h - description
97-
-------------------
98-
begin : Fri Dec 28 2007
99-
copyright : (C) 2007 by Peter J. Ersts
100-
email : ersts@amnh.org
101-
102-
****************************************************************************/
103-
104-
/* **************************************************************************
105-
* *
106-
* This program is free software; you can redistribute it and/or modify *
107-
* it under the terms of the GNU General Public License as published by *
108-
* the Free Software Foundation; either version 2 of the License, or *
109-
* (at your option) any later version. *
110-
* *
111-
***************************************************************************/
112-
113-
11420
#ifndef QGSRASTERSHADERFUNCTION_H
11521
#define QGSRASTERSHADERFUNCTION_H
11622

‎src/core/raster/qgsrastertransparency.h

Lines changed: 0 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -75,157 +75,3 @@ class CORE_EXPORT QgsRasterTransparency
7575

7676
};
7777
#endif
78-
/* **************************************************************************
79-
qgsrastertransparency.h - description
80-
-------------------
81-
begin : Mon Nov 30 2007
82-
copyright : (C) 2007 by Peter J. Ersts
83-
email : ersts@amnh.org
84-
85-
****************************************************************************/
86-
87-
/* **************************************************************************
88-
* *
89-
* This program is free software; you can redistribute it and/or modify *
90-
* it under the terms of the GNU General Public License as published by *
91-
* the Free Software Foundation; either version 2 of the License, or *
92-
* (at your option) any later version. *
93-
* *
94-
***************************************************************************/
95-
#ifndef QGSRASTERTRANSPARENCY_H
96-
#define QGSRASTERTRANSPARENCY_H
97-
98-
class CORE_EXPORT QgsRasterTransparency
99-
{
100-
101-
public:
102-
QgsRasterTransparency();
103-
104-
//
105-
// Structs to hold transparent pixel vlaues
106-
//
107-
struct TransparentThreeValuePixel
108-
{
109-
double red;
110-
double green;
111-
double blue;
112-
double percentTransparent;
113-
};
114-
115-
struct TransparentSingleValuePixel
116-
{
117-
double pixelValue;
118-
double percentTransparent;
119-
};
120-
121-
//
122-
// Initializer, Accessor and mutator for transparency tables.
123-
//
124-
/** \brief Mutator for transparentSingleValuePixelList */
125-
QList<QgsRasterTransparency::TransparentSingleValuePixel> getTransparentSingleValuePixelList();
126-
127-
/** \brief Mutator for transparentThreeValuePixelList */
128-
QList<QgsRasterTransparency::TransparentThreeValuePixel> getTransparentThreeValuePixelList();
129-
130-
/** \brief Reset to the transparency list to a single value */
131-
void initializeTransparentPixelList(double);
132-
133-
/** \brief Reset to the transparency list to a single value */
134-
void initializeTransparentPixelList(double, double, double);
135-
136-
/** \brief Accessor for transparentSingleValuePixelList */
137-
void setTransparentSingleValuePixelList(QList<QgsRasterTransparency::TransparentSingleValuePixel>);
138-
139-
/** \brief Accessor for transparentThreeValuePixelList */
140-
void setTransparentThreeValuePixelList(QList<QgsRasterTransparency::TransparentThreeValuePixel>);
141-
142-
/** \brief Returns the transparency value for a single value Pixel */
143-
int getAlphaValue(double, int theGlobalTransparency=255);
144-
/** \brief Return the transparency value for a RGB Pixel */
145-
int getAlphaValue(double, double, double, int theGlobalTransparency=255);
146-
147-
private:
148-
/** \brief The list to hold transparency values for RGB layers */
149-
QList<QgsRasterTransparency::TransparentThreeValuePixel> mTransparentThreeValuePixelList;
150-
/** \brief The lsit to hold transparency values for single value pixel layers */
151-
QList<QgsRasterTransparency::TransparentSingleValuePixel> mTransparentSingleValuePixelList;
152-
153-
};
154-
#endif
155-
/* **************************************************************************
156-
qgsrastertransparency.h - description
157-
-------------------
158-
begin : Mon Nov 30 2007
159-
copyright : (C) 2007 by Peter J. Ersts
160-
email : ersts@amnh.org
161-
162-
****************************************************************************/
163-
164-
/* **************************************************************************
165-
* *
166-
* This program is free software; you can redistribute it and/or modify *
167-
* it under the terms of the GNU General Public License as published by *
168-
* the Free Software Foundation; either version 2 of the License, or *
169-
* (at your option) any later version. *
170-
* *
171-
***************************************************************************/
172-
#ifndef QGSRASTERTRANSPARENCY_H
173-
#define QGSRASTERTRANSPARENCY_H
174-
175-
class CORE_EXPORT QgsRasterTransparency
176-
{
177-
178-
public:
179-
QgsRasterTransparency();
180-
181-
//
182-
// Structs to hold transparent pixel vlaues
183-
//
184-
struct TransparentThreeValuePixel
185-
{
186-
double red;
187-
double green;
188-
double blue;
189-
double percentTransparent;
190-
};
191-
192-
struct TransparentSingleValuePixel
193-
{
194-
double pixelValue;
195-
double percentTransparent;
196-
};
197-
198-
//
199-
// Initializer, Accessor and mutator for transparency tables.
200-
//
201-
/** \brief Mutator for transparentSingleValuePixelList */
202-
QList<QgsRasterTransparency::TransparentSingleValuePixel> getTransparentSingleValuePixelList();
203-
204-
/** \brief Mutator for transparentThreeValuePixelList */
205-
QList<QgsRasterTransparency::TransparentThreeValuePixel> getTransparentThreeValuePixelList();
206-
207-
/** \brief Reset to the transparency list to a single value */
208-
void initializeTransparentPixelList(double);
209-
210-
/** \brief Reset to the transparency list to a single value */
211-
void initializeTransparentPixelList(double, double, double);
212-
213-
/** \brief Accessor for transparentSingleValuePixelList */
214-
void setTransparentSingleValuePixelList(QList<QgsRasterTransparency::TransparentSingleValuePixel>);
215-
216-
/** \brief Accessor for transparentThreeValuePixelList */
217-
void setTransparentThreeValuePixelList(QList<QgsRasterTransparency::TransparentThreeValuePixel>);
218-
219-
/** \brief Returns the transparency value for a single value Pixel */
220-
int getAlphaValue(double, int theGlobalTransparency=255);
221-
/** \brief Return the transparency value for a RGB Pixel */
222-
int getAlphaValue(double, double, double, int theGlobalTransparency=255);
223-
224-
private:
225-
/** \brief The list to hold transparency values for RGB layers */
226-
QList<QgsRasterTransparency::TransparentThreeValuePixel> mTransparentThreeValuePixelList;
227-
/** \brief The lsit to hold transparency values for single value pixel layers */
228-
QList<QgsRasterTransparency::TransparentSingleValuePixel> mTransparentSingleValuePixelList;
229-
230-
};
231-
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.