VTK  9.1.0
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=========================================================================*/
54#ifndef vtkKochanekSpline_h
55#define vtkKochanekSpline_h
56
57#include "vtkCommonComputationalGeometryModule.h" // For export macro
58#include "vtkSpline.h"
59
60class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkKochanekSpline : public vtkSpline
61{
62public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65
71
75 void Compute() override;
76
80 double Evaluate(double t) override;
81
83
86 vtkSetMacro(DefaultBias, double);
87 vtkGetMacro(DefaultBias, double);
89
91
94 vtkSetMacro(DefaultTension, double);
95 vtkGetMacro(DefaultTension, double);
97
99
102 vtkSetMacro(DefaultContinuity, double);
103 vtkGetMacro(DefaultContinuity, double);
105
109 void DeepCopy(vtkSpline* s) override;
110
111protected:
113 ~vtkKochanekSpline() override = default;
114
115 void Fit1D(int size, double* x, double* y, double tension, double bias, double continuity,
116 double coefficients[][4], int leftConstraint, double leftValue, int rightConstraint,
117 double rightValue);
118
122
123private:
124 vtkKochanekSpline(const vtkKochanekSpline&) = delete;
125 void operator=(const vtkKochanekSpline&) = delete;
126};
127
128#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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
@ size
Definition: vtkX3D.h:259