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:
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 
vtkTreeLayoutStrategy::~vtkTreeLayoutStrategy
~vtkTreeLayoutStrategy()
vtkTreeLayoutStrategy::Radial
bool Radial
Definition: vtkTreeLayoutStrategy.h:125
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:45
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkTreeLayoutStrategy::LogSpacingValue
double LogSpacingValue
Definition: vtkTreeLayoutStrategy.h:126
vtkTreeLayoutStrategy::DistanceArrayName
char * DistanceArrayName
Definition: vtkTreeLayoutStrategy.h:128
vtkTreeLayoutStrategy::Rotation
double Rotation
Definition: vtkTreeLayoutStrategy.h:129
vtkTreeLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTreeLayoutStrategy::Layout
void Layout()
vtkTreeLayoutStrategy::New
static vtkTreeLayoutStrategy * New()
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkTreeLayoutStrategy::ReverseEdges
bool ReverseEdges
Definition: vtkTreeLayoutStrategy.h:130
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
VTKINFOVISLAYOUT_EXPORT
#define VTKINFOVISLAYOUT_EXPORT
Definition: vtkInfovisLayoutModule.h:15
vtkGraphLayoutStrategy.h
vtkInfovisLayoutModule.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkTreeLayoutStrategy::vtkTreeLayoutStrategy
vtkTreeLayoutStrategy()
vtkTreeLayoutStrategy::LeafSpacing
double LeafSpacing
Definition: vtkTreeLayoutStrategy.h:127
vtkTreeLayoutStrategy::Angle
double Angle
Definition: vtkTreeLayoutStrategy.h:124
vtkTreeLayoutStrategy
hierarchical layout
Definition: vtkTreeLayoutStrategy.h:55