VTK
vtkTreeAreaView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeAreaView.h
5 
6  -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10  -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
39 #ifndef vtkTreeAreaView_h
40 #define vtkTreeAreaView_h
41 
42 #include "vtkViewsInfovisModule.h" // For export macro
43 #include "vtkRenderView.h"
44 
46 class vtkGraph;
50 class vtkTree;
51 
53 {
54 public:
55  static vtkTreeAreaView *New();
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
62  vtkDataRepresentation* SetTreeFromInputConnection(vtkAlgorithmOutput* conn);
63  vtkDataRepresentation* SetTreeFromInput(vtkTree* input);
64  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
65  vtkDataRepresentation* SetGraphFromInput(vtkGraph* input);
67 
69 
70  void SetAreaLabelArrayName(const char* name);
71  const char* GetAreaLabelArrayName();
73 
75 
76  void SetAreaSizeArrayName(const char* name);
77  const char* GetAreaSizeArrayName();
79 
81 
83  void SetLabelPriorityArrayName(const char* name);
84  const char* GetLabelPriorityArrayName();
86 
88 
89  void SetEdgeLabelArrayName(const char* name);
90  const char* GetEdgeLabelArrayName();
92 
94 
96  void SetAreaHoverArrayName(const char* name);
97  const char* GetAreaHoverArrayName();
99 
101 
102  void SetAreaLabelVisibility(bool vis);
103  bool GetAreaLabelVisibility();
104  vtkBooleanMacro(AreaLabelVisibility, bool);
106 
108 
109  void SetEdgeLabelVisibility(bool vis);
110  bool GetEdgeLabelVisibility();
111  vtkBooleanMacro(EdgeLabelVisibility, bool);
113 
115 
116  void SetAreaColorArrayName(const char* name);
117  const char* GetAreaColorArrayName();
119 
121 
122  void SetColorAreas(bool vis);
123  bool GetColorAreas();
124  vtkBooleanMacro(ColorAreas, bool);
126 
128 
129  void SetEdgeColorArrayName(const char* name);
130  const char* GetEdgeColorArrayName();
132 
134  void SetEdgeColorToSplineFraction();
135 
137 
138  void SetShrinkPercentage(double value);
139  double GetShrinkPercentage();
141 
143 
144  void SetColorEdges(bool vis);
145  bool GetColorEdges();
146  vtkBooleanMacro(ColorEdges, bool);
148 
150 
151  void SetBundlingStrength(double strength);
152  double GetBundlingStrength();
154 
156 
157  virtual void SetAreaLabelFontSize(const int size);
158  virtual int GetAreaLabelFontSize();
160 
162 
163  virtual void SetEdgeLabelFontSize(const int size);
164  virtual int GetEdgeLabelFontSize();
166 
168 
169  virtual void SetLayoutStrategy(vtkAreaLayoutStrategy* strategy);
170  virtual vtkAreaLayoutStrategy* GetLayoutStrategy();
172 
174 
175  virtual void SetUseRectangularCoordinates(bool rect);
176  virtual bool GetUseRectangularCoordinates();
177  vtkBooleanMacro(UseRectangularCoordinates, bool);
179 
181 
182  virtual void SetEdgeScalarBarVisibility(bool b);
183  virtual bool GetEdgeScalarBarVisibility();
185 
186 protected:
187  vtkTreeAreaView();
188  ~vtkTreeAreaView();
189 
191 
194  virtual void SetAreaToPolyData(vtkPolyDataAlgorithm* areaToPoly);
195  virtual vtkPolyDataAlgorithm* GetAreaToPolyData();
197 
199 
201  virtual void SetAreaLabelMapper(vtkLabeledDataMapper* mapper);
202  virtual vtkLabeledDataMapper* GetAreaLabelMapper();
204 
206 
209  virtual vtkRenderedTreeAreaRepresentation* GetTreeAreaRepresentation();
211 
212 private:
213  vtkTreeAreaView(const vtkTreeAreaView&); // Not implemented.
214  void operator=(const vtkTreeAreaView&); // Not implemented.
215 };
216 
217 #endif
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display...
abstract superclass for all area layout strategies
static vtkRenderView * New()
Proxy object to connect input/output ports.
draw text labels at dataset points
Base class for graph data types.
Definition: vtkGraph.h:288
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
The superclass for all representations.
A view containing a renderer.
Definition: vtkRenderView.h:63
A rooted tree data structure.
Definition: vtkTree.h:59
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKVIEWSINFOVIS_EXPORT
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)