VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
33
#ifndef __vtkCardinalSpline_h
34
#define __vtkCardinalSpline_h
35
36
#include "vtkCommonComputationalGeometryModule.h"
// For export macro
37
#include "
vtkSpline.h
"
38
39
class
VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT
vtkCardinalSpline
:
public
vtkSpline
40
{
41
public
:
42
static
vtkCardinalSpline
*
New
();
43
44
vtkTypeMacro(
vtkCardinalSpline
,
vtkSpline
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
48
void
Compute
();
49
51
virtual
double
Evaluate
(
double
t);
52
54
virtual
void
DeepCopy
(
vtkSpline
*s);
55
56
protected
:
57
vtkCardinalSpline
();
58
~vtkCardinalSpline
() {}
59
60
void
Fit1D (
int
n,
double
*x,
double
*y,
double
*w,
double
coefficients[][4],
61
int
leftConstraint,
double
leftValue,
int
rightConstraint,
62
double
rightValue);
63
64
void
FitClosed1D (
int
n,
double
*x,
double
*y,
double
*w,
65
double
coefficients[][4]);
66
67
private
:
68
vtkCardinalSpline
(
const
vtkCardinalSpline
&);
// Not implemented.
69
void
operator=(
const
vtkCardinalSpline
&);
// Not implemented.
70
};
71
72
#endif
73
Generated on Thu May 24 2012 22:22:08 for VTK by
1.8.1