XInterpolator

Inherited from SpaceHashBucket,

Inherited by NULL

Friend class NULL

Description

XInterpolator从SpaceHashBucket继承以适配器模式封装了插值器接口,插值器基于空间数据点云构建空间哈希索引,给定任意坐标通过不同插值算法计算得到该坐标下的值,通过继承XInterpolatorMethod可支持扩展不同的插值算法。

Members

Public interface


TypeID m_iMethod = -1

XInterpolatorMethod * m_pMethod = 0


static bool registerMethod(TypeID t, InterpolateCtor ctor)

XInterpolator()

void setMethod(TypeID t)

TypeID getMethod() const

void setDataPoints(vector<XDataPoint> * dataPoints, XCoordSystem * coordSys = 0)

double interpolateAt(const double * pos)

bool interpolateAt(vector<Vector3d> * pts, vector<double> * values)