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 -------------------------------------------------------------------------*/
48 #ifndef vtkTreeLayoutStrategy_h
49 #define vtkTreeLayoutStrategy_h
50 
51 #include "vtkInfovisLayoutModule.h" // For export macro
52 #include "vtkGraphLayoutStrategy.h"
53 
55 {
56 public:
57  static vtkTreeLayoutStrategy *New();
58 
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63  void Layout();
64 
66 
69  vtkSetClampMacro(Angle, double, 0, 360);
70  vtkGetMacro(Angle, double);
72 
74 
77  vtkSetMacro(Radial, bool);
78  vtkGetMacro(Radial, bool);
79  vtkBooleanMacro(Radial, bool);
81 
83 
87  vtkSetMacro(LogSpacingValue, double);
88  vtkGetMacro(LogSpacingValue, double);
90 
92 
95  vtkSetClampMacro(LeafSpacing, double, 0.0, 1.0);
96  vtkGetMacro(LeafSpacing, double);
98 
100 
101  vtkSetStringMacro(DistanceArrayName);
102  vtkGetStringMacro(DistanceArrayName);
104 
106 
107  vtkSetMacro(Rotation, double);
108  vtkGetMacro(Rotation, double);
110 
112 
115  vtkSetMacro(ReverseEdges, bool);
116  vtkGetMacro(ReverseEdges, bool);
117  vtkBooleanMacro(ReverseEdges, bool);
119 
120 protected:
123 
124  double Angle;
125  bool Radial;
127  double LeafSpacing;
129  double Rotation;
131 
132 private:
133 
134  vtkTreeLayoutStrategy(const vtkTreeLayoutStrategy&); // Not implemented.
135  void operator=(const vtkTreeLayoutStrategy&); // Not implemented.
136 };
137 
138 #endif
139 
#define VTKINFOVISLAYOUT_EXPORT
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()
virtual void Layout()=0
hierarchical layout
void PrintSelf(ostream &os, vtkIndent indent)