VTK  9.3.1
vtkTreeAreaView.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
22 #ifndef vtkTreeAreaView_h
23 #define vtkTreeAreaView_h
24 
25 #include "vtkRenderView.h"
26 #include "vtkViewsInfovisModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
30 class vtkGraph;
34 class vtkTree;
35 
36 class VTKVIEWSINFOVIS_EXPORT vtkTreeAreaView : public vtkRenderView
37 {
38 public:
39  static vtkTreeAreaView* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkDataRepresentation* SetTreeFromInputConnection(vtkAlgorithmOutput* conn);
48  vtkDataRepresentation* SetTreeFromInput(vtkTree* input);
49  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
50  vtkDataRepresentation* SetGraphFromInput(vtkGraph* input);
52 
54 
57  void SetAreaLabelArrayName(const char* name);
58  const char* GetAreaLabelArrayName();
60 
62 
65  void SetAreaSizeArrayName(const char* name);
66  const char* GetAreaSizeArrayName();
68 
70 
74  void SetLabelPriorityArrayName(const char* name);
75  const char* GetLabelPriorityArrayName();
77 
79 
82  void SetEdgeLabelArrayName(const char* name);
83  const char* GetEdgeLabelArrayName();
85 
87 
92  void SetAreaHoverArrayName(const char* name);
93  const char* GetAreaHoverArrayName();
95 
97 
100  void SetAreaLabelVisibility(bool vis);
101  bool GetAreaLabelVisibility();
102  vtkBooleanMacro(AreaLabelVisibility, bool);
104 
106 
109  void SetEdgeLabelVisibility(bool vis);
110  bool GetEdgeLabelVisibility();
111  vtkBooleanMacro(EdgeLabelVisibility, bool);
113 
115 
118  void SetAreaColorArrayName(const char* name);
119  const char* GetAreaColorArrayName();
121 
123 
126  void SetColorAreas(bool vis);
127  bool GetColorAreas();
128  vtkBooleanMacro(ColorAreas, bool);
130 
132 
135  void SetEdgeColorArrayName(const char* name);
136  const char* GetEdgeColorArrayName();
138 
142  void SetEdgeColorToSplineFraction();
143 
145 
148  void SetShrinkPercentage(double value);
149  double GetShrinkPercentage();
151 
153 
156  void SetColorEdges(bool vis);
157  bool GetColorEdges();
158  vtkBooleanMacro(ColorEdges, bool);
160 
162 
165  void SetBundlingStrength(double strength);
166  double GetBundlingStrength();
168 
170 
173  virtual void SetAreaLabelFontSize(int size);
174  virtual int GetAreaLabelFontSize();
176 
178 
181  virtual void SetEdgeLabelFontSize(int size);
182  virtual int GetEdgeLabelFontSize();
184 
186 
189  virtual void SetLayoutStrategy(vtkAreaLayoutStrategy* strategy);
190  virtual vtkAreaLayoutStrategy* GetLayoutStrategy();
192 
194 
197  virtual void SetUseRectangularCoordinates(bool rect);
198  virtual bool GetUseRectangularCoordinates();
199  vtkBooleanMacro(UseRectangularCoordinates, bool);
201 
203 
206  virtual void SetEdgeScalarBarVisibility(bool b);
207  virtual bool GetEdgeScalarBarVisibility();
209 
210 protected:
211  vtkTreeAreaView();
212  ~vtkTreeAreaView() override;
213 
215 
220  virtual void SetAreaToPolyData(vtkPolyDataAlgorithm* areaToPoly);
221  virtual vtkPolyDataAlgorithm* GetAreaToPolyData();
223 
225 
229  virtual void SetAreaLabelMapper(vtkLabeledDataMapper* mapper);
230  virtual vtkLabeledDataMapper* GetAreaLabelMapper();
232 
234 
239  virtual vtkRenderedTreeAreaRepresentation* GetTreeAreaRepresentation();
241 
242 private:
243  vtkTreeAreaView(const vtkTreeAreaView&) = delete;
244  void operator=(const vtkTreeAreaView&) = delete;
245 };
246 
247 VTK_ABI_NAMESPACE_END
248 #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:280
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
The superclass for all representations.
A view containing a renderer.
Definition: vtkRenderView.h:49
A rooted tree data structure.
Definition: vtkTree.h:45
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)
Create a default vtkDataRepresentation for the given vtkAlgorithmOutput.