VTK  9.2.6
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=========================================================================*/
45#ifndef vtkKochanekSpline_h
46#define vtkKochanekSpline_h
47
48#include "vtkCommonComputationalGeometryModule.h" // For export macro
49#include "vtkSpline.h"
50
51class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkKochanekSpline : public vtkSpline
52{
53public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
62
66 void Compute() override;
67
71 double Evaluate(double t) override;
72
74
77 vtkSetMacro(DefaultBias, double);
78 vtkGetMacro(DefaultBias, double);
80
82
85 vtkSetMacro(DefaultTension, double);
86 vtkGetMacro(DefaultTension, double);
88
90
93 vtkSetMacro(DefaultContinuity, double);
94 vtkGetMacro(DefaultContinuity, double);
96
100 void DeepCopy(vtkSpline* s) override;
101
102protected:
104 ~vtkKochanekSpline() override = default;
105
106 void Fit1D(int size, double* x, double* y, double tension, double bias, double continuity,
107 double coefficients[][4], int leftConstraint, double leftValue, int rightConstraint,
108 double rightValue);
109
113
114private:
115 vtkKochanekSpline(const vtkKochanekSpline&) = delete;
116 void operator=(const vtkKochanekSpline&) = delete;
117};
118
119#endif
a simple class to control print indentation
Definition vtkIndent.h:34
computes an interpolating spline using a Kochanek basis.
double Evaluate(double t) override
Evaluate a 1D Kochanek spline.
void Fit1D(int size, double *x, double *y, double tension, double bias, double continuity, double coefficients[][4], int leftConstraint, double leftValue, int rightConstraint, double rightValue)
void Compute() override
Compute Kochanek Spline coefficients.
~vtkKochanekSpline() override=default
void DeepCopy(vtkSpline *s) override
Deep copy of cardinal spline data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkKochanekSpline * New()
Construct a KochanekSpline with the following defaults: DefaultBias = 0, DefaultTension = 0,...
spline abstract class for interpolating splines
Definition vtkSpline.h:63