VTK: Infovis/Layout/vtkSpanTreeLayoutStrategy.h Source File

| VTK 9.3.1

vtkSpanTreeLayoutStrategy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
45 #ifndef vtkSpanTreeLayoutStrategy_h
46 #define vtkSpanTreeLayoutStrategy_h
47
48 #include "vtkGraphLayoutStrategy.h"
49 #include "vtkInfovisLayoutModule.h" // For export macro
50
51 VTK_ABI_NAMESPACE_BEGIN
52 class VTKINFOVISLAYOUT_EXPORT vtkSpanTreeLayoutStrategy : public vtkGraphLayoutStrategy
53 {
54 public:
55 static vtkSpanTreeLayoutStrategy* New();
56
57 vtkTypeMacro(vtkSpanTreeLayoutStrategy, vtkGraphLayoutStrategy);
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
61
68 vtkSetMacro(DepthFirstSpanningTree, bool);
69 vtkGetMacro(DepthFirstSpanningTree, bool);
70 vtkBooleanMacro(DepthFirstSpanningTree, bool);
72
76 void Layout() override;
77
78 protected:
79 vtkSpanTreeLayoutStrategy();
80 ~vtkSpanTreeLayoutStrategy() override;
81
82 vtkGraphLayoutStrategy* TreeLayout;
83 bool DepthFirstSpanningTree;
84
85 private:
86 vtkSpanTreeLayoutStrategy(const vtkSpanTreeLayoutStrategy&) = delete;
87 void operator=(const vtkSpanTreeLayoutStrategy&) = delete;
88 };
89
90 VTK_ABI_NAMESPACE_END
91 #endif
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:40
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkSpanTreeLayoutStrategy
vtkSpanTreeLayout is a strategy for drawing directed graphs that works by first extracting a spanning...
Definition: vtkSpanTreeLayoutStrategy.h:53
vtkSpanTreeLayoutStrategy::vtkSpanTreeLayoutStrategy
vtkSpanTreeLayoutStrategy()
vtkSpanTreeLayoutStrategy::Layout
void Layout() override
Perform the layout.
vtkSpanTreeLayoutStrategy::New
static vtkSpanTreeLayoutStrategy * New()
vtkSpanTreeLayoutStrategy::DepthFirstSpanningTree
bool DepthFirstSpanningTree
Definition: vtkSpanTreeLayoutStrategy.h:83
vtkSpanTreeLayoutStrategy::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:82
vtkSpanTreeLayoutStrategy::~vtkSpanTreeLayoutStrategy
~vtkSpanTreeLayoutStrategy() override
vtkGraphLayoutStrategy.h