VTK
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 
52 #include "vtkInfovisLayoutModule.h" // For export macro
53 #include "vtkGraphLayoutStrategy.h"
54 
55 class VTKINFOVISLAYOUT_EXPORT vtkTreeLayoutStrategy : public vtkGraphLayoutStrategy
56 {
57 public:
58  static vtkTreeLayoutStrategy *New();
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 
139 protected:
141  ~vtkTreeLayoutStrategy() override;
142 
143  double Angle;
144  bool Radial;
146  double LeafSpacing;
148  double Rotation;
150 
151 private:
152 
154  void operator=(const vtkTreeLayoutStrategy&) = delete;
155 };
156 
157 #endif
158 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Layout()=0
This is the layout method where the graph that was set in SetGraph() is laid out. ...
hierarchical layout