VTK  9.3.20240425
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
21VTK_ABI_NAMESPACE_BEGIN
22class vtkActor;
23class vtkActor2D;
25class vtkApplyColors;
28class vtkEdgeCenters;
32class vtkRenderView;
34class vtkSelection;
35class vtkTextProperty;
36class vtkViewTheme;
37
38class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphPipeline : public vtkObject
39{
40public:
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
162protected:
165
176
178
179 vtkSetStringMacro(ColorArrayNameInternal);
180 vtkGetStringMacro(ColorArrayNameInternal);
182
183 vtkSetStringMacro(LabelArrayNameInternal);
184 vtkGetStringMacro(LabelArrayNameInternal);
186
187private:
189 void operator=(const vtkHierarchicalGraphPipeline&) = delete;
190};
191
192VTK_ABI_NAMESPACE_END
193#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
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.
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 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 const char * GetLabelArrayName()
The edge label array name.
virtual void ApplyViewTheme(vtkViewTheme *theme)
Applies the view theme to this graph.
virtual const char * GetColorArrayName()
The edge color array.
virtual void SetColorEdgesByArray(bool vis)
Whether to color the edges by an array.
virtual vtkTextProperty * GetLabelTextProperty()
The edge label text property.
void RegisterProgress(vtkRenderView *view)
Register progress with a view.
vtkGraphHierarchicalBundleEdges * Bundle
static vtkHierarchicalGraphPipeline * New()
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 bool GetVisibility()
The visibility of this graph.
virtual void SetColorArrayName(const char *name)
The edge color array.
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162
map vtkPolyData to graphics primitives
A view containing a renderer.
data object that represents a "selection" in VTK.
subsample graph edges to make smooth curves
represent text properties.
Sets theme colors for a graphical view.