Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
analysis
raster
qgsninecellfilter.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsninecellfilter.h - description
3
-------------------
4
begin : August 6th, 2009
5
copyright : (C) 2009 by Marco Hugentobler
6
email : marco dot hugentobler at karto dot baug dot ethz 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 QGSNINECELLFILTER_H
19
#define QGSNINECELLFILTER_H
20
21
#include <QString>
22
#include "gdal.h"
23
24
class
QProgressDialog;
25
30
class
ANALYSIS_EXPORT
QgsNineCellFilter
31
{
32
public
:
34
QgsNineCellFilter
(
const
QString& inputFile,
const
QString& outputFile,
const
QString& outputFormat );
35
virtual
~
QgsNineCellFilter
();
39
int
processRaster( QProgressDialog* p );
40
41
private
:
42
//default constructor forbidden. We need input file, output file and format obligatory
43
QgsNineCellFilter
();
44
46
GDALDatasetH openInputFile(
int
& nCellsX,
int
& nCellsY );
49
GDALDriverH openOutputDriver();
52
GDALDatasetH openOutputFile( GDALDatasetH inputDataset, GDALDriverH outputDriver );
53
54
protected
:
57
virtual
float
processNineCellWindow(
float
* x11,
float
* x21,
float
* x31, \
58
float
* x12,
float
* x22,
float
* x32,
float
* x13,
float
* x23,
float
* x33 ) = 0;
59
60
QString
mInputFile
;
61
QString
mOutputFile
;
62
QString
mOutputFormat
;
63
64
double
mCellSizeX
;
65
double
mCellSizeY
;
67
float
mInputNodataValue
;
69
float
mOutputNodataValue
;
70
};
71
72
#endif // QGSNINECELLFILTER_H
Generated on Wed Jun 13 2012 13:54:10 for Quantum GIS API Documentation by
1.8.1