QgsIDWInterpolator Class Reference

#include <qgsidwinterpolator.h>

Inheritance diagram for QgsIDWInterpolator:

Inheritance graph
Collaboration diagram for QgsIDWInterpolator:

Collaboration graph

List of all members.

Public Member Functions

 QgsIDWInterpolator (const QList< LayerData > &layerData)
 ~QgsIDWInterpolator ()
int interpolatePoint (double x, double y, double &result)
 Calculates interpolation value for map coordinates x, y.
void setDistanceCoefficient (double p)

Private Member Functions

 QgsIDWInterpolator ()

Private Attributes

double mDistanceCoefficient
 The parameter that sets how the values are weighted with distance.

Detailed Description

Definition at line 23 of file qgsidwinterpolator.h.

Constructor & Destructor Documentation

QgsIDWInterpolator::QgsIDWInterpolator ( const QList< LayerData > &  layerData  ) 

Definition at line 22 of file qgsidwinterpolator.cpp.

QgsIDWInterpolator::~QgsIDWInterpolator (  ) 

Definition at line 32 of file qgsidwinterpolator.cpp.

QgsIDWInterpolator::QgsIDWInterpolator (  )  [private]

Definition at line 27 of file qgsidwinterpolator.cpp.

Member Function Documentation

int QgsIDWInterpolator::interpolatePoint ( double  x,
double  y,
double &  result 
) [virtual]

Calculates interpolation value for map coordinates x, y.

x x-coordinate (in map units)
y y-coordinate (in map units)
result out: interpolation result
0 in case of success

Implements QgsInterpolator.

Definition at line 37 of file qgsidwinterpolator.cpp.

References QgsInterpolator::cacheBaseData(), QgsInterpolator::mCachedBaseData, QgsInterpolator::mDataIsCached, mDistanceCoefficient, and MathUtils::min().

void QgsIDWInterpolator::setDistanceCoefficient ( double  p  )  [inline]

Definition at line 36 of file qgsidwinterpolator.h.

Member Data Documentation

The parameter that sets how the values are weighted with distance.

Smaller values mean sharper peaks at the data points. The default is a value of 2

Definition at line 45 of file qgsidwinterpolator.h.

Referenced by interpolatePoint().

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

Generated on Sat Feb 4 19:17:35 2012 for Quantum GIS API Documentation by  doxygen 1.5.6