VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
Layout
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 "vtkInfovisLayoutModule.h"
// For export macro
39
#include "
vtkGraphAlgorithm.h
"
40
#include "
vtkSmartPointer.h
"
// For ivars
41
42
class
vtkSpline
;
43
44
class
VTKINFOVISLAYOUT_EXPORT
vtkSplineGraphEdges
:
public
vtkGraphAlgorithm
45
{
46
public
:
47
static
vtkSplineGraphEdges
*
New
();
48
vtkTypeMacro(
vtkSplineGraphEdges
,
vtkGraphAlgorithm
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent);
50
52
53
virtual
void
SetSpline(
vtkSpline
* s);
54
vtkGetObjectMacro(Spline,
vtkSpline
);
56
57
//BTX
58
enum
59
{
60
BSPLINE = 0,
61
CUSTOM
62
};
63
//ETX
64
66
68
vtkSetMacro(SplineType,
int
);
69
vtkGetMacro(SplineType,
int
);
71
73
74
vtkSetMacro(NumberOfSubdivisions,
vtkIdType
);
75
vtkGetMacro(NumberOfSubdivisions,
vtkIdType
);
77
78
protected
:
79
vtkSplineGraphEdges
();
80
~
vtkSplineGraphEdges
();
81
82
virtual
int
RequestData
(
83
vtkInformation
*,
84
vtkInformationVector
**,
85
vtkInformationVector
*);
86
87
virtual
unsigned
long
GetMTime
();
88
89
void
GeneratePoints(
vtkGraph
* g,
vtkIdType
e);
90
void
GenerateBSpline(
vtkGraph
* g,
vtkIdType
e);
91
92
vtkSpline
*
Spline
;
93
94
int
SplineType
;
95
96
//BTX
97
vtkSmartPointer<vtkSpline>
XSpline
;
98
vtkSmartPointer<vtkSpline>
YSpline
;
99
vtkSmartPointer<vtkSpline>
ZSpline
;
100
//ETX
101
102
vtkIdType
NumberOfSubdivisions
;
103
104
private
:
105
vtkSplineGraphEdges
(
const
vtkSplineGraphEdges
&);
// Not implemented.
106
void
operator=(
const
vtkSplineGraphEdges
&);
// Not implemented.
107
};
108
109
#endif
Generated on Thu May 24 2012 22:22:26 for VTK by
1.8.1