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 -------------------------------------------------------------------------*/
36 #ifndef __vtkStackedTreeLayoutStrategy_h
37 #define __vtkStackedTreeLayoutStrategy_h
38 
39 #include "vtkAreaLayoutStrategy.h"
40 
41 class vtkTree;
42 class vtkDataArray;
43 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
56  virtual void Layout(vtkTree *inputTree, vtkDataArray *sectorArray,
57  vtkDataArray* sizeArray);
59 
61 
63  virtual void LayoutEdgePoints(vtkTree *inputTree, vtkDataArray *sectorArray,
64  vtkDataArray* sizeArray, vtkTree *edgeRoutingTree);
66 
68 
69  vtkSetMacro(InteriorRadius, double);
70  vtkGetMacro(InteriorRadius, double);
72 
74 
75  vtkSetMacro(RingThickness, double);
76  vtkGetMacro(RingThickness, double);
78 
80 
83  vtkSetMacro(RootStartAngle, double);
84  vtkGetMacro(RootStartAngle, double);
86 
88 
91  vtkSetMacro(RootEndAngle, double);
92  vtkGetMacro(RootEndAngle, double);
94 
96 
98  vtkSetMacro(UseRectangularCoordinates, bool);
99  vtkGetMacro(UseRectangularCoordinates, bool);
100  vtkBooleanMacro(UseRectangularCoordinates, bool);
102 
104 
106  vtkSetMacro(Reverse, bool);
107  vtkGetMacro(Reverse, bool);
108  vtkBooleanMacro(Reverse, bool);
110 
112 
116  vtkSetMacro(InteriorLogSpacingValue, double);
117  vtkGetMacro(InteriorLogSpacingValue, double);
119 
122  virtual vtkIdType FindVertex(vtkTree* tree, vtkDataArray* array, float pnt[2]);
123 
124 protected:
127 
133  bool Reverse;
135 
136  void ComputeEdgeRoutingPoints(
137  vtkTree* inputTree, vtkDataArray* coordsArray, vtkTree* outputTree);
138 
139  void LayoutChildren(
140  vtkTree *tree, vtkDataArray *coordsArray, vtkDataArray *sizeArray,
141  vtkIdType nchildren, vtkIdType parent, vtkIdType begin,
142  float parentInnerRad, float parentOuterRad,
143  float parentStartAng, float parentEndAng);
144 
145 private:
147  void operator=(const vtkStackedTreeLayoutStrategy&); // Not implemented.
148 };
149 
150 #endif
virtual void LayoutEdgePoints(vtkTree *inputTree, vtkDataArray *areaArray, vtkDataArray *sizeArray, vtkTree *edgeLayoutTree)
abstract superclass for all area layout strategies
virtual void Layout(vtkTree *inputTree, vtkDataArray *areaArray, vtkDataArray *sizeArray)=0
virtual vtkIdType FindVertex(vtkTree *tree, vtkDataArray *array, float pnt[2])=0
int vtkIdType
Definition: vtkType.h:255
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_INFOVIS_EXPORT
static vtkObject * New()
lays out tree in stacked boxes or rings
A rooted tree data structure.
Definition: vtkTree.h:58