VTK
dox
Infovis
Layout
vtkSpanTreeLayoutStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSpanTreeLayoutStrategy.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
//-------------------------------------------------------------------------
20
65
#ifndef vtkSpanTreeLayoutStrategy_h
66
#define vtkSpanTreeLayoutStrategy_h
67
68
#include "vtkInfovisLayoutModule.h"
// For export macro
69
#include "
vtkGraphLayoutStrategy.h
"
70
71
class
VTKINFOVISLAYOUT_EXPORT
vtkSpanTreeLayoutStrategy
:
public
vtkGraphLayoutStrategy
72
{
73
public
:
74
static
vtkSpanTreeLayoutStrategy
*
New
();
75
76
vtkTypeMacro(
vtkSpanTreeLayoutStrategy
,
vtkGraphLayoutStrategy
);
77
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
78
80
87
vtkSetMacro(DepthFirstSpanningTree,
bool
);
88
vtkGetMacro(DepthFirstSpanningTree,
bool
);
89
vtkBooleanMacro(DepthFirstSpanningTree,
bool
);
91
95
void
Layout
()
override
;
96
97
protected
:
98
vtkSpanTreeLayoutStrategy
();
99
~
vtkSpanTreeLayoutStrategy
()
override
;
100
101
vtkGraphLayoutStrategy
*
TreeLayout
;
102
bool
DepthFirstSpanningTree
;
103
104
private
:
105
vtkSpanTreeLayoutStrategy
(
const
vtkSpanTreeLayoutStrategy
&) =
delete
;
106
void
operator=(
const
vtkSpanTreeLayoutStrategy
&) =
delete
;
107
};
108
109
#endif
110
vtkSpanTreeLayoutStrategy
Definition:
vtkSpanTreeLayoutStrategy.h:71
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition:
vtkGraphLayoutStrategy.h:45
vtkGraphLayoutStrategy::Layout
virtual void Layout()=0
This is the layout method where the graph that was set in SetGraph() is laid out.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkGraphLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSpanTreeLayoutStrategy::TreeLayout
vtkGraphLayoutStrategy * TreeLayout
Definition:
vtkSpanTreeLayoutStrategy.h:101
vtkGraphLayoutStrategy.h
vtkSpanTreeLayoutStrategy::DepthFirstSpanningTree
bool DepthFirstSpanningTree
Definition:
vtkSpanTreeLayoutStrategy.h:102
Generated by
1.8.16