interpolater.h
来自「克里金、反距离插值算法_栅格图等值线填充等」· C头文件 代码 · 共 39 行
H
39 行
// Interpolater.h: interface for the Interpolater class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_INTERPOLATER_H__D0C4FC82_70D0_461D_8D5D_A5718F4D75DF__INCLUDED_)
#define AFX_INTERPOLATER_H__D0C4FC82_70D0_461D_8D5D_A5718F4D75DF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
#include <cassert>
using namespace std;
#include "BaseException.h"
#include "BaseData.h"
class InterpolaterException : public BaseException
{
public:
InterpolaterException(string message) throw() : BaseException(message) {}
InterpolaterException(string message, string location) throw() : BaseException(message, location) {}
};
template<class ForwardIterator>
class TInterpolater
{
public:
virtual ~TInterpolater() {}
virtual double GetInterpolatedZ(double xpos, double ypos, ForwardIterator first, ForwardIterator last)
throw(InterpolaterException) = 0;
};
typedef TInterpolater<Point3D*> Interpolater;
#endif // !defined(AFX_INTERPOLATER_H__D0C4FC82_70D0_461D_8D5D_A5718F4D75DF__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?