VTK
9.2.6
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
-------------------------------------------------------------------------*/
48
49
#ifndef vtkTreeLayoutStrategy_h
50
#define vtkTreeLayoutStrategy_h
51
52
#include "
vtkGraphLayoutStrategy.h
"
53
#include "vtkInfovisLayoutModule.h"
// For export macro
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)
override
;
62
66
void
Layout
()
override
;
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
()
override
;
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
vtkTreeLayoutStrategy
(
const
vtkTreeLayoutStrategy
&) =
delete
;
153
void
operator=(
const
vtkTreeLayoutStrategy
&) =
delete
;
154
};
155
156
#endif
vtkGraphLayoutStrategy::vtkGraphLayoutStrategy
vtkGraphLayoutStrategy()
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkTreeLayoutStrategy::LogSpacingValue
double LogSpacingValue
Definition
vtkTreeLayoutStrategy.h:145
vtkTreeLayoutStrategy::Rotation
double Rotation
Definition
vtkTreeLayoutStrategy.h:148
vtkTreeLayoutStrategy::vtkTreeLayoutStrategy
vtkTreeLayoutStrategy()
vtkTreeLayoutStrategy::New
static vtkTreeLayoutStrategy * New()
vtkTreeLayoutStrategy::Angle
double Angle
Definition
vtkTreeLayoutStrategy.h:143
vtkTreeLayoutStrategy::Layout
void Layout() override
Perform the tree layout.
vtkTreeLayoutStrategy::Radial
bool Radial
Definition
vtkTreeLayoutStrategy.h:144
vtkTreeLayoutStrategy::~vtkTreeLayoutStrategy
~vtkTreeLayoutStrategy() override
vtkTreeLayoutStrategy::DistanceArrayName
char * DistanceArrayName
Definition
vtkTreeLayoutStrategy.h:147
vtkTreeLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTreeLayoutStrategy::ReverseEdges
bool ReverseEdges
Definition
vtkTreeLayoutStrategy.h:149
vtkTreeLayoutStrategy::LeafSpacing
double LeafSpacing
Definition
vtkTreeLayoutStrategy.h:146
vtkGraphLayoutStrategy.h
Generated on Fri Jan 24 2025 00:00:00 for VTK by
1.13.2