00001 // Interpolator2D.h: interface for the Interpolator2D class. 00002 // 00004 00005 #if !defined(AFX_INTERPOLATOR2D_H__7B57732B_DAA6_4074_A629_D63E6AE8C451__INCLUDED_) 00006 #define AFX_INTERPOLATOR2D_H__7B57732B_DAA6_4074_A629_D63E6AE8C451__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include "Interpolator.h" 00013 #include "InterpolationData2D.h" 00014 #include <string> 00015 00016 //using namespace std; 00017 namespace Interpolator 00018 { 00020 class Interpolator2D : public Interpolator 00021 { 00022 public: 00023 00024 Interpolator2D(); 00025 00026 Interpolator2D( std::string sName, 00027 std::string sDescription, 00028 std::string sInterpolationType, 00029 InterpolationData2D* mInterpolationData); 00030 00031 virtual ~Interpolator2D(); 00032 virtual double getInterpolatedValue(double dXValue,double dYValue)=0; 00033 virtual InterpolationData2D* getInterpolatedData(); 00034 00035 void findIndexes(double dXValue,double dYValue); 00036 int findXIndex(double dXValue); 00037 int findYIndex(double dYValue); 00038 virtual double compute(double dXValue,double dYValue)=0; 00039 00040 protected: 00041 InterpolationData2D* _mInterpolationData; 00042 00043 private: 00044 00045 // string _sName; 00046 // string _sDescription; 00047 // string _sInterpolationType; 00048 00049 }; 00050 } 00051 #endif // !defined(AFX_INTERPOLATOR2D_H__7B57732B_DAA6_4074_A629_D63E6AE8C451__INCLUDED_)
1.4.5