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   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkKochanekSpline.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
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&);  // Not implemented.
00121   void operator=(const vtkKochanekSpline&);  // Not implemented.
00122 };
00123 
00124 #endif
00125