Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | 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 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00045 #ifndef __vtkCardinalSpline_h
00046 #define __vtkCardinalSpline_h
00047 
00048 #include "vtkSpline.h"
00049 
00050 class VTK_FILTERING_EXPORT vtkCardinalSpline : public vtkSpline
00051 {
00052 public:
00053   static vtkCardinalSpline *New();
00054 
00055   vtkTypeRevisionMacro(vtkCardinalSpline,vtkSpline);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059   void Compute ();
00060 
00062   virtual double Evaluate (double t);
00063 
00065   virtual void DeepCopy(vtkSpline *s);
00066 
00067 protected:
00068   vtkCardinalSpline();
00069   ~vtkCardinalSpline() {}
00070 
00071   void Fit1D (int n, double *x, double *y, double *w, double coefficients[][4],
00072               int leftConstraint, double leftValue, int rightConstraint, 
00073               double rightValue);
00074 
00075   void FitClosed1D (int n, double *x, double *y, double *w, 
00076                     double coefficients[][4]);
00077 
00078 private:
00079   vtkCardinalSpline(const vtkCardinalSpline&);  // Not implemented.
00080   void operator=(const vtkCardinalSpline&);  // Not implemented.
00081 };
00082 
00083 #endif
00084