Go::Interpolator Class Reference
['geometry' - a spline library]

Base class for spline interpolators or approximators. More...

#include <Interpolator.h>

Inheritance diagram for Go::Interpolator:

Go::HermiteInterpolator Go::SplineApproximator Go::SplineInterpolator List of all members.

Public Member Functions

virtual ~Interpolator ()
 virtual desctructor assures safe inheritance
virtual void interpolate (int num_points, int dimension, const double *param_start, const double *data_start, std::vector< double > &coefs)=0
 Interpolate or approximate a set of point data by a spline.
virtual const BsplineBasisbasis ()=0
 after the function interpolate() has been successfully run, this function can be called to get the BsplineBasis of the generated curve.

Detailed Description

Base class for spline interpolators or approximators.

Definition at line 47 of file Interpolator.h.


Member Function Documentation

virtual void Go::Interpolator::interpolate ( int  num_points,
int  dimension,
const double *  param_start,
const double *  data_start,
std::vector< double > &  coefs 
) [pure virtual]

Interpolate or approximate a set of point data by a spline.

Parameters:
num_points the number of data points to approximate
dimension the dimension of each data point
param_start pointer to the array where the points' parameters are consecutively stored
data_start pointer to the array where the points are consecutively stored
coefs upon function completion, this vector will contain the control points of the interpolating (or approximating spline). (In order to get access to the associated BsplineBasis, use the function basis().

Implemented in Go::HermiteInterpolator, Go::SplineApproximator, and Go::SplineInterpolator.

virtual const BsplineBasis& Go::Interpolator::basis (  )  [pure virtual]

after the function interpolate() has been successfully run, this function can be called to get the BsplineBasis of the generated curve.

Returns:
a constant reference to the BsplineBasis of the curve previously generated by interpolate().

Implemented in Go::HermiteInterpolator, Go::SplineApproximator, and Go::SplineInterpolator.


The documentation for this class was generated from the following file:
Generated on Mon Jun 11 14:48:19 2007 for GoTools Core Library by  doxygen 1.5.1