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 "vtkRenderView.h"
43 
45 class vtkGraph;
49 class vtkTree;
50 
52 {
53 public:
54  static vtkTreeAreaView *New();
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
61  vtkDataRepresentation* SetTreeFromInputConnection(vtkAlgorithmOutput* conn);
62  vtkDataRepresentation* SetTreeFromInput(vtkTree* input);
63  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
64  vtkDataRepresentation* SetGraphFromInput(vtkGraph* input);
66 
68 
69  void SetAreaLabelArrayName(const char* name);
70  const char* GetAreaLabelArrayName();
72 
74 
75  void SetAreaSizeArrayName(const char* name);
76  const char* GetAreaSizeArrayName();
78 
80 
82  void SetLabelPriorityArrayName(const char* name);
83  const char* GetLabelPriorityArrayName();
85 
87 
88  void SetEdgeLabelArrayName(const char* name);
89  const char* GetEdgeLabelArrayName();
91 
93 
95  void SetAreaHoverArrayName(const char* name);
96  const char* GetAreaHoverArrayName();
98 
100 
101  void SetAreaLabelVisibility(bool vis);
102  bool GetAreaLabelVisibility();
103  vtkBooleanMacro(AreaLabelVisibility, bool);
105 
107 
108  void SetEdgeLabelVisibility(bool vis);
109  bool GetEdgeLabelVisibility();
110  vtkBooleanMacro(EdgeLabelVisibility, bool);
112 
114 
115  void SetAreaColorArrayName(const char* name);
116  const char* GetAreaColorArrayName();
118 
120 
121  void SetColorAreas(bool vis);
122  bool GetColorAreas();
123  vtkBooleanMacro(ColorAreas, bool);
125 
127 
128  void SetEdgeColorArrayName(const char* name);
129  const char* GetEdgeColorArrayName();
131 
133  void SetEdgeColorToSplineFraction();
134 
136 
137  void SetShrinkPercentage(double value);
138  double GetShrinkPercentage();
140 
142 
143  void SetColorEdges(bool vis);
144  bool GetColorEdges();
145  vtkBooleanMacro(ColorEdges, bool);
147 
149 
150  void SetBundlingStrength(double strength);
151  double GetBundlingStrength();
153 
155 
156  virtual void SetAreaLabelFontSize(const int size);
157  virtual int GetAreaLabelFontSize();
159 
161 
162  virtual void SetEdgeLabelFontSize(const int size);
163  virtual int GetEdgeLabelFontSize();
165 
167 
168  virtual void SetLayoutStrategy(vtkAreaLayoutStrategy* strategy);
169  virtual vtkAreaLayoutStrategy* GetLayoutStrategy();
171 
173 
174  virtual void SetUseRectangularCoordinates(bool rect);
175  virtual bool GetUseRectangularCoordinates();
176  vtkBooleanMacro(UseRectangularCoordinates, bool);
178 
180 
181  virtual void SetEdgeScalarBarVisibility(bool b);
182  virtual bool GetEdgeScalarBarVisibility();
184 
185 protected:
186  vtkTreeAreaView();
187  ~vtkTreeAreaView();
188 
190 
193  virtual void SetAreaToPolyData(vtkPolyDataAlgorithm* areaToPoly);
194  virtual vtkPolyDataAlgorithm* GetAreaToPolyData();
196 
198 
200  virtual void SetAreaLabelMapper(vtkLabeledDataMapper* mapper);
201  virtual vtkLabeledDataMapper* GetAreaLabelMapper();
203 
205 
208  virtual vtkRenderedTreeAreaRepresentation* GetTreeAreaRepresentation();
210 
211 private:
212  vtkTreeAreaView(const vtkTreeAreaView&); // Not implemented.
213  void operator=(const vtkTreeAreaView&); // Not implemented.
214 };
215 
216 #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()
#define VTK_VIEWS_EXPORT
Proxy object to connect input/output ports.
draw text labels at dataset points
Base class for graph data types.
Definition: vtkGraph.h:287
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
The superclass for all representations.
A view containing a renderer.
Definition: vtkRenderView.h:62
A rooted tree data structure.
Definition: vtkTree.h:58
void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)