VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
vtkSplineGraphEdges.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSplineGraphEdges.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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
35
#ifndef __vtkSplineGraphEdges_h
36
#define __vtkSplineGraphEdges_h
37
38
#include "
vtkGraphAlgorithm.h
"
39
#include "
vtkSmartPointer.h
"
// For ivars
40
41
class
vtkSpline
;
42
43
class
VTK_INFOVIS_EXPORT
vtkSplineGraphEdges
:
public
vtkGraphAlgorithm
44
{
45
public
:
46
static
vtkSplineGraphEdges
*
New
();
47
vtkTypeMacro(
vtkSplineGraphEdges
,
vtkGraphAlgorithm
);
48
void
PrintSelf
(ostream& os,
vtkIndent
indent);
49
51
52
virtual
void
SetSpline(
vtkSpline
* s);
53
vtkGetObjectMacro(Spline,
vtkSpline
);
55
56
//BTX
57
enum
58
{
59
BSPLINE = 0,
60
CUSTOM
61
};
62
//ETX
63
65
67
vtkSetMacro(SplineType,
int
);
68
vtkGetMacro(SplineType,
int
);
70
72
73
vtkSetMacro(NumberOfSubdivisions,
vtkIdType
);
74
vtkGetMacro(NumberOfSubdivisions,
vtkIdType
);
76
77
protected
:
78
vtkSplineGraphEdges
();
79
~
vtkSplineGraphEdges
();
80
81
virtual
int
RequestData
(
82
vtkInformation
*,
83
vtkInformationVector
**,
84
vtkInformationVector
*);
85
86
virtual
unsigned
long
GetMTime
();
87
88
void
GeneratePoints(
vtkGraph
* g,
vtkIdType
e);
89
void
GenerateBSpline(
vtkGraph
* g,
vtkIdType
e);
90
91
vtkSpline
*
Spline
;
92
93
int
SplineType
;
94
95
//BTX
96
vtkSmartPointer<vtkSpline>
XSpline
;
97
vtkSmartPointer<vtkSpline>
YSpline
;
98
vtkSmartPointer<vtkSpline>
ZSpline
;
99
//ETX
100
101
vtkIdType
NumberOfSubdivisions
;
102
103
private
:
104
vtkSplineGraphEdges
(
const
vtkSplineGraphEdges
&);
// Not implemented.
105
void
operator=(
const
vtkSplineGraphEdges
&);
// Not implemented.
106
};
107
108
#endif
Generated on Wed Nov 21 2012 21:33:58 for VTK by
1.8.2