00001 // FourNearestNeighboursMeanInterpolator2D.h: interface for the FourNearestNeighboursMeanInterpolator2D class. 00002 // 00004 00005 #if !defined(AFX_FOURNEARESTNEIGHBOURSMEANINTERPOLATOR2D_H__557E6450_2A9A_4C96_959F_C36356FFF0E8__INCLUDED_) 00006 #define AFX_FOURNEARESTNEIGHBOURSMEANINTERPOLATOR2D_H__557E6450_2A9A_4C96_959F_C36356FFF0E8__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include "NearestNeighbourInterpolator2D.h" 00013 00014 namespace Interpolator 00015 { 00017 class FourNearestNeighboursMeanInterpolator2D : public NearestNeighbourInterpolator2D 00018 { 00019 public: 00020 FourNearestNeighboursMeanInterpolator2D(); 00021 virtual ~FourNearestNeighboursMeanInterpolator2D(); 00022 00023 FourNearestNeighboursMeanInterpolator2D( 00024 std::string sName, 00025 std::string sDescription, 00026 InterpolationData2D* mInterpolationData); 00027 00028 virtual double getInterpolatedValue(double dXValue,double dYValue); 00029 private: 00030 virtual double compute(double dXValue,double dYValue); 00031 }; 00032 } 00033 #endif // !defined(AFX_FOURNEARESTNEIGHBOURSMEANINTERPOLATOR2D_H__557E6450_2A9A_4C96_959F_C36356FFF0E8__INCLUDED_)
1.4.5