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

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 =========================================================================*/
00037 #ifndef __vtkCardinalSpline_h
00038 #define __vtkCardinalSpline_h
00039 
00040 #include "vtkSpline.h"
00041 
00042 class VTK_FILTERING_EXPORT vtkCardinalSpline : public vtkSpline
00043 {
00044 public:
00045   static vtkCardinalSpline *New();
00046 
00047   vtkTypeRevisionMacro(vtkCardinalSpline,vtkSpline);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051   void Compute ();
00052 
00054   virtual float Evaluate (float t);
00055 
00057   virtual void DeepCopy(vtkSpline *s);
00058 
00059 protected:
00060   vtkCardinalSpline();
00061   ~vtkCardinalSpline() {}
00062 
00063   void Fit1D (int n, float *x, float *y, float *w, float coefficients[][4],
00064               int leftConstraint, float leftValue, int rightConstraint, 
00065               float rightValue);
00066 
00067   void FitClosed1D (int n, float *x, float *y, float *w, 
00068                     float coefficients[][4]);
00069 
00070 private:
00071   vtkCardinalSpline(const vtkCardinalSpline&);  // Not implemented.
00072   void operator=(const vtkCardinalSpline&);  // Not implemented.
00073 };
00074 
00075 #endif
00076