VTK
dox
Infovis
Layout
vtkTreeLayoutStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTreeLayoutStrategy.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
-------------------------------------------------------------------------*/
49
#ifndef vtkTreeLayoutStrategy_h
50
#define vtkTreeLayoutStrategy_h
51
52
#include "vtkInfovisLayoutModule.h"
// For export macro
53
#include "
vtkGraphLayoutStrategy.h
"
54
55
class
VTKINFOVISLAYOUT_EXPORT
vtkTreeLayoutStrategy
:
public
vtkGraphLayoutStrategy
56
{
57
public
:
58
static
vtkTreeLayoutStrategy
*
New
();
59
60
vtkTypeMacro(
vtkTreeLayoutStrategy
,
vtkGraphLayoutStrategy
);
61
void
PrintSelf
(ostream& os,
vtkIndent
indent);
62
66
void
Layout
();
67
69
74
vtkSetClampMacro(Angle,
double
, 0, 360);
75
vtkGetMacro(Angle,
double
);
77
79
84
vtkSetMacro
(Radial,
bool
);
85
vtkGetMacro(Radial,
bool
);
86
vtkBooleanMacro
(Radial,
bool
);
88
90
96
vtkSetMacro
(LogSpacingValue,
double
);
97
vtkGetMacro(LogSpacingValue,
double
);
99
101
106
vtkSetClampMacro(LeafSpacing,
double
, 0.0, 1.0);
107
vtkGetMacro(LeafSpacing,
double
);
109
111
115
vtkSetStringMacro(DistanceArrayName);
116
vtkGetStringMacro
(DistanceArrayName);
118
120
124
vtkSetMacro
(Rotation,
double
);
125
vtkGetMacro(Rotation,
double
);
127
129
134
vtkSetMacro
(ReverseEdges,
bool
);
135
vtkGetMacro(ReverseEdges,
bool
);
136
vtkBooleanMacro
(ReverseEdges,
bool
);
138
139
protected
:
140
vtkTreeLayoutStrategy
();
141
~vtkTreeLayoutStrategy
();
142
143
double
Angle
;
144
bool
Radial
;
145
double
LogSpacingValue
;
146
double
LeafSpacing
;
147
char
*
DistanceArrayName
;
148
double
Rotation
;
149
bool
ReverseEdges
;
150
151
private
:
152
153
vtkTreeLayoutStrategy
(
const
vtkTreeLayoutStrategy
&) VTK_DELETE_FUNCTION;
154
void
operator=(
const
vtkTreeLayoutStrategy
&) VTK_DELETE_FUNCTION;
155
};
156
157
#endif
158
vtkTreeLayoutStrategy::~vtkTreeLayoutStrategy
~vtkTreeLayoutStrategy()
vtkTreeLayoutStrategy::Radial
bool Radial
Definition:
vtkTreeLayoutStrategy.h:144
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition:
vtkGraphLayoutStrategy.h:46
vtkTreeLayoutStrategy::LogSpacingValue
double LogSpacingValue
Definition:
vtkTreeLayoutStrategy.h:145
vtkTreeLayoutStrategy::DistanceArrayName
char * DistanceArrayName
Definition:
vtkTreeLayoutStrategy.h:147
vtkTreeLayoutStrategy::Rotation
double Rotation
Definition:
vtkTreeLayoutStrategy.h:148
vtkTreeLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTreeLayoutStrategy::Layout
void Layout()
Perform the tree layout.
vtkTreeLayoutStrategy::New
static vtkTreeLayoutStrategy * New()
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkTreeLayoutStrategy::ReverseEdges
bool ReverseEdges
Definition:
vtkTreeLayoutStrategy.h:149
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkGraphLayoutStrategy.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTreeLayoutStrategy::vtkTreeLayoutStrategy
vtkTreeLayoutStrategy()
vtkTreeLayoutStrategy::LeafSpacing
double LeafSpacing
Definition:
vtkTreeLayoutStrategy.h:146
vtkTreeLayoutStrategy::Angle
double Angle
Definition:
vtkTreeLayoutStrategy.h:143
vtkTreeLayoutStrategy
hierarchical layout
Definition:
vtkTreeLayoutStrategy.h:56
Generated by
1.8.20