QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
QgsGridFileWriter Class Reference

A class that does interpolation to a grid and writes the results to an ascii grid. More...

#include <qgsgridfilewriter.h>

Collaboration diagram for QgsGridFileWriter:
Collaboration graph
[legend]

Public Member Functions

 QgsGridFileWriter (QgsInterpolator *i, QString outputPath, QgsRectangle extent, int nCols, int nRows, double cellSizeX, double cellSizeY)
 ~QgsGridFileWriter ()
int writeFile (bool showProgressDialog=false)
 Writes the grid file.

Private Member Functions

 QgsGridFileWriter ()
int writeHeader (QTextStream &outStream)

Private Attributes

QgsInterpolatormInterpolator
QString mOutputFilePath
QgsRectangle mInterpolationExtent
int mNumColumns
int mNumRows
double mCellSizeX
double mCellSizeY

Detailed Description

A class that does interpolation to a grid and writes the results to an ascii grid.

Definition at line 29 of file qgsgridfilewriter.h.

Constructor & Destructor Documentation

QgsGridFileWriter::QgsGridFileWriter ( QgsInterpolator i,
QString  outputPath,
QgsRectangle  extent,
int  nCols,
int  nRows,
double  cellSizeX,
double  cellSizeY 
)

Definition at line 23 of file qgsgridfilewriter.cpp.

QgsGridFileWriter::~QgsGridFileWriter ( )

Definition at line 35 of file qgsgridfilewriter.cpp.

QgsGridFileWriter::QgsGridFileWriter ( )
private

Definition at line 30 of file qgsgridfilewriter.cpp.

Member Function Documentation

int QgsGridFileWriter::writeFile ( bool  showProgressDialog = false)

Writes the grid file.

Parameters
showProgressDialogshows a dialog with the possibility to cancel
Returns
0 in case of success

Definition at line 40 of file qgsgridfilewriter.cpp.

References QgsInterpolator::interpolatePoint(), mCellSizeX, mCellSizeY, mInterpolationExtent, mInterpolator, mNumColumns, mNumRows, mOutputFilePath, tr, writeHeader(), QgsRectangle::xMinimum(), and QgsRectangle::yMaximum().

int QgsGridFileWriter::writeHeader ( QTextStream &  outStream)
private

Member Data Documentation

double QgsGridFileWriter::mCellSizeX
private

Definition at line 52 of file qgsgridfilewriter.h.

Referenced by writeFile(), and writeHeader().

double QgsGridFileWriter::mCellSizeY
private

Definition at line 53 of file qgsgridfilewriter.h.

Referenced by writeFile(), and writeHeader().

QgsRectangle QgsGridFileWriter::mInterpolationExtent
private

Definition at line 48 of file qgsgridfilewriter.h.

Referenced by writeFile(), and writeHeader().

QgsInterpolator* QgsGridFileWriter::mInterpolator
private

Definition at line 46 of file qgsgridfilewriter.h.

Referenced by writeFile().

int QgsGridFileWriter::mNumColumns
private

Definition at line 49 of file qgsgridfilewriter.h.

Referenced by writeFile(), and writeHeader().

int QgsGridFileWriter::mNumRows
private

Definition at line 50 of file qgsgridfilewriter.h.

Referenced by writeFile(), and writeHeader().

QString QgsGridFileWriter::mOutputFilePath
private

Definition at line 47 of file qgsgridfilewriter.h.

Referenced by writeFile().


The documentation for this class was generated from the following files: