VTK  9.3.20240425
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
49#include "vtkInfovisLayoutModule.h" // For export macro
50
51VTK_ABI_NAMESPACE_BEGIN
52class VTKINFOVISLAYOUT_EXPORT vtkSpanTreeLayoutStrategy : public vtkGraphLayoutStrategy
53{
54public:
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
78protected:
81
84
85private:
87 void operator=(const vtkSpanTreeLayoutStrategy&) = delete;
88};
89
90VTK_ABI_NAMESPACE_END
91#endif
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition vtkIndent.h:108
vtkSpanTreeLayout is a strategy for drawing directed graphs that works by first extracting a spanning...
void Layout() override
Perform the layout.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphLayoutStrategy * TreeLayout
static vtkSpanTreeLayoutStrategy * New()
~vtkSpanTreeLayoutStrategy() override