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=========================================================================*/
97#ifndef vtkKochanekSpline_h
98#define vtkKochanekSpline_h
99
100#include "vtkCommonComputationalGeometryModule.h" // For export macro
101#include "vtkSpline.h"
102
103class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkKochanekSpline : public vtkSpline
104{
105public:
107 void PrintSelf(ostream& os, vtkIndent indent) override;
108
114
118 void Compute() override;
119
123 double Evaluate(double t) override;
124
126
129 vtkSetMacro(DefaultBias, double);
130 vtkGetMacro(DefaultBias, double);
132
134
137 vtkSetMacro(DefaultTension, double);
138 vtkGetMacro(DefaultTension, double);
140
142
145 vtkSetMacro(DefaultContinuity, double);
146 vtkGetMacro(DefaultContinuity, double);
148
152 void DeepCopy(vtkSpline* s) override;
153
154protected:
156 ~vtkKochanekSpline() override = default;
157
158 void Fit1D(int size, double* x, double* y, double tension, double bias, double continuity,
159 double coefficients[][4], int leftConstraint, double leftValue, int rightConstraint,
160 double rightValue);
161
165
166private:
167 vtkKochanekSpline(const vtkKochanekSpline&) = delete;
168 void operator=(const vtkKochanekSpline&) = delete;
169};
170
171#endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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:82
@ size
Definition: vtkX3D.h:259