Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/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 =========================================================================*/ 00054 #ifndef __vtkKochanekSpline_h 00055 #define __vtkKochanekSpline_h 00056 00057 #include "vtkSpline.h" 00058 00059 class VTK_FILTERING_EXPORT vtkKochanekSpline : public vtkSpline 00060 { 00061 public: 00062 vtkTypeRevisionMacro(vtkKochanekSpline,vtkSpline); 00063 void PrintSelf(ostream& os, vtkIndent indent); 00064 00067 static vtkKochanekSpline *New(); 00068 00070 void Compute (); 00071 00073 float Evaluate (float t); 00074 00076 00077 vtkSetMacro(DefaultBias,float); 00078 vtkGetMacro(DefaultBias,float); 00080 00082 00083 vtkSetMacro(DefaultTension,float); 00084 vtkGetMacro(DefaultTension,float); 00086 00088 00089 vtkSetMacro(DefaultContinuity,float); 00090 vtkGetMacro(DefaultContinuity,float); 00092 00094 virtual void DeepCopy(vtkSpline *s); 00095 00096 protected: 00097 vtkKochanekSpline(); 00098 ~vtkKochanekSpline() {} 00099 00100 void Fit1D (int n, float *x, float *y, float tension, float bias, 00101 float continuity, float coefficients[][4], int leftConstraint, 00102 float leftValue, int rightConstraint, float rightValue); 00103 00104 float DefaultBias; 00105 float DefaultTension; 00106 float DefaultContinuity; 00107 00108 private: 00109 vtkKochanekSpline(const vtkKochanekSpline&); // Not implemented. 00110 void operator=(const vtkKochanekSpline&); // Not implemented. 00111 }; 00112 00113 #endif 00114