VTK: Views/Infovis/vtkRenderedGraphRepresentation.h Source File

| VTK 9.3.1

vtkRenderedGraphRepresentation.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 vtkRenderedGraphRepresentation_h
23 #define vtkRenderedGraphRepresentation_h
24
25 #include "vtkRenderedRepresentation.h"
26 #include "vtkSmartPointer.h" // for SP ivars
27 #include "vtkViewsInfovisModule.h" // For export macro
28
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkActor;
31 class vtkApplyColors;
32 class vtkApplyIcons;
33 class vtkEdgeCenters;
34 class vtkEdgeLayout;
35 class vtkEdgeLayoutStrategy;
36 class vtkGraphLayout;
37 class vtkGraphLayoutStrategy;
38 class vtkGraphToGlyphs;
39 class vtkGraphToPoints;
40 class vtkGraphToPolyData;
41 class vtkIconGlyphFilter;
42 class vtkInformation;
43 class vtkInformationVector;
44 class vtkLookupTable;
45 class vtkPerturbCoincidentVertices;
46 class vtkPointSetToLabelHierarchy;
47 class vtkPolyData;
48 class vtkPolyDataMapper;
49 class vtkPolyDataMapper2D;
50 class vtkRemoveHiddenData;
51 class vtkRenderView;
52 class vtkScalarBarWidget;
53 class vtkScalarsToColors;
54 class vtkTextProperty;
55 class vtkTexturedActor2D;
56 class vtkTransformCoordinateSystems;
57 class vtkVertexDegree;
58 class vtkView;
59 class vtkViewTheme;
60
61 class VTKVIEWSINFOVIS_EXPORT vtkRenderedGraphRepresentation : public vtkRenderedRepresentation
62 {
63 public:
64 static vtkRenderedGraphRepresentation* New();
65 vtkTypeMacro(vtkRenderedGraphRepresentation, vtkRenderedRepresentation);
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
68 // ------------------------------------------------------------------------
69 // Vertex labels
70
71 virtual void SetVertexLabelArrayName(const char* name);
72 virtual const char* GetVertexLabelArrayName();
73 virtual void SetVertexLabelPriorityArrayName(const char* name);
74 virtual const char* GetVertexLabelPriorityArrayName();
75 virtual void SetVertexLabelVisibility(bool b);
76 virtual bool GetVertexLabelVisibility();
77 vtkBooleanMacro(VertexLabelVisibility, bool);
78 virtual void SetVertexLabelTextProperty(vtkTextProperty* p);
79 virtual vtkTextProperty* GetVertexLabelTextProperty();
80 vtkSetStringMacro(VertexHoverArrayName);
81 vtkGetStringMacro(VertexHoverArrayName);
83
86 vtkSetMacro(HideVertexLabelsOnInteraction, bool);
87 vtkGetMacro(HideVertexLabelsOnInteraction, bool);
88 vtkBooleanMacro(HideVertexLabelsOnInteraction, bool);
90
91 // ------------------------------------------------------------------------
92 // Edge labels
93
94 virtual void SetEdgeLabelArrayName(const char* name);
95 virtual const char* GetEdgeLabelArrayName();
96 virtual void SetEdgeLabelPriorityArrayName(const char* name);
97 virtual const char* GetEdgeLabelPriorityArrayName();
98 virtual void SetEdgeLabelVisibility(bool b);
99 virtual bool GetEdgeLabelVisibility();
100 vtkBooleanMacro(EdgeLabelVisibility, bool);
101 virtual void SetEdgeLabelTextProperty(vtkTextProperty* p);
102 virtual vtkTextProperty* GetEdgeLabelTextProperty();
103 vtkSetStringMacro(EdgeHoverArrayName);
104 vtkGetStringMacro(EdgeHoverArrayName);
106
109 vtkSetMacro(HideEdgeLabelsOnInteraction, bool);
110 vtkGetMacro(HideEdgeLabelsOnInteraction, bool);
111 vtkBooleanMacro(HideEdgeLabelsOnInteraction, bool);
113
114 // ------------------------------------------------------------------------
115 // Vertex icons
116
117 virtual void SetVertexIconArrayName(const char* name);
118 virtual const char* GetVertexIconArrayName();
119 virtual void SetVertexIconPriorityArrayName(const char* name);
120 virtual const char* GetVertexIconPriorityArrayName();
121 virtual void SetVertexIconVisibility(bool b);
122 virtual bool GetVertexIconVisibility();
123 vtkBooleanMacro(VertexIconVisibility, bool);
124 virtual void AddVertexIconType(const char* name, int type);
125 virtual void ClearVertexIconTypes();
126 virtual void SetUseVertexIconTypeMap(bool b);
127 virtual bool GetUseVertexIconTypeMap();
128 vtkBooleanMacro(UseVertexIconTypeMap, bool);
129 virtual void SetVertexIconAlignment(int align);
130 virtual int GetVertexIconAlignment();
131 virtual void SetVertexSelectedIcon(int icon);
132 virtual int GetVertexSelectedIcon();
133 virtual void SetVertexDefaultIcon(int icon);
134 virtual int GetVertexDefaultIcon();
135
137
147 virtual void SetVertexIconSelectionMode(int mode);
148 virtual int GetVertexIconSelectionMode();
149 virtual void SetVertexIconSelectionModeToSelectedIcon() { this->SetVertexIconSelectionMode(0); }
150 virtual void SetVertexIconSelectionModeToSelectedOffset() { this->SetVertexIconSelectionMode(1); }
151 virtual void SetVertexIconSelectionModeToAnnotationIcon() { this->SetVertexIconSelectionMode(2); }
152 virtual void SetVertexIconSelectionModeToIgnoreSelection()
153 {
154 this->SetVertexIconSelectionMode(3);
155 }
157
158 // ------------------------------------------------------------------------
159 // Edge icons
160
161 virtual void SetEdgeIconArrayName(const char* name);
162 virtual const char* GetEdgeIconArrayName();
163 virtual void SetEdgeIconPriorityArrayName(const char* name);
164 virtual const char* GetEdgeIconPriorityArrayName();
165 virtual void SetEdgeIconVisibility(bool b);
166 virtual bool GetEdgeIconVisibility();
167 vtkBooleanMacro(EdgeIconVisibility, bool);
168 virtual void AddEdgeIconType(const char* name, int type);
169 virtual void ClearEdgeIconTypes();
170 virtual void SetUseEdgeIconTypeMap(bool b);
171 virtual bool GetUseEdgeIconTypeMap();
172 vtkBooleanMacro(UseEdgeIconTypeMap, bool);
173 virtual void SetEdgeIconAlignment(int align);
174 virtual int GetEdgeIconAlignment();
175
176 // ------------------------------------------------------------------------
177 // Vertex colors
178
179 virtual void SetColorVerticesByArray(bool b);
180 virtual bool GetColorVerticesByArray();
181 vtkBooleanMacro(ColorVerticesByArray, bool);
182 virtual void SetVertexColorArrayName(const char* name);
183 virtual const char* GetVertexColorArrayName();
184
185 // ------------------------------------------------------------------------
186 // Edge colors
187
188 virtual void SetColorEdgesByArray(bool b);
189 virtual bool GetColorEdgesByArray();
190 vtkBooleanMacro(ColorEdgesByArray, bool);
191 virtual void SetEdgeColorArrayName(const char* name);
192 virtual const char* GetEdgeColorArrayName();
193
194 // ------------------------------------------------------------------------
195 // Enabled vertices
196
197 virtual void SetEnableVerticesByArray(bool b);
198 virtual bool GetEnableVerticesByArray();
199 vtkBooleanMacro(EnableVerticesByArray, bool);
200 virtual void SetEnabledVerticesArrayName(const char* name);
201 virtual const char* GetEnabledVerticesArrayName();
202
203 // ------------------------------------------------------------------------
204 // Enabled edges
205
206 virtual void SetEnableEdgesByArray(bool b);
207 virtual bool GetEnableEdgesByArray();
208 vtkBooleanMacro(EnableEdgesByArray, bool);
209 virtual void SetEnabledEdgesArrayName(const char* name);
210 virtual const char* GetEnabledEdgesArrayName();
211
212 virtual void SetEdgeVisibility(bool b);
213 virtual bool GetEdgeVisibility();
214 vtkBooleanMacro(EdgeVisibility, bool);
215
216 void SetEdgeSelection(bool b);
217 bool GetEdgeSelection();
218
219 // ------------------------------------------------------------------------
220 // Vertex layout strategy
221
223
226 virtual void SetLayoutStrategy(vtkGraphLayoutStrategy* strategy);
227 virtual vtkGraphLayoutStrategy* GetLayoutStrategy();
229
231
234 virtual void SetLayoutStrategy(const char* name);
235 vtkGetStringMacro(LayoutStrategyName);
237
241 void SetLayoutStrategyToRandom() { this->SetLayoutStrategy("Random"); }
242 void SetLayoutStrategyToForceDirected() { this->SetLayoutStrategy("Force Directed"); }
243 void SetLayoutStrategyToSimple2D() { this->SetLayoutStrategy("Simple 2D"); }
244 void SetLayoutStrategyToClustering2D() { this->SetLayoutStrategy("Clustering 2D"); }
245 void SetLayoutStrategyToCommunity2D() { this->SetLayoutStrategy("Community 2D"); }
246 void SetLayoutStrategyToFast2D() { this->SetLayoutStrategy("Fast 2D"); }
247 void SetLayoutStrategyToPassThrough() { this->SetLayoutStrategy("Pass Through"); }
248 void SetLayoutStrategyToCircular() { this->SetLayoutStrategy("Circular"); }
249 void SetLayoutStrategyToTree() { this->SetLayoutStrategy("Tree"); }
250 void SetLayoutStrategyToCosmicTree() { this->SetLayoutStrategy("Cosmic Tree"); }
251 void SetLayoutStrategyToCone() { this->SetLayoutStrategy("Cone"); }
252 void SetLayoutStrategyToSpanTree() { this->SetLayoutStrategy("Span Tree"); }
253
258 virtual void SetLayoutStrategyToAssignCoordinates(
259 const char* xarr, const char* yarr = nullptr, const char* zarr = nullptr);
260
271 virtual void SetLayoutStrategyToTree(
272 bool radial, double angle = 90, double leafSpacing = 0.9, double logSpacing = 1.0);
273
284 virtual void SetLayoutStrategyToCosmicTree(const char* nodeSizeArrayName,
285 bool sizeLeafNodesOnly = true, int layoutDepth = 0, vtkIdType layoutRoot = -1);
286
287 // ------------------------------------------------------------------------
288 // Edge layout strategy
289
291
294 virtual void SetEdgeLayoutStrategy(vtkEdgeLayoutStrategy* strategy);
295 virtual vtkEdgeLayoutStrategy* GetEdgeLayoutStrategy();
296 void SetEdgeLayoutStrategyToArcParallel() { this->SetEdgeLayoutStrategy("Arc Parallel"); }
297 void SetEdgeLayoutStrategyToPassThrough() { this->SetEdgeLayoutStrategy("Pass Through"); }
299
304 virtual void SetEdgeLayoutStrategyToGeo(double explodeFactor = 0.2);
305
307
310 virtual void SetEdgeLayoutStrategy(const char* name);
311 vtkGetStringMacro(EdgeLayoutStrategyName);
313
314 // ------------------------------------------------------------------------
315 // Miscellaneous
316
320 void ApplyViewTheme(vtkViewTheme* theme) override;
321
323
326 virtual void SetGlyphType(int type);
327 virtual int GetGlyphType();
329
331
334 virtual void SetScaling(bool b);
335 virtual bool GetScaling();
336 vtkBooleanMacro(Scaling, bool);
338
340
343 virtual void SetScalingArrayName(const char* name);
344 virtual const char* GetScalingArrayName();
346
348
351 virtual void SetVertexScalarBarVisibility(bool b);
352 virtual bool GetVertexScalarBarVisibility();
353 virtual void SetEdgeScalarBarVisibility(bool b);
354 virtual bool GetEdgeScalarBarVisibility();
356
358
361 virtual vtkScalarBarWidget* GetVertexScalarBar();
362 virtual vtkScalarBarWidget* GetEdgeScalarBar();
364
368 virtual bool IsLayoutComplete();
369
373 virtual void UpdateLayout();
374
378 void ComputeSelectedGraphBounds(double bounds[6]);
379
380 protected:
381 vtkRenderedGraphRepresentation();
382 ~vtkRenderedGraphRepresentation() override;
383
385
388 bool AddToView(vtkView* view) override;
389 bool RemoveFromView(vtkView* view) override;
391
392 void PrepareForRendering(vtkRenderView* view) override;
393
394 vtkSelection* ConvertSelection(vtkView* view, vtkSelection* sel) override;
395
396 std::string GetHoverStringInternal(vtkSelection* sel) override;
397
401 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
402 vtkInformationVector* outputVector) override;
403
405
408 vtkSmartPointer<vtkApplyColors> ApplyColors;
409 vtkSmartPointer<vtkVertexDegree> VertexDegree;
410 vtkSmartPointer<vtkPolyData> EmptyPolyData;
411 vtkSmartPointer<vtkEdgeCenters> EdgeCenters;
412 vtkSmartPointer<vtkGraphToPoints> GraphToPoints;
413 vtkSmartPointer<vtkPointSetToLabelHierarchy> VertexLabelHierarchy;
414 vtkSmartPointer<vtkPointSetToLabelHierarchy> EdgeLabelHierarchy;
415 vtkSmartPointer<vtkGraphLayout> Layout;
416 vtkSmartPointer<vtkPerturbCoincidentVertices> Coincident;
417 vtkSmartPointer<vtkEdgeLayout> EdgeLayout;
418 vtkSmartPointer<vtkGraphToPolyData> GraphToPoly;
419 vtkSmartPointer<vtkPolyDataMapper> EdgeMapper;
420 vtkSmartPointer<vtkActor> EdgeActor;
421 vtkSmartPointer<vtkGraphToGlyphs> VertexGlyph;
422 vtkSmartPointer<vtkPolyDataMapper> VertexMapper;
423 vtkSmartPointer<vtkActor> VertexActor;
424 vtkSmartPointer<vtkGraphToGlyphs> OutlineGlyph;
425 vtkSmartPointer<vtkPolyDataMapper> OutlineMapper;
426 vtkSmartPointer<vtkActor> OutlineActor;
427 vtkSmartPointer<vtkScalarBarWidget> VertexScalarBar;
428 vtkSmartPointer<vtkScalarBarWidget> EdgeScalarBar;
429 vtkSmartPointer<vtkRemoveHiddenData> RemoveHiddenGraph;
430 vtkSmartPointer<vtkApplyIcons> ApplyVertexIcons;
431 vtkSmartPointer<vtkGraphToPoints> VertexIconPoints;
432 vtkSmartPointer<vtkTransformCoordinateSystems> VertexIconTransform;
433 vtkSmartPointer<vtkIconGlyphFilter> VertexIconGlyph;
434 vtkSmartPointer<vtkPolyDataMapper2D> VertexIconMapper;
435 vtkSmartPointer<vtkTexturedActor2D> VertexIconActor;
437
438 char* VertexHoverArrayName;
439 char* EdgeHoverArrayName;
440
441 vtkSetStringMacro(VertexColorArrayNameInternal);
442 vtkGetStringMacro(VertexColorArrayNameInternal);
443 char* VertexColorArrayNameInternal;
444
445 vtkSetStringMacro(EdgeColorArrayNameInternal);
446 vtkGetStringMacro(EdgeColorArrayNameInternal);
447 char* EdgeColorArrayNameInternal;
448
449 vtkSetStringMacro(ScalingArrayNameInternal);
450 vtkGetStringMacro(ScalingArrayNameInternal);
451 char* ScalingArrayNameInternal;
452
453 vtkSetStringMacro(LayoutStrategyName);
454 char* LayoutStrategyName;
455 vtkSetStringMacro(EdgeLayoutStrategyName);
456 char* EdgeLayoutStrategyName;
457 bool HideVertexLabelsOnInteraction;
458 bool HideEdgeLabelsOnInteraction;
459
460 bool EdgeSelection;
461
462 private:
463 vtkRenderedGraphRepresentation(const vtkRenderedGraphRepresentation&) = delete;
464 void operator=(const vtkRenderedGraphRepresentation&) = delete;
465 };
466
467 VTK_ABI_NAMESPACE_END
468 #endif
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
vtkApplyColors
apply colors to a data set.
Definition: vtkApplyColors.h:72
vtkApplyIcons
apply icons to a data set.
Definition: vtkApplyIcons.h:56
vtkEdgeCenters
generate points at center of edges
Definition: vtkEdgeCenters.h:31
vtkEdgeLayoutStrategy
abstract superclass for all edge layout strategies
Definition: vtkEdgeLayoutStrategy.h:23
vtkEdgeLayout
layout graph edges
Definition: vtkEdgeLayout.h:28
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:40
vtkGraphLayout
layout a graph in 2 or 3 dimensions
Definition: vtkGraphLayout.h:45
vtkGraphToGlyphs
create glyphs for graph vertices
Definition: vtkGraphToGlyphs.h:42
vtkGraphToPoints
convert a vtkGraph a set of points.
Definition: vtkGraphToPoints.h:23
vtkGraphToPolyData
convert a vtkGraph to vtkPolyData
Definition: vtkGraphToPolyData.h:42
vtkIconGlyphFilter
Filter that generates a polydata consisting of quads with texture coordinates referring to a set of i...
Definition: vtkIconGlyphFilter.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:73
vtkPerturbCoincidentVertices
Perturbs vertices that are coincident.
Definition: vtkPerturbCoincidentVertices.h:27
vtkPointSetToLabelHierarchy
build a label hierarchy for a graph or point set.
Definition: vtkPointSetToLabelHierarchy.h:39
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:49
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
vtkRemoveHiddenData
Removes the rows/edges/vertices of input data flagged by ann.
Definition: vtkRemoveHiddenData.h:31
vtkRenderView
A view containing a renderer.
Definition: vtkRenderView.h:59
vtkRenderedGraphRepresentation
Definition: vtkRenderedGraphRepresentation.h:62
vtkRenderedGraphRepresentation::AddToView
bool AddToView(vtkView *view) override
Called by the view to add/remove this representation.
vtkRenderedGraphRepresentation::SetEdgeIconVisibility
virtual void SetEdgeIconVisibility(bool b)
vtkRenderedGraphRepresentation::SetLayoutStrategyToCosmicTree
void SetLayoutStrategyToCosmicTree()
Definition: vtkRenderedGraphRepresentation.h:250
vtkRenderedGraphRepresentation::SetEnabledEdgesArrayName
virtual void SetEnabledEdgesArrayName(const char *name)
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategy
virtual void SetEdgeLayoutStrategy(vtkEdgeLayoutStrategy *strategy)
Set/get the graph layout strategy.
vtkRenderedGraphRepresentation::SetLayoutStrategyToTree
virtual void SetLayoutStrategyToTree(bool radial, double angle=90, double leafSpacing=0.9, double logSpacing=1.0)
Set the layout strategy to a tree layout.
vtkRenderedGraphRepresentation::GetVertexLabelArrayName
virtual const char * GetVertexLabelArrayName()
vtkRenderedGraphRepresentation::GetScaling
virtual bool GetScaling()
Set whether to scale vertex glyphs.
vtkRenderedGraphRepresentation::ClearVertexIconTypes
virtual void ClearVertexIconTypes()
vtkRenderedGraphRepresentation::OutlineActor
vtkSmartPointer< vtkActor > OutlineActor
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:426
vtkRenderedGraphRepresentation::PrepareForRendering
void PrepareForRendering(vtkRenderView *view) override
The view will call this method before every render.
vtkRenderedGraphRepresentation::ApplyColors
vtkSmartPointer< vtkApplyColors > ApplyColors
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:408
vtkRenderedGraphRepresentation::SetScaling
virtual void SetScaling(bool b)
Set whether to scale vertex glyphs.
vtkRenderedGraphRepresentation::SetColorEdgesByArray
virtual void SetColorEdgesByArray(bool b)
vtkRenderedGraphRepresentation::EdgeHoverArrayName
char * EdgeHoverArrayName
Definition: vtkRenderedGraphRepresentation.h:439
vtkRenderedGraphRepresentation::SetLayoutStrategyToForceDirected
void SetLayoutStrategyToForceDirected()
Definition: vtkRenderedGraphRepresentation.h:242
vtkRenderedGraphRepresentation::GetColorEdgesByArray
virtual bool GetColorEdgesByArray()
vtkRenderedGraphRepresentation::SetEdgeSelection
void SetEdgeSelection(bool b)
vtkRenderedGraphRepresentation::GetVertexColorArrayName
virtual const char * GetVertexColorArrayName()
vtkRenderedGraphRepresentation::SetLayoutStrategyToCosmicTree
virtual void SetLayoutStrategyToCosmicTree(const char *nodeSizeArrayName, bool sizeLeafNodesOnly=true, int layoutDepth=0, vtkIdType layoutRoot=-1)
Set the layout strategy to a cosmic tree layout.
vtkRenderedGraphRepresentation::SetLayoutStrategyToSimple2D
void SetLayoutStrategyToSimple2D()
Definition: vtkRenderedGraphRepresentation.h:243
vtkRenderedGraphRepresentation::SetLayoutStrategyToTree
void SetLayoutStrategyToTree()
Definition: vtkRenderedGraphRepresentation.h:249
vtkRenderedGraphRepresentation::SetLayoutStrategy
virtual void SetLayoutStrategy(const char *name)
Get/set the layout strategy by name.
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategy
virtual void SetEdgeLayoutStrategy(const char *name)
Set the edge layout strategy by name.
vtkRenderedGraphRepresentation::GetVertexSelectedIcon
virtual int GetVertexSelectedIcon()
vtkRenderedGraphRepresentation::VertexActor
vtkSmartPointer< vtkActor > VertexActor
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:423
vtkRenderedGraphRepresentation::SetVertexLabelTextProperty
virtual void SetVertexLabelTextProperty(vtkTextProperty *p)
vtkRenderedGraphRepresentation::GetEdgeLabelTextProperty
virtual vtkTextProperty * GetEdgeLabelTextProperty()
vtkRenderedGraphRepresentation::ApplyViewTheme
void ApplyViewTheme(vtkViewTheme *theme) override
Apply a theme to this representation.
vtkRenderedGraphRepresentation::SetLayoutStrategyToCommunity2D
void SetLayoutStrategyToCommunity2D()
Definition: vtkRenderedGraphRepresentation.h:245
vtkRenderedGraphRepresentation::VertexIconActor
vtkSmartPointer< vtkTexturedActor2D > VertexIconActor
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:435
vtkRenderedGraphRepresentation::GetVertexIconSelectionMode
virtual int GetVertexIconSelectionMode()
Set the mode to one of.
vtkRenderedGraphRepresentation::VertexIconTransform
vtkSmartPointer< vtkTransformCoordinateSystems > VertexIconTransform
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:432
vtkRenderedGraphRepresentation::GetColorVerticesByArray
virtual bool GetColorVerticesByArray()
vtkRenderedGraphRepresentation::SetEnableEdgesByArray
virtual void SetEnableEdgesByArray(bool b)
vtkRenderedGraphRepresentation::SetVertexLabelArrayName
virtual void SetVertexLabelArrayName(const char *name)
vtkRenderedGraphRepresentation::SetEdgeVisibility
virtual void SetEdgeVisibility(bool b)
vtkRenderedGraphRepresentation::GetHoverStringInternal
std::string GetHoverStringInternal(vtkSelection *sel) override
Subclasses may override this method to generate the hover text.
vtkRenderedGraphRepresentation::Layout
vtkSmartPointer< vtkGraphLayout > Layout
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:415
vtkRenderedGraphRepresentation::GetEdgeSelection
bool GetEdgeSelection()
vtkRenderedGraphRepresentation::GetEdgeIconPriorityArrayName
virtual const char * GetEdgeIconPriorityArrayName()
vtkRenderedGraphRepresentation::GetEdgeLabelVisibility
virtual bool GetEdgeLabelVisibility()
vtkRenderedGraphRepresentation::HideVertexLabelsOnInteraction
bool HideVertexLabelsOnInteraction
Definition: vtkRenderedGraphRepresentation.h:457
vtkRenderedGraphRepresentation::GetEnabledEdgesArrayName
virtual const char * GetEnabledEdgesArrayName()
vtkRenderedGraphRepresentation::EdgeScalarBar
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:428
vtkRenderedGraphRepresentation::EdgeColorArrayNameInternal
char * EdgeColorArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:446
vtkRenderedGraphRepresentation::GetGlyphType
virtual int GetGlyphType()
Set the graph vertex glyph type.
vtkRenderedGraphRepresentation::VertexIconPoints
vtkSmartPointer< vtkGraphToPoints > VertexIconPoints
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:431
vtkRenderedGraphRepresentation::GetEnableEdgesByArray
virtual bool GetEnableEdgesByArray()
vtkRenderedGraphRepresentation::EdgeLabelHierarchy
vtkSmartPointer< vtkPointSetToLabelHierarchy > EdgeLabelHierarchy
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:414
vtkRenderedGraphRepresentation::GetEdgeIconVisibility
virtual bool GetEdgeIconVisibility()
vtkRenderedGraphRepresentation::GetVertexDefaultIcon
virtual int GetVertexDefaultIcon()
vtkRenderedGraphRepresentation::SetVertexIconSelectionMode
virtual void SetVertexIconSelectionMode(int mode)
Set the mode to one of.
vtkRenderedGraphRepresentation::GetEnableVerticesByArray
virtual bool GetEnableVerticesByArray()
vtkRenderedGraphRepresentation::GetVertexIconAlignment
virtual int GetVertexIconAlignment()
vtkRenderedGraphRepresentation::ApplyVertexIcons
vtkSmartPointer< vtkApplyIcons > ApplyVertexIcons
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:430
vtkRenderedGraphRepresentation::SetEnabledVerticesArrayName
virtual void SetEnabledVerticesArrayName(const char *name)
vtkRenderedGraphRepresentation::SetLayoutStrategyToFast2D
void SetLayoutStrategyToFast2D()
Definition: vtkRenderedGraphRepresentation.h:246
vtkRenderedGraphRepresentation::AddEdgeIconType
virtual void AddEdgeIconType(const char *name, int type)
vtkRenderedGraphRepresentation::SetVertexDefaultIcon
virtual void SetVertexDefaultIcon(int icon)
vtkRenderedGraphRepresentation::GetVertexLabelTextProperty
virtual vtkTextProperty * GetVertexLabelTextProperty()
vtkRenderedGraphRepresentation::vtkRenderedGraphRepresentation
vtkRenderedGraphRepresentation()
vtkRenderedGraphRepresentation::AddVertexIconType
virtual void AddVertexIconType(const char *name, int type)
vtkRenderedGraphRepresentation::EmptyPolyData
vtkSmartPointer< vtkPolyData > EmptyPolyData
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:410
vtkRenderedGraphRepresentation::VertexIconMapper
vtkSmartPointer< vtkPolyDataMapper2D > VertexIconMapper
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:434
vtkRenderedGraphRepresentation::GetEdgeIconArrayName
virtual const char * GetEdgeIconArrayName()
vtkRenderedGraphRepresentation::ClearEdgeIconTypes
virtual void ClearEdgeIconTypes()
vtkRenderedGraphRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderedGraphRepresentation::GetEnabledVerticesArrayName
virtual const char * GetEnabledVerticesArrayName()
vtkRenderedGraphRepresentation::SetLayoutStrategyToClustering2D
void SetLayoutStrategyToClustering2D()
Definition: vtkRenderedGraphRepresentation.h:244
vtkRenderedGraphRepresentation::EdgeCenters
vtkSmartPointer< vtkEdgeCenters > EdgeCenters
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:411
vtkRenderedGraphRepresentation::UpdateLayout
virtual void UpdateLayout()
Performs another iteration on the graph layout.
vtkRenderedGraphRepresentation::VertexLabelHierarchy
vtkSmartPointer< vtkPointSetToLabelHierarchy > VertexLabelHierarchy
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:413
vtkRenderedGraphRepresentation::GetEdgeLabelPriorityArrayName
virtual const char * GetEdgeLabelPriorityArrayName()
vtkRenderedGraphRepresentation::GetVertexScalarBar
virtual vtkScalarBarWidget * GetVertexScalarBar()
Obtain the scalar bar widget used to draw a legend for the vertices/edges.
vtkRenderedGraphRepresentation::GetEdgeIconAlignment
virtual int GetEdgeIconAlignment()
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToAnnotationIcon
virtual void SetVertexIconSelectionModeToAnnotationIcon()
Set the mode to one of.
Definition: vtkRenderedGraphRepresentation.h:151
vtkRenderedGraphRepresentation::SetEdgeLabelTextProperty
virtual void SetEdgeLabelTextProperty(vtkTextProperty *p)
vtkRenderedGraphRepresentation::SetScalingArrayName
virtual void SetScalingArrayName(const char *name)
Set the glyph scaling array name.
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategyToPassThrough
void SetEdgeLayoutStrategyToPassThrough()
Set/get the graph layout strategy.
Definition: vtkRenderedGraphRepresentation.h:297
vtkRenderedGraphRepresentation::SetVertexScalarBarVisibility
virtual void SetVertexScalarBarVisibility(bool b)
Vertex/edge scalar bar visibility.
vtkRenderedGraphRepresentation::SetLayoutStrategyToRandom
void SetLayoutStrategyToRandom()
Set predefined layout strategies.
Definition: vtkRenderedGraphRepresentation.h:241
vtkRenderedGraphRepresentation::SetLayoutStrategy
virtual void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
Set/get the graph layout strategy.
vtkRenderedGraphRepresentation::GetEdgeVisibility
virtual bool GetEdgeVisibility()
vtkRenderedGraphRepresentation::GetVertexIconArrayName
virtual const char * GetVertexIconArrayName()
vtkRenderedGraphRepresentation::HideEdgeLabelsOnInteraction
bool HideEdgeLabelsOnInteraction
Definition: vtkRenderedGraphRepresentation.h:458
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToIgnoreSelection
virtual void SetVertexIconSelectionModeToIgnoreSelection()
Set the mode to one of.
Definition: vtkRenderedGraphRepresentation.h:152
vtkRenderedGraphRepresentation::IsLayoutComplete
virtual bool IsLayoutComplete()
Whether the current graph layout is complete.
vtkRenderedGraphRepresentation::GetScalingArrayName
virtual const char * GetScalingArrayName()
Set the glyph scaling array name.
vtkRenderedGraphRepresentation::SetEdgeIconAlignment
virtual void SetEdgeIconAlignment(int align)
vtkRenderedGraphRepresentation::SetVertexIconVisibility
virtual void SetVertexIconVisibility(bool b)
vtkRenderedGraphRepresentation::SetVertexSelectedIcon
virtual void SetVertexSelectedIcon(int icon)
vtkRenderedGraphRepresentation::EdgeLayout
vtkSmartPointer< vtkEdgeLayout > EdgeLayout
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:417
vtkRenderedGraphRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Called by the view to add/remove this representation.
vtkRenderedGraphRepresentation::SetEdgeIconArrayName
virtual void SetEdgeIconArrayName(const char *name)
vtkRenderedGraphRepresentation::GetVertexIconPriorityArrayName
virtual const char * GetVertexIconPriorityArrayName()
vtkRenderedGraphRepresentation::New
static vtkRenderedGraphRepresentation * New()
vtkRenderedGraphRepresentation::SetLayoutStrategyToPassThrough
void SetLayoutStrategyToPassThrough()
Definition: vtkRenderedGraphRepresentation.h:247
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToSelectedOffset
virtual void SetVertexIconSelectionModeToSelectedOffset()
Set the mode to one of.
Definition: vtkRenderedGraphRepresentation.h:150
vtkRenderedGraphRepresentation::SetEdgeColorArrayName
virtual void SetEdgeColorArrayName(const char *name)
vtkRenderedGraphRepresentation::SetColorVerticesByArray
virtual void SetColorVerticesByArray(bool b)
vtkRenderedGraphRepresentation::GetVertexLabelPriorityArrayName
virtual const char * GetVertexLabelPriorityArrayName()
vtkRenderedGraphRepresentation::GetEdgeScalarBar
virtual vtkScalarBarWidget * GetEdgeScalarBar()
Obtain the scalar bar widget used to draw a legend for the vertices/edges.
vtkRenderedGraphRepresentation::RemoveHiddenGraph
vtkSmartPointer< vtkRemoveHiddenData > RemoveHiddenGraph
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:429
vtkRenderedGraphRepresentation::SetUseVertexIconTypeMap
virtual void SetUseVertexIconTypeMap(bool b)
vtkRenderedGraphRepresentation::SetVertexIconAlignment
virtual void SetVertexIconAlignment(int align)
vtkRenderedGraphRepresentation::GetVertexLabelVisibility
virtual bool GetVertexLabelVisibility()
vtkRenderedGraphRepresentation::VertexMapper
vtkSmartPointer< vtkPolyDataMapper > VertexMapper
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:422
vtkRenderedGraphRepresentation::EdgeLayoutStrategyName
char * EdgeLayoutStrategyName
Definition: vtkRenderedGraphRepresentation.h:455
vtkRenderedGraphRepresentation::VertexGlyph
vtkSmartPointer< vtkGraphToGlyphs > VertexGlyph
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:421
vtkRenderedGraphRepresentation::GetUseVertexIconTypeMap
virtual bool GetUseVertexIconTypeMap()
vtkRenderedGraphRepresentation::EdgeMapper
vtkSmartPointer< vtkPolyDataMapper > EdgeMapper
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:419
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategyToGeo
virtual void SetEdgeLayoutStrategyToGeo(double explodeFactor=0.2)
Set the edge layout strategy to a geospatial arced strategy appropriate for vtkGeoView.
vtkRenderedGraphRepresentation::Coincident
vtkSmartPointer< vtkPerturbCoincidentVertices > Coincident
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:416
vtkRenderedGraphRepresentation::SetVertexColorArrayName
virtual void SetVertexColorArrayName(const char *name)
vtkRenderedGraphRepresentation::SetEdgeLabelPriorityArrayName
virtual void SetEdgeLabelPriorityArrayName(const char *name)
vtkRenderedGraphRepresentation::VertexHoverArrayName
char * VertexHoverArrayName
Definition: vtkRenderedGraphRepresentation.h:438
vtkRenderedGraphRepresentation::GetUseEdgeIconTypeMap
virtual bool GetUseEdgeIconTypeMap()
vtkRenderedGraphRepresentation::SetEdgeIconPriorityArrayName
virtual void SetEdgeIconPriorityArrayName(const char *name)
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToSelectedIcon
virtual void SetVertexIconSelectionModeToSelectedIcon()
Set the mode to one of.
Definition: vtkRenderedGraphRepresentation.h:149
vtkRenderedGraphRepresentation::SetVertexLabelVisibility
virtual void SetVertexLabelVisibility(bool b)
vtkRenderedGraphRepresentation::SetEnableVerticesByArray
virtual void SetEnableVerticesByArray(bool b)
vtkRenderedGraphRepresentation::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Connect inputs to internal pipeline.
vtkRenderedGraphRepresentation::ScalingArrayNameInternal
char * ScalingArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:450
vtkRenderedGraphRepresentation::GraphToPoints
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:412
vtkRenderedGraphRepresentation::SetLayoutStrategyToCircular
void SetLayoutStrategyToCircular()
Definition: vtkRenderedGraphRepresentation.h:248
vtkRenderedGraphRepresentation::SetUseEdgeIconTypeMap
virtual void SetUseEdgeIconTypeMap(bool b)
vtkRenderedGraphRepresentation::ConvertSelection
vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel) override
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
vtkRenderedGraphRepresentation::VertexColorArrayNameInternal
char * VertexColorArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:442
vtkRenderedGraphRepresentation::GetEdgeLabelArrayName
virtual const char * GetEdgeLabelArrayName()
vtkRenderedGraphRepresentation::GetLayoutStrategy
virtual vtkGraphLayoutStrategy * GetLayoutStrategy()
Set/get the graph layout strategy.
vtkRenderedGraphRepresentation::SetVertexIconPriorityArrayName
virtual void SetVertexIconPriorityArrayName(const char *name)
vtkRenderedGraphRepresentation::GetEdgeColorArrayName
virtual const char * GetEdgeColorArrayName()
vtkRenderedGraphRepresentation::SetGlyphType
virtual void SetGlyphType(int type)
Set the graph vertex glyph type.
vtkRenderedGraphRepresentation::SetVertexLabelPriorityArrayName
virtual void SetVertexLabelPriorityArrayName(const char *name)
vtkRenderedGraphRepresentation::SetEdgeLabelArrayName
virtual void SetEdgeLabelArrayName(const char *name)
vtkRenderedGraphRepresentation::EdgeActor
vtkSmartPointer< vtkActor > EdgeActor
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:420
vtkRenderedGraphRepresentation::VertexScalarBar
vtkSmartPointer< vtkScalarBarWidget > VertexScalarBar
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:427
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategyToArcParallel
void SetEdgeLayoutStrategyToArcParallel()
Set/get the graph layout strategy.
Definition: vtkRenderedGraphRepresentation.h:296
vtkRenderedGraphRepresentation::~vtkRenderedGraphRepresentation
~vtkRenderedGraphRepresentation() override
vtkRenderedGraphRepresentation::OutlineGlyph
vtkSmartPointer< vtkGraphToGlyphs > OutlineGlyph
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:424
vtkRenderedGraphRepresentation::SetLayoutStrategyToAssignCoordinates
virtual void SetLayoutStrategyToAssignCoordinates(const char *xarr, const char *yarr=nullptr, const char *zarr=nullptr)
Set the layout strategy to use coordinates from arrays.
vtkRenderedGraphRepresentation::OutlineMapper
vtkSmartPointer< vtkPolyDataMapper > OutlineMapper
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:425
vtkRenderedGraphRepresentation::SetVertexIconArrayName
virtual void SetVertexIconArrayName(const char *name)
vtkRenderedGraphRepresentation::VertexDegree
vtkSmartPointer< vtkVertexDegree > VertexDegree
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:409
vtkRenderedGraphRepresentation::EdgeSelection
bool EdgeSelection
Definition: vtkRenderedGraphRepresentation.h:460
vtkRenderedGraphRepresentation::SetLayoutStrategyToCone
void SetLayoutStrategyToCone()
Definition: vtkRenderedGraphRepresentation.h:251
vtkRenderedGraphRepresentation::GraphToPoly
vtkSmartPointer< vtkGraphToPolyData > GraphToPoly
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:418
vtkRenderedGraphRepresentation::SetEdgeScalarBarVisibility
virtual void SetEdgeScalarBarVisibility(bool b)
Vertex/edge scalar bar visibility.
vtkRenderedGraphRepresentation::GetEdgeScalarBarVisibility
virtual bool GetEdgeScalarBarVisibility()
Vertex/edge scalar bar visibility.
vtkRenderedGraphRepresentation::LayoutStrategyName
char * LayoutStrategyName
Definition: vtkRenderedGraphRepresentation.h:453
vtkRenderedGraphRepresentation::VertexIconGlyph
vtkSmartPointer< vtkIconGlyphFilter > VertexIconGlyph
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:433
vtkRenderedGraphRepresentation::SetLayoutStrategyToSpanTree
void SetLayoutStrategyToSpanTree()
Definition: vtkRenderedGraphRepresentation.h:252
vtkRenderedGraphRepresentation::GetEdgeLayoutStrategy
virtual vtkEdgeLayoutStrategy * GetEdgeLayoutStrategy()
Set/get the graph layout strategy.
vtkRenderedGraphRepresentation::ComputeSelectedGraphBounds
void ComputeSelectedGraphBounds(double bounds[6])
Compute the bounding box of the selected subgraph.
vtkRenderedGraphRepresentation::GetVertexScalarBarVisibility
virtual bool GetVertexScalarBarVisibility()
Vertex/edge scalar bar visibility.
vtkRenderedGraphRepresentation::SetEdgeLabelVisibility
virtual void SetEdgeLabelVisibility(bool b)
vtkRenderedGraphRepresentation::GetVertexIconVisibility
virtual bool GetVertexIconVisibility()
vtkRenderedRepresentation
Definition: vtkRenderedRepresentation.h:27
vtkScalarBarWidget
2D widget for manipulating a scalar bar
Definition: vtkScalarBarWidget.h:46
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:65
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:59
vtkSmartPointer< vtkApplyColors >
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:35
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition: vtkTexturedActor2D.h:31
vtkTransformCoordinateSystems
transform points into different coordinate systems
Definition: vtkTransformCoordinateSystems.h:28
vtkVertexDegree
Adds an attribute array with the degree of each vertex.
Definition: vtkVertexDegree.h:28
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:43
vtkView
The superclass for all views.
Definition: vtkView.h:49
vtkX3D::mode
@ mode
Definition: vtkX3D.h:247
vtkX3D::type
@ type
Definition: vtkX3D.h:516
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkX3D::string
@ string
Definition: vtkX3D.h:490
vtkRenderedRepresentation.h
vtkSmartPointer.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315