VTK  9.3.0
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:
56 
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:
81 
84 
85 private:
87  void operator=(const vtkSpanTreeLayoutStrategy&) = delete;
88 };
89 
90 VTK_ABI_NAMESPACE_END
91 #endif
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition: vtkIndent.h:29
vtkSpanTreeLayout is a strategy for drawing directed graphs that works by first extracting a spanning...
void Layout() override
Perform the layout.
static vtkSpanTreeLayoutStrategy * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphLayoutStrategy * TreeLayout
~vtkSpanTreeLayoutStrategy() override