Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Filtering/vtkKochanekSpline.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00065 #ifndef __vtkKochanekSpline_h
00066 #define __vtkKochanekSpline_h
00067
00068 #include "vtkSpline.h"
00069
00070 class VTK_FILTERING_EXPORT vtkKochanekSpline : public vtkSpline
00071 {
00072 public:
00073 vtkTypeRevisionMacro(vtkKochanekSpline,vtkSpline);
00074 void PrintSelf(ostream& os, vtkIndent indent);
00075
00078 static vtkKochanekSpline *New();
00079
00081 void Compute ();
00082
00084 float Evaluate (float t);
00085
00087
00088 vtkSetMacro(DefaultBias,float);
00089 vtkGetMacro(DefaultBias,float);
00091
00093
00094 vtkSetMacro(DefaultTension,float);
00095 vtkGetMacro(DefaultTension,float);
00097
00099
00100 vtkSetMacro(DefaultContinuity,float);
00101 vtkGetMacro(DefaultContinuity,float);
00103
00105 virtual void DeepCopy(vtkSpline *s);
00106
00107 protected:
00108 vtkKochanekSpline();
00109 ~vtkKochanekSpline() {}
00110
00111 void Fit1D (int n, float *x, float *y, float tension, float bias,
00112 float continuity, float coefficients[][4], int leftConstraint,
00113 float leftValue, int rightConstraint, float rightValue);
00114
00115 float DefaultBias;
00116 float DefaultTension;
00117 float DefaultContinuity;
00118
00119 private:
00120 vtkKochanekSpline(const vtkKochanekSpline&);
00121 void operator=(const vtkKochanekSpline&);
00122 };
00123
00124 #endif
00125