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=========================================================================*/
28#ifndef vtkCardinalSpline_h
29#define vtkCardinalSpline_h
30
31#include "vtkCommonComputationalGeometryModule.h" // For export macro
32#include "vtkSpline.h"
33
34class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkCardinalSpline : public vtkSpline
35{
36public:
38
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
45 void Compute() override;
46
50 double Evaluate(double t) override;
51
55 void DeepCopy(vtkSpline* s) override;
56
57protected:
59 ~vtkCardinalSpline() override = default;
60
61 void Fit1D(int size, double* x, double* y, double* w, double coefficients[][4],
62 int leftConstraint, double leftValue, int rightConstraint, double rightValue);
63
64 void FitClosed1D(int size, double* x, double* y, double* w, double coefficients[][4]);
65
66private:
67 vtkCardinalSpline(const vtkCardinalSpline&) = delete;
68 void operator=(const vtkCardinalSpline&) = delete;
69};
70
71#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:34
spline abstract class for interpolating splines
Definition: vtkSpline.h:63
@ size
Definition: vtkX3D.h:259