Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 =========================================================================*/
00066 #ifndef __vtkKochanekSpline_h
00067 #define __vtkKochanekSpline_h
00068 
00069 #include "vtkSpline.h"
00070 
00071 class VTK_FILTERING_EXPORT vtkKochanekSpline : public vtkSpline
00072 {
00073 public:
00074   vtkTypeRevisionMacro(vtkKochanekSpline,vtkSpline);
00075   void PrintSelf(ostream& os, vtkIndent indent);
00076 
00079   static vtkKochanekSpline *New();
00080 
00082   void Compute ();
00083   
00085   float Evaluate (float t);
00086 
00088 
00089   vtkSetMacro(DefaultBias,float);
00090   vtkGetMacro(DefaultBias,float);
00092 
00094 
00095   vtkSetMacro(DefaultTension,float);
00096   vtkGetMacro(DefaultTension,float);
00098 
00100 
00101   vtkSetMacro(DefaultContinuity,float);
00102   vtkGetMacro(DefaultContinuity,float);
00104 
00106   virtual void DeepCopy(vtkSpline *s);
00107 
00108 protected:
00109   vtkKochanekSpline();
00110   ~vtkKochanekSpline() {}
00111 
00112   void Fit1D (int n, float *x, float *y, float tension, float bias, 
00113               float continuity, float coefficients[][4], int leftConstraint, 
00114               float leftValue, int rightConstraint, float rightValue);
00115 
00116   float DefaultBias;
00117   float DefaultTension;
00118   float DefaultContinuity;
00119 
00120 private:
00121   vtkKochanekSpline(const vtkKochanekSpline&);  // Not implemented.
00122   void operator=(const vtkKochanekSpline&);  // Not implemented.
00123 };
00124 
00125 #endif
00126