VTK: Views/Infovis/vtkHierarchicalGraphPipeline.h Source File

| 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;
26 class vtkDataRepresentation;
27 class vtkDynamic2DLabelMapper;
28 class vtkEdgeCenters;
29 class vtkGraphHierarchicalBundleEdges;
30 class vtkGraphToPolyData;
31 class vtkPolyDataMapper;
32 class vtkRenderView;
33 class vtkSplineGraphEdges;
34 class vtkSelection;
35 class vtkTextProperty;
36 class vtkViewTheme;
37
38 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphPipeline : public vtkObject
39 {
40 public:
41 static vtkHierarchicalGraphPipeline* New();
42 vtkTypeMacro(vtkHierarchicalGraphPipeline, vtkObject);
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:
163 vtkHierarchicalGraphPipeline();
164 ~vtkHierarchicalGraphPipeline() override;
165
166 vtkApplyColors* ApplyColors;
167 vtkGraphHierarchicalBundleEdges* Bundle;
168 vtkGraphToPolyData* GraphToPoly;
169 vtkSplineGraphEdges* Spline;
170 vtkPolyDataMapper* Mapper;
171 vtkActor* Actor;
172 vtkTextProperty* TextProperty;
173 vtkEdgeCenters* EdgeCenters;
174 vtkDynamic2DLabelMapper* LabelMapper;
175 vtkActor2D* LabelActor;
176
177 char* HoverArrayName;
178
179 vtkSetStringMacro(ColorArrayNameInternal);
180 vtkGetStringMacro(ColorArrayNameInternal);
181 char* ColorArrayNameInternal;
182
183 vtkSetStringMacro(LabelArrayNameInternal);
184 vtkGetStringMacro(LabelArrayNameInternal);
185 char* LabelArrayNameInternal;
186
187 private:
188 vtkHierarchicalGraphPipeline(const vtkHierarchicalGraphPipeline&) = delete;
189 void operator=(const vtkHierarchicalGraphPipeline&) = delete;
190 };
191
192 VTK_ABI_NAMESPACE_END
193 #endif
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:44
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:41
vtkApplyColors
apply colors to a data set.
Definition: vtkApplyColors.h:72
vtkDataRepresentation
The superclass for all representations.
Definition: vtkDataRepresentation.h:58
vtkDynamic2DLabelMapper
draw text labels at 2D dataset points
Definition: vtkDynamic2DLabelMapper.h:54
vtkEdgeCenters
generate points at center of edges
Definition: vtkEdgeCenters.h:31
vtkGraphHierarchicalBundleEdges
layout graph arcs in bundles
Definition: vtkGraphHierarchicalBundleEdges.h:47
vtkGraphToPolyData
convert a vtkGraph to vtkPolyData
Definition: vtkGraphToPolyData.h:42
vtkHierarchicalGraphPipeline
helper class for rendering graphs superimposed on a tree.
Definition: vtkHierarchicalGraphPipeline.h:39
vtkHierarchicalGraphPipeline::New
static vtkHierarchicalGraphPipeline * New()
vtkHierarchicalGraphPipeline::LabelMapper
vtkDynamic2DLabelMapper * LabelMapper
Definition: vtkHierarchicalGraphPipeline.h:174
vtkHierarchicalGraphPipeline::GetSplineType
virtual int GetSplineType()
The spline mode to use in vtkSplineGraphEdges.
vtkHierarchicalGraphPipeline::PrepareInputConnections
virtual void PrepareInputConnections(vtkAlgorithmOutput *graphConn, vtkAlgorithmOutput *treeConn, vtkAlgorithmOutput *annConn)
Sets the input connections for this graph.
vtkHierarchicalGraphPipeline::SetBundlingStrength
virtual void SetBundlingStrength(double strength)
The bundling strength for the bundled edges.
vtkHierarchicalGraphPipeline::~vtkHierarchicalGraphPipeline
~vtkHierarchicalGraphPipeline() override
vtkHierarchicalGraphPipeline::SetLabelTextProperty
virtual void SetLabelTextProperty(vtkTextProperty *prop)
The edge label text property.
vtkHierarchicalGraphPipeline::SetLabelVisibility
virtual void SetLabelVisibility(bool vis)
The edge label visibility.
vtkHierarchicalGraphPipeline::EdgeCenters
vtkEdgeCenters * EdgeCenters
Definition: vtkHierarchicalGraphPipeline.h:173
vtkHierarchicalGraphPipeline::ApplyColors
vtkApplyColors * ApplyColors
Definition: vtkHierarchicalGraphPipeline.h:166
vtkHierarchicalGraphPipeline::Actor
vtkActor * Actor
Definition: vtkHierarchicalGraphPipeline.h:171
vtkHierarchicalGraphPipeline::SetSplineType
virtual void SetSplineType(int type)
The spline mode to use in vtkSplineGraphEdges.
vtkHierarchicalGraphPipeline::TextProperty
vtkTextProperty * TextProperty
Definition: vtkHierarchicalGraphPipeline.h:172
vtkHierarchicalGraphPipeline::GetLabelTextProperty
virtual vtkTextProperty * GetLabelTextProperty()
The edge label text property.
vtkHierarchicalGraphPipeline::SetVisibility
virtual void SetVisibility(bool vis)
The visibility of this graph.
vtkHierarchicalGraphPipeline::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkHierarchicalGraphPipeline::LabelArrayNameInternal
char * LabelArrayNameInternal
Definition: vtkHierarchicalGraphPipeline.h:184
vtkHierarchicalGraphPipeline::Mapper
vtkPolyDataMapper * Mapper
Definition: vtkHierarchicalGraphPipeline.h:170
vtkHierarchicalGraphPipeline::GetLabelVisibility
virtual bool GetLabelVisibility()
The edge label visibility.
vtkHierarchicalGraphPipeline::GetColorEdgesByArray
virtual bool GetColorEdgesByArray()
Whether to color the edges by an array.
vtkHierarchicalGraphPipeline::SetLabelArrayName
virtual void SetLabelArrayName(const char *name)
The edge label array name.
vtkHierarchicalGraphPipeline::GetBundlingStrength
virtual double GetBundlingStrength()
The bundling strength for the bundled edges.
vtkHierarchicalGraphPipeline::Spline
vtkSplineGraphEdges * Spline
Definition: vtkHierarchicalGraphPipeline.h:169
vtkHierarchicalGraphPipeline::vtkHierarchicalGraphPipeline
vtkHierarchicalGraphPipeline()
vtkHierarchicalGraphPipeline::ApplyViewTheme
virtual void ApplyViewTheme(vtkViewTheme *theme)
Applies the view theme to this graph.
vtkHierarchicalGraphPipeline::SetColorEdgesByArray
virtual void SetColorEdgesByArray(bool vis)
Whether to color the edges by an array.
vtkHierarchicalGraphPipeline::GetLabelArrayName
virtual const char * GetLabelArrayName()
The edge label array name.
vtkHierarchicalGraphPipeline::RegisterProgress
void RegisterProgress(vtkRenderView *view)
Register progress with a view.
vtkHierarchicalGraphPipeline::LabelActor
vtkActor2D * LabelActor
Definition: vtkHierarchicalGraphPipeline.h:175
vtkHierarchicalGraphPipeline::Bundle
vtkGraphHierarchicalBundleEdges * Bundle
Definition: vtkHierarchicalGraphPipeline.h:167
vtkHierarchicalGraphPipeline::GetColorArrayName
virtual const char * GetColorArrayName()
The edge color array.
vtkHierarchicalGraphPipeline::GetVisibility
virtual bool GetVisibility()
The visibility of this graph.
vtkHierarchicalGraphPipeline::GraphToPoly
vtkGraphToPolyData * GraphToPoly
Definition: vtkHierarchicalGraphPipeline.h:168
vtkHierarchicalGraphPipeline::HoverArrayName
char * HoverArrayName
Definition: vtkHierarchicalGraphPipeline.h:177
vtkHierarchicalGraphPipeline::ConvertSelection
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...
vtkHierarchicalGraphPipeline::ColorArrayNameInternal
char * ColorArrayNameInternal
Definition: vtkHierarchicalGraphPipeline.h:180
vtkHierarchicalGraphPipeline::SetColorArrayName
virtual void SetColorArrayName(const char *name)
The edge color array.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkRenderView
A view containing a renderer.
Definition: vtkRenderView.h:59
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:59
vtkSplineGraphEdges
subsample graph edges to make smooth curves
Definition: vtkSplineGraphEdges.h:31
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:35
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:43
vtkX3D::type
@ type
Definition: vtkX3D.h:516
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkObject.h