vtkCardinalSpline.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00045 #ifndef __vtkCardinalSpline_h
00046 #define __vtkCardinalSpline_h
00047
00048 #include "vtkSpline.h"
00049
00050 class VTK_FILTERING_EXPORT vtkCardinalSpline : public vtkSpline
00051 {
00052 public:
00053 static vtkCardinalSpline *New();
00054
00055 vtkTypeRevisionMacro(vtkCardinalSpline,vtkSpline);
00056 void PrintSelf(ostream& os, vtkIndent indent);
00057
00059 void Compute ();
00060
00062 virtual double Evaluate (double t);
00063
00065 virtual void DeepCopy(vtkSpline *s);
00066
00067 protected:
00068 vtkCardinalSpline();
00069 ~vtkCardinalSpline() {}
00070
00071 void Fit1D (int n, double *x, double *y, double *w, double coefficients[][4],
00072 int leftConstraint, double leftValue, int rightConstraint,
00073 double rightValue);
00074
00075 void FitClosed1D (int n, double *x, double *y, double *w,
00076 double coefficients[][4]);
00077
00078 private:
00079 vtkCardinalSpline(const vtkCardinalSpline&);
00080 void operator=(const vtkCardinalSpline&);
00081 };
00082
00083 #endif
00084