VTK  9.3.0
vtkCardinalSpline.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
19#ifndef vtkCardinalSpline_h
20#define vtkCardinalSpline_h
21
22#include "vtkCommonComputationalGeometryModule.h" // For export macro
23#include "vtkSpline.h"
24
25VTK_ABI_NAMESPACE_BEGIN
26class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkCardinalSpline : public vtkSpline
27{
28public:
30
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
37 void Compute() override;
38
42 double Evaluate(double t) override;
43
47 void DeepCopy(vtkSpline* s) override;
48
49protected:
51 ~vtkCardinalSpline() override = default;
52
53 void Fit1D(int size, double* x, double* y, double* w, double coefficients[][4],
54 int leftConstraint, double leftValue, int rightConstraint, double rightValue);
55
56 void FitClosed1D(int size, double* x, double* y, double* w, double coefficients[][4]);
57
58private:
59 vtkCardinalSpline(const vtkCardinalSpline&) = delete;
60 void operator=(const vtkCardinalSpline&) = delete;
61};
62
63VTK_ABI_NAMESPACE_END
64#endif
computes an interpolating spline using a a Cardinal basis.
void Fit1D(int size, double *x, double *y, double *w, double coefficients[][4], int leftConstraint, double leftValue, int rightConstraint, double rightValue)
static vtkCardinalSpline * New()
~vtkCardinalSpline() override=default
void Compute() override
Compute Cardinal Splines for each dependent variable.
double Evaluate(double t) override
Evaluate a 1D cardinal spline.
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.
void FitClosed1D(int size, double *x, double *y, double *w, double coefficients[][4])
a simple class to control print indentation
Definition vtkIndent.h:29
spline abstract class for interpolating splines
Definition vtkSpline.h:52