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 "vtkGraphLayoutStrategy.h"
52 
54 {
55 public:
56  static vtkTreeLayoutStrategy *New();
57 
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62  void Layout();
63 
65 
68  vtkSetClampMacro(Angle, double, 0, 360);
69  vtkGetMacro(Angle, double);
71 
73 
76  vtkSetMacro(Radial, bool);
77  vtkGetMacro(Radial, bool);
78  vtkBooleanMacro(Radial, bool);
80 
82 
86  vtkSetMacro(LogSpacingValue, double);
87  vtkGetMacro(LogSpacingValue, double);
89 
91 
94  vtkSetClampMacro(LeafSpacing, double, 0.0, 1.0);
95  vtkGetMacro(LeafSpacing, double);
97 
99 
100  vtkSetStringMacro(DistanceArrayName);
101  vtkGetStringMacro(DistanceArrayName);
103 
105 
106  vtkSetMacro(Rotation, double);
107  vtkGetMacro(Rotation, double);
109 
111 
114  vtkSetMacro(ReverseEdges, bool);
115  vtkGetMacro(ReverseEdges, bool);
116  vtkBooleanMacro(ReverseEdges, bool);
118 
119 protected:
122 
123  double Angle;
124  bool Radial;
126  double LeafSpacing;
128  double Rotation;
130 
131 private:
132 
133  vtkTreeLayoutStrategy(const vtkTreeLayoutStrategy&); // Not implemented.
134  void operator=(const vtkTreeLayoutStrategy&); // Not implemented.
135 };
136 
137 #endif
138