VTK
vtkKochanekSpline.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkKochanekSpline.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
50 #ifndef __vtkKochanekSpline_h
51 #define __vtkKochanekSpline_h
52 
53 #include "vtkSpline.h"
54 
55 class VTK_FILTERING_EXPORT vtkKochanekSpline : public vtkSpline
56 {
57 public:
58  vtkTypeMacro(vtkKochanekSpline,vtkSpline);
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
63  static vtkKochanekSpline *New();
64 
66  void Compute ();
67 
69  double Evaluate (double t);
70 
72 
73  vtkSetMacro(DefaultBias,double);
74  vtkGetMacro(DefaultBias,double);
76 
78 
79  vtkSetMacro(DefaultTension,double);
80  vtkGetMacro(DefaultTension,double);
82 
84 
85  vtkSetMacro(DefaultContinuity,double);
86  vtkGetMacro(DefaultContinuity,double);
88 
90  virtual void DeepCopy(vtkSpline *s);
91 
92 protected:
95 
96  void Fit1D (int n, double *x, double *y, double tension, double bias,
97  double continuity, double coefficients[][4], int leftConstraint,
98  double leftValue, int rightConstraint, double rightValue);
99 
100  double DefaultBias;
103 
104 private:
105  vtkKochanekSpline(const vtkKochanekSpline&); // Not implemented.
106  void operator=(const vtkKochanekSpline&); // Not implemented.
107 };
108 
109 #endif
110 
computes an interpolating spline using a Kochanek basis.
#define VTK_FILTERING_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:37