Quantum GIS API Documentation
1.8
|
00001 /*************************************************************************** 00002 qgsidwinterpolator.h 00003 -------------------- 00004 begin : March 10, 2008 00005 copyright : (C) 2008 by Marco Hugentobler 00006 email : marco dot hugentobler at karto dot baug dot ethz dot ch 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef QGSIDWINTERPOLATOR_H 00019 #define QGSIDWINTERPOLATOR_H 00020 00021 #include "qgsinterpolator.h" 00022 00023 class ANALYSIS_EXPORT QgsIDWInterpolator: public QgsInterpolator 00024 { 00025 public: 00026 QgsIDWInterpolator( const QList<LayerData>& layerData ); 00027 ~QgsIDWInterpolator(); 00028 00034 int interpolatePoint( double x, double y, double& result ); 00035 00036 void setDistanceCoefficient( double p ) {mDistanceCoefficient = p;} 00037 00038 private: 00039 00040 QgsIDWInterpolator(); //forbidden 00041 00045 double mDistanceCoefficient; 00046 }; 00047 00048 #endif