VTK  9.3.1
vtkHierarchicalGraphPipeline.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
15 #ifndef vtkHierarchicalGraphPipeline_h
16 #define vtkHierarchicalGraphPipeline_h
17 
18 #include "vtkObject.h"
19 #include "vtkViewsInfovisModule.h" // For export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkActor;
23 class vtkActor2D;
24 class vtkAlgorithmOutput;
25 class vtkApplyColors;
28 class vtkEdgeCenters;
30 class vtkGraphToPolyData;
31 class vtkPolyDataMapper;
32 class vtkRenderView;
34 class vtkSelection;
35 class vtkTextProperty;
36 class vtkViewTheme;
37 
38 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphPipeline : public vtkObject
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
49  vtkGetObjectMacro(Actor, vtkActor);
51 
53 
56  vtkGetObjectMacro(LabelActor, vtkActor2D);
58 
60 
63  virtual void SetBundlingStrength(double strength);
64  virtual double GetBundlingStrength();
66 
68 
71  virtual void SetLabelArrayName(const char* name);
72  virtual const char* GetLabelArrayName();
74 
76 
79  virtual void SetLabelVisibility(bool vis);
80  virtual bool GetLabelVisibility();
81  vtkBooleanMacro(LabelVisibility, bool);
83 
85 
88  virtual void SetLabelTextProperty(vtkTextProperty* prop);
89  virtual vtkTextProperty* GetLabelTextProperty();
91 
93 
96  virtual void SetColorArrayName(const char* name);
97  virtual const char* GetColorArrayName();
99 
101 
104  virtual void SetColorEdgesByArray(bool vis);
105  virtual bool GetColorEdgesByArray();
106  vtkBooleanMacro(ColorEdgesByArray, bool);
108 
110 
113  virtual void SetVisibility(bool vis);
114  virtual bool GetVisibility();
115  vtkBooleanMacro(Visibility, bool);
117 
122  virtual vtkSelection* ConvertSelection(vtkDataRepresentation* rep, vtkSelection* sel);
123 
130  virtual void PrepareInputConnections(
131  vtkAlgorithmOutput* graphConn, vtkAlgorithmOutput* treeConn, vtkAlgorithmOutput* annConn);
132 
136  virtual void ApplyViewTheme(vtkViewTheme* theme);
137 
139 
142  vtkSetStringMacro(HoverArrayName);
143  vtkGetStringMacro(HoverArrayName);
145 
147 
153  virtual void SetSplineType(int type);
154  virtual int GetSplineType();
156 
160  void RegisterProgress(vtkRenderView* view);
161 
162 protected:
164  ~vtkHierarchicalGraphPipeline() override;
165 
176 
178 
179  vtkSetStringMacro(ColorArrayNameInternal);
180  vtkGetStringMacro(ColorArrayNameInternal);
182 
183  vtkSetStringMacro(LabelArrayNameInternal);
184  vtkGetStringMacro(LabelArrayNameInternal);
186 
187 private:
189  void operator=(const vtkHierarchicalGraphPipeline&) = delete;
190 };
191 
192 VTK_ABI_NAMESPACE_END
193 #endif
subsample graph edges to make smooth curves
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
helper class for rendering graphs superimposed on a tree.
a actor that draws 2D data
Definition: vtkActor2D.h:34
draw text labels at 2D dataset points
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:49
Proxy object to connect input/output ports.
convert a vtkGraph to vtkPolyData
generate points at center of edges
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:33
a simple class to control print indentation
Definition: vtkIndent.h:28
The superclass for all representations.
represent text properties.
map vtkPolyData to graphics primitives
vtkGraphHierarchicalBundleEdges * Bundle
A view containing a renderer.
Definition: vtkRenderView.h:49
apply colors to a data set.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...