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

Filtering/vtkCardinalSpline.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCardinalSpline.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 =========================================================================*/
00049 #ifndef __vtkCardinalSpline_h
00050 #define __vtkCardinalSpline_h
00051 
00052 #include "vtkSpline.h"
00053 
00054 class VTK_FILTERING_EXPORT vtkCardinalSpline : public vtkSpline
00055 {
00056 public:
00057   static vtkCardinalSpline *New();
00058 
00059   vtkTypeRevisionMacro(vtkCardinalSpline,vtkSpline);
00060   void PrintSelf(ostream& os, vtkIndent indent);
00061 
00063   void Compute ();
00064 
00066   virtual float Evaluate (float t);
00067 
00069   virtual void DeepCopy(vtkSpline *s);
00070 
00071 protected:
00072   vtkCardinalSpline();
00073   ~vtkCardinalSpline() {}
00074 
00075   void Fit1D (int n, float *x, float *y, float *w, float coefficients[][4],
00076               int leftConstraint, float leftValue, int rightConstraint, 
00077               float rightValue);
00078 
00079   void FitClosed1D (int n, float *x, float *y, float *w, 
00080                     float coefficients[][4]);
00081 
00082 private:
00083   vtkCardinalSpline(const vtkCardinalSpline&);  // Not implemented.
00084   void operator=(const vtkCardinalSpline&);  // Not implemented.
00085 };
00086 
00087 #endif
00088