VTK  9.3.0
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 
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 
123 
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 
161 
162 protected:
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
a actor that draws 2D data
Definition: vtkActor2D.h:44
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
Proxy object to connect input/output ports.
apply colors to a data set.
The superclass for all representations.
draw text labels at 2D dataset points
generate points at center of edges
convert a vtkGraph to vtkPolyData
helper class for rendering graphs superimposed on a tree.
static vtkHierarchicalGraphPipeline * New()
virtual int GetSplineType()
The spline mode to use in vtkSplineGraphEdges.
virtual void PrepareInputConnections(vtkAlgorithmOutput *graphConn, vtkAlgorithmOutput *treeConn, vtkAlgorithmOutput *annConn)
Sets the input connections for this graph.
virtual void SetBundlingStrength(double strength)
The bundling strength for the bundled edges.
~vtkHierarchicalGraphPipeline() override
virtual void SetLabelTextProperty(vtkTextProperty *prop)
The edge label text property.
virtual void SetLabelVisibility(bool vis)
The edge label visibility.
virtual void SetSplineType(int type)
The spline mode to use in vtkSplineGraphEdges.
virtual vtkTextProperty * GetLabelTextProperty()
The edge label text property.
virtual void SetVisibility(bool vis)
The visibility of this graph.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool GetLabelVisibility()
The edge label visibility.
virtual bool GetColorEdgesByArray()
Whether to color the edges by an array.
virtual void SetLabelArrayName(const char *name)
The edge label array name.
virtual double GetBundlingStrength()
The bundling strength for the bundled edges.
virtual void ApplyViewTheme(vtkViewTheme *theme)
Applies the view theme to this graph.
virtual void SetColorEdgesByArray(bool vis)
Whether to color the edges by an array.
virtual const char * GetLabelArrayName()
The edge label array name.
void RegisterProgress(vtkRenderView *view)
Register progress with a view.
vtkGraphHierarchicalBundleEdges * Bundle
virtual const char * GetColorArrayName()
The edge color array.
virtual bool GetVisibility()
The visibility of this graph.
virtual vtkSelection * ConvertSelection(vtkDataRepresentation *rep, vtkSelection *sel)
Returns a new selection relevant to this graph based on an input selection and the view that this gra...
virtual void SetColorArrayName(const char *name)
The edge color array.
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract base class for most VTK objects
Definition: vtkObject.h:61
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:59
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:59
subsample graph edges to make smooth curves
represent text properties.
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:43
@ type
Definition: vtkX3D.h:516
@ name
Definition: vtkX3D.h:219