QGIS API Documentation
2.6.0-Brighton
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
;
38
39
int
bandCount
()
const
;
40
41
QGis::DataType
dataType
(
int
bandNo )
const
;
42
43
bool
setInput
(
QgsRasterInterface
* input );
44
45
QgsRasterBlock
*
block
(
int
bandNo,
const
QgsRectangle
&extent,
int
width,
int
height );
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
;
59
61
void
readXML
(
const
QDomElement& filterElem );
62
63
protected
:
65
QgsRasterResampler
*
mZoomedInResampler
;
67
QgsRasterResampler
*
mZoomedOutResampler
;
68
70
double
mMaxOversampling
;
71
72
private
:
73
};
74
75
#endif // QGSRASTERRESAMPLEFILTER_H
Generated on Fri Oct 31 2014 15:49:46 for QGIS API Documentation by
1.8.1.2