VTK
dox
Common
ComputationalGeometry
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
=========================================================================*/
34
#ifndef vtkCardinalSpline_h
35
#define vtkCardinalSpline_h
36
37
#include "vtkCommonComputationalGeometryModule.h"
// For export macro
38
#include "
vtkSpline.h
"
39
40
class
VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT
vtkCardinalSpline
:
public
vtkSpline
41
{
42
public
:
43
static
vtkCardinalSpline
*
New
();
44
45
vtkTypeMacro(
vtkCardinalSpline
,
vtkSpline
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent) VTK_OVERRIDE;
47
51
void
Compute
() VTK_OVERRIDE;
52
56
double
Evaluate (
double
t) VTK_OVERRIDE;
57
61
void
DeepCopy
(
vtkSpline
*s) VTK_OVERRIDE;
62
63
protected:
64
vtkCardinalSpline
();
65
~
vtkCardinalSpline
() VTK_OVERRIDE {}
66
67
void
Fit1D (
int
n,
double
*x,
double
*y,
double
*w,
double
coefficients[][4],
68
int
leftConstraint,
double
leftValue,
int
rightConstraint,
69
double
rightValue);
70
71
void
FitClosed1D (
int
n,
double
*x,
double
*y,
double
*w,
72
double
coefficients[][4]);
73
74
private
:
75
vtkCardinalSpline
(
const
vtkCardinalSpline
&) VTK_DELETE_FUNCTION;
76
void
operator=(
const
vtkCardinalSpline
&) VTK_DELETE_FUNCTION;
77
};
78
79
#endif
80
vtkpiston::DeepCopy
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkSpline::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkSpline
spline abstract class for interpolating splines
Definition:
vtkSpline.h:62
vtkCardinalSpline
computes an interpolating spline using a a Cardinal basis.
Definition:
vtkCardinalSpline.h:40
vtkSpline.h
vtkSpline::Compute
virtual void Compute()=0
Compute the coefficients for the spline.
Generated by
1.8.16