QGIS API Documentation
2.8.2-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
raster
qgsrasterresamplefilter.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrasterresamplefilter.h
3
-------------------
4
begin : December 2011
5
copyright : (C) 2011 by Marco Hugentobler
6
email : marco at sourcepole dot ch
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSRASTERRESAMPLEFILTER_H
19
#define QGSRASTERRESAMPLEFILTER_H
20
21
#include "
qgsrasterdataprovider.h
"
22
#include "
qgsrasterinterface.h
"
23
24
class
QgsRasterResampler
;
25
26
class
QDomElement;
27
31
class
CORE_EXPORT
QgsRasterResampleFilter
:
public
QgsRasterInterface
32
{
33
public
:
34
QgsRasterResampleFilter
(
QgsRasterInterface
*input = 0 );
35
~
QgsRasterResampleFilter
();
36
37
QgsRasterInterface
*
clone
()
const override
;
38
39
int
bandCount
()
const override
;
40
41
QGis::DataType
dataType
(
int
bandNo )
const override
;
42
43
bool
setInput
(
QgsRasterInterface
* input )
override
;
44
45
QgsRasterBlock
*
block
(
int
bandNo,
const
QgsRectangle
&extent,
int
width,
int
height )
override
;
46
48
void
setZoomedInResampler(
QgsRasterResampler
* r );
49
const
QgsRasterResampler
*
zoomedInResampler
()
const
{
return
mZoomedInResampler; }
50
52
void
setZoomedOutResampler(
QgsRasterResampler
* r );
53
const
QgsRasterResampler
*
zoomedOutResampler
()
const
{
return
mZoomedOutResampler; }
54
55
void
setMaxOversampling
(
double
os ) { mMaxOversampling = os; }
56
double
maxOversampling
()
const
{
return
mMaxOversampling; }
57
58
void
writeXML
( QDomDocument& doc, QDomElement& parentElem )
const override
;
59
61
void
readXML
(
const
QDomElement& filterElem )
override
;
62
63
protected
:
65
QgsRasterResampler
*
mZoomedInResampler
;
67
QgsRasterResampler
*
mZoomedOutResampler
;
68
70
double
mMaxOversampling
;
71
72
private
:
73
};
74
75
#endif // QGSRASTERRESAMPLEFILTER_H
Generated on Sun May 10 2015 16:33:25 for QGIS API Documentation by
1.8.1.2