VTK  9.1.0
vtkCardinalSpline.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCardinalSpline.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=========================================================================*/
37#ifndef vtkCardinalSpline_h
38#define vtkCardinalSpline_h
39
40#include "vtkCommonComputationalGeometryModule.h" // For export macro
41#include "vtkSpline.h"
42
43class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkCardinalSpline : public vtkSpline
44{
45public:
47
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
54 void Compute() override;
55
59 double Evaluate(double t) override;
60
64 void DeepCopy(vtkSpline* s) override;
65
66protected:
68 ~vtkCardinalSpline() override = default;
69
70 void Fit1D(int size, double* x, double* y, double* w, double coefficients[][4],
71 int leftConstraint, double leftValue, int rightConstraint, double rightValue);
72
73 void FitClosed1D(int size, double* x, double* y, double* w, double coefficients[][4]);
74
75private:
76 vtkCardinalSpline(const vtkCardinalSpline&) = delete;
77 void operator=(const vtkCardinalSpline&) = delete;
78};
79
80#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:43
spline abstract class for interpolating splines
Definition: vtkSpline.h:63
@ size
Definition: vtkX3D.h:259