VTK  9.2.6
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-------------------------------------------------------------------------*/
49#ifndef vtkTreeLayoutStrategy_h
50#define vtkTreeLayoutStrategy_h
51
53#include "vtkInfovisLayoutModule.h" // For export macro
54
55class VTKINFOVISLAYOUT_EXPORT vtkTreeLayoutStrategy : public vtkGraphLayoutStrategy
56{
57public:
59
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
139protected:
142
143 double Angle;
144 bool Radial;
148 double Rotation;
150
151private:
153 void operator=(const vtkTreeLayoutStrategy&) = delete;
154};
155
156#endif
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition vtkIndent.h:40
static vtkTreeLayoutStrategy * New()
void Layout() override
Perform the tree layout.
~vtkTreeLayoutStrategy() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.