Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00048 #ifndef __vtkCardinalSpline_h
    00049 #define __vtkCardinalSpline_h
    00050
    00051 #include "vtkSpline.h"
    00052
    00053 class VTK_FILTERING_EXPORT vtkCardinalSpline : public vtkSpline
    00054 {
    00055 public:
    00056   static vtkCardinalSpline *New();
    00057
    00058   vtkTypeRevisionMacro(vtkCardinalSpline,vtkSpline);
    00059   void PrintSelf(ostream& os, vtkIndent indent);
    00060
    00062   void Compute ();
    00063
    00065   virtual float Evaluate (float t);
    00066
    00068   virtual void DeepCopy(vtkSpline *s);
    00069
    00070 protected:
    00071   vtkCardinalSpline();
    00072   ~vtkCardinalSpline() {}
    00073
    00074   void Fit1D (int n, float *x, float *y, float *w, float coefficients[][4],
    00075               int leftConstraint, float leftValue, int rightConstraint,
    00076               float rightValue);
    00077
    00078   void FitClosed1D (int n, float *x, float *y, float *w,
    00079                     float coefficients[][4]);
    00080
    00081 private:
    00082   vtkCardinalSpline(const vtkCardinalSpline&);  // Not implemented.
    00083   void operator=(const vtkCardinalSpline&);  // Not implemented.
    00084 };
    00085
    00086 #endif
    00087