00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QGSGRIDFILEWRITER_H
00019 #define QGSGRIDFILEWRITER_H
00020
00021 #include "qgsrectangle.h"
00022 #include <QString>
00023 #include <QTextStream>
00024
00025 class QgsInterpolator;
00026
00028
00029 class ANALYSIS_EXPORT QgsGridFileWriter
00030 {
00031 public:
00032 QgsGridFileWriter( QgsInterpolator* i, QString outputPath, QgsRectangle extent, int nCols, int nRows, double cellSizeX, double cellSizeY );
00033 ~QgsGridFileWriter();
00034
00039 int writeFile( bool showProgressDialog = false );
00040
00041 private:
00042
00043 QgsGridFileWriter();
00044 int writeHeader( QTextStream& outStream );
00045
00046 QgsInterpolator* mInterpolator;
00047 QString mOutputFilePath;
00048 QgsRectangle mInterpolationExtent;
00049 int mNumColumns;
00050 int mNumRows;
00051
00052 double mCellSizeX;
00053 double mCellSizeY;
00054 };
00055
00056 #endif