VTK
vtkStackedTreeLayoutStrategy.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkStackedTreeLayoutStrategy.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-------------------------------------------------------------------------*/
37#ifndef vtkStackedTreeLayoutStrategy_h
38#define vtkStackedTreeLayoutStrategy_h
39
40#include "vtkInfovisLayoutModule.h" // For export macro
42
43class vtkTree;
44class vtkDataArray;
45
46class VTKINFOVISLAYOUT_EXPORT vtkStackedTreeLayoutStrategy :
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent);
53
60 virtual void Layout(vtkTree *inputTree, vtkDataArray *sectorArray,
61 vtkDataArray* sizeArray);
62
67 virtual void LayoutEdgePoints(vtkTree *inputTree, vtkDataArray *sectorArray,
68 vtkDataArray* sizeArray, vtkTree *edgeRoutingTree);
69
71
74 vtkSetMacro(InteriorRadius, double);
75 vtkGetMacro(InteriorRadius, double);
77
79
82 vtkSetMacro(RingThickness, double);
83 vtkGetMacro(RingThickness, double);
85
87
92 vtkSetMacro(RootStartAngle, double);
93 vtkGetMacro(RootStartAngle, double);
95
97
102 vtkSetMacro(RootEndAngle, double);
103 vtkGetMacro(RootEndAngle, double);
105
107
111 vtkSetMacro(UseRectangularCoordinates, bool);
112 vtkGetMacro(UseRectangularCoordinates, bool);
113 vtkBooleanMacro(UseRectangularCoordinates, bool);
115
117
121 vtkSetMacro(Reverse, bool);
122 vtkGetMacro(Reverse, bool);
123 vtkBooleanMacro(Reverse, bool);
125
127
134 vtkSetMacro(InteriorLogSpacingValue, double);
135 vtkGetMacro(InteriorLogSpacingValue, double);
137
141 virtual vtkIdType FindVertex(vtkTree* tree, vtkDataArray* array, float pnt[2]);
142
143protected:
146
154
156 vtkTree* inputTree, vtkDataArray* coordsArray, vtkTree* outputTree);
157
159 vtkTree *tree, vtkDataArray *coordsArray, vtkDataArray *sizeArray,
160 vtkIdType nchildren, vtkIdType parent, vtkIdType begin,
161 float parentInnerRad, float parentOuterRad,
162 float parentStartAng, float parentEndAng);
163
164private:
166 void operator=(const vtkStackedTreeLayoutStrategy&) VTK_DELETE_FUNCTION;
167};
168
169#endif
abstract superclass for all area layout strategies
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a simple class to control print indentation
Definition: vtkIndent.h:40
lays out tree in stacked boxes or rings
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void ComputeEdgeRoutingPoints(vtkTree *inputTree, vtkDataArray *coordsArray, vtkTree *outputTree)
void LayoutChildren(vtkTree *tree, vtkDataArray *coordsArray, vtkDataArray *sizeArray, vtkIdType nchildren, vtkIdType parent, vtkIdType begin, float parentInnerRad, float parentOuterRad, float parentStartAng, float parentEndAng)
virtual void Layout(vtkTree *inputTree, vtkDataArray *sectorArray, vtkDataArray *sizeArray)
Perform the layout of the input tree, and store the sector bounds of each vertex as a tuple (innerRad...
static vtkStackedTreeLayoutStrategy * New()
virtual vtkIdType FindVertex(vtkTree *tree, vtkDataArray *array, float pnt[2])
Returns the vertex id that contains pnt (or -1 if no one contains it).
virtual void LayoutEdgePoints(vtkTree *inputTree, vtkDataArray *sectorArray, vtkDataArray *sizeArray, vtkTree *edgeRoutingTree)
Fill edgeRoutingTree with points suitable for routing edges of an overlaid graph.
A rooted tree data structure.
Definition: vtkTree.h:61
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287