VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
vtkCosmicTreeLayoutStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCosmicTreeLayoutStrategy.h
5
6
=========================================================================*/
7
/*----------------------------------------------------------------------------
8
Copyright (c) Sandia Corporation
9
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
10
----------------------------------------------------------------------------*/
32
#ifndef __vtkCosmicTreeLayoutStrategy_h
33
#define __vtkCosmicTreeLayoutStrategy_h
34
35
#include "
vtkGraphLayoutStrategy.h
"
36
37
class
vtkDoubleArray
;
38
class
vtkDataArray
;
39
class
vtkPoints
;
40
class
vtkTree
;
41
42
class
VTK_INFOVIS_EXPORT
vtkCosmicTreeLayoutStrategy
:
public
vtkGraphLayoutStrategy
43
{
44
public
:
45
static
vtkCosmicTreeLayoutStrategy
*
New
();
46
virtual
void
PrintSelf
( ostream& os,
vtkIndent
indent );
47
vtkTypeMacro(
vtkCosmicTreeLayoutStrategy
,
vtkGraphLayoutStrategy
);
48
50
virtual
void
Layout
();
51
53
58
vtkSetMacro(SizeLeafNodesOnly,
int
);
59
vtkGetMacro(SizeLeafNodesOnly,
int
);
60
vtkBooleanMacro(SizeLeafNodesOnly,
int
);
62
64
69
vtkSetMacro(LayoutDepth,
int
);
70
vtkGetMacro(LayoutDepth,
int
);
72
74
80
vtkSetMacro(LayoutRoot,
vtkIdType
);
81
vtkGetMacro(LayoutRoot,
vtkIdType
);
83
85
88
vtkSetStringMacro(NodeSizeArrayName);
89
vtkGetStringMacro(NodeSizeArrayName);
91
92
protected
:
93
94
//BTX
96
enum
RadiusMode
97
{
98
NONE
,
99
LEAVES
,
100
ALL
101
};
102
//ETX
103
104
vtkCosmicTreeLayoutStrategy
();
105
virtual
~
vtkCosmicTreeLayoutStrategy
();
106
107
//BTX
109
110
void
LayoutChildren(
111
vtkTree
* tree,
vtkPoints
* newPoints,
vtkDoubleArray
* radii,
vtkDoubleArray
*
scale
,
112
vtkIdType
root,
int
depth, RadiusMode
mode
);
114
116
120
void
OffsetChildren(
121
vtkTree
* tree,
vtkPoints
* pts,
vtkDoubleArray
* radii,
vtkDoubleArray
*
scale
,
122
double
parent[4],
vtkIdType
root,
int
depth, RadiusMode
mode
);
123
//ETX
125
134
vtkDoubleArray
* CreateRadii(
vtkIdType
numVertices,
double
initialValue,
vtkDataArray
* inputRadii );
135
140
vtkDoubleArray
* CreateScaleFactors(
vtkIdType
numVertices );
141
142
int
SizeLeafNodesOnly
;
143
int
LayoutDepth
;
144
vtkIdType
LayoutRoot
;
145
char
*
NodeSizeArrayName
;
146
147
private
:
148
vtkCosmicTreeLayoutStrategy
(
const
vtkCosmicTreeLayoutStrategy
& );
// Not implemented.
149
void
operator = (
const
vtkCosmicTreeLayoutStrategy
& );
// Not implemented.
150
};
151
152
#endif // __vtkCosmicTreeLayoutStrategy_h
Generated on Wed Nov 21 2012 21:33:57 for VTK by
1.8.2