VTK  9.0.1
vtkRenderedGraphRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderedGraphRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
26 #ifndef vtkRenderedGraphRepresentation_h
27 #define vtkRenderedGraphRepresentation_h
28 
30 #include "vtkSmartPointer.h" // for SP ivars
31 #include "vtkViewsInfovisModule.h" // For export macro
32 
33 class vtkActor;
34 class vtkApplyColors;
35 class vtkApplyIcons;
36 class vtkEdgeCenters;
37 class vtkEdgeLayout;
39 class vtkGraphLayout;
41 class vtkGraphToGlyphs;
42 class vtkGraphToPoints;
43 class vtkGraphToPolyData;
44 class vtkIconGlyphFilter;
45 class vtkInformation;
47 class vtkLookupTable;
50 class vtkPolyData;
51 class vtkPolyDataMapper;
54 class vtkRenderView;
55 class vtkScalarBarWidget;
56 class vtkScalarsToColors;
57 class vtkTextProperty;
58 class vtkTexturedActor2D;
60 class vtkVertexDegree;
61 class vtkView;
62 class vtkViewTheme;
63 
64 class VTKVIEWSINFOVIS_EXPORT vtkRenderedGraphRepresentation : public vtkRenderedRepresentation
65 {
66 public:
69  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
71  // ------------------------------------------------------------------------
72  // Vertex labels
73 
74  virtual void SetVertexLabelArrayName(const char* name);
75  virtual const char* GetVertexLabelArrayName();
76  virtual void SetVertexLabelPriorityArrayName(const char* name);
77  virtual const char* GetVertexLabelPriorityArrayName();
78  virtual void SetVertexLabelVisibility(bool b);
79  virtual bool GetVertexLabelVisibility();
80  vtkBooleanMacro(VertexLabelVisibility, bool);
83  vtkSetStringMacro(VertexHoverArrayName);
84  vtkGetStringMacro(VertexHoverArrayName);
86 
89  vtkSetMacro(HideVertexLabelsOnInteraction, bool);
90  vtkGetMacro(HideVertexLabelsOnInteraction, bool);
91  vtkBooleanMacro(HideVertexLabelsOnInteraction, bool);
93 
94  // ------------------------------------------------------------------------
95  // Edge labels
96 
97  virtual void SetEdgeLabelArrayName(const char* name);
98  virtual const char* GetEdgeLabelArrayName();
99  virtual void SetEdgeLabelPriorityArrayName(const char* name);
100  virtual const char* GetEdgeLabelPriorityArrayName();
101  virtual void SetEdgeLabelVisibility(bool b);
102  virtual bool GetEdgeLabelVisibility();
103  vtkBooleanMacro(EdgeLabelVisibility, bool);
106  vtkSetStringMacro(EdgeHoverArrayName);
107  vtkGetStringMacro(EdgeHoverArrayName);
109 
112  vtkSetMacro(HideEdgeLabelsOnInteraction, bool);
113  vtkGetMacro(HideEdgeLabelsOnInteraction, bool);
114  vtkBooleanMacro(HideEdgeLabelsOnInteraction, bool);
116 
117  // ------------------------------------------------------------------------
118  // Vertex icons
119 
120  virtual void SetVertexIconArrayName(const char* name);
121  virtual const char* GetVertexIconArrayName();
122  virtual void SetVertexIconPriorityArrayName(const char* name);
123  virtual const char* GetVertexIconPriorityArrayName();
124  virtual void SetVertexIconVisibility(bool b);
125  virtual bool GetVertexIconVisibility();
126  vtkBooleanMacro(VertexIconVisibility, bool);
127  virtual void AddVertexIconType(const char* name, int type);
128  virtual void ClearVertexIconTypes();
129  virtual void SetUseVertexIconTypeMap(bool b);
130  virtual bool GetUseVertexIconTypeMap();
131  vtkBooleanMacro(UseVertexIconTypeMap, bool);
132  virtual void SetVertexIconAlignment(int align);
133  virtual int GetVertexIconAlignment();
134  virtual void SetVertexSelectedIcon(int icon);
135  virtual int GetVertexSelectedIcon();
136  virtual void SetVertexDefaultIcon(int icon);
137  virtual int GetVertexDefaultIcon();
138 
140 
150  virtual void SetVertexIconSelectionMode(int mode);
152  virtual void SetVertexIconSelectionModeToSelectedIcon() { this->SetVertexIconSelectionMode(0); }
153  virtual void SetVertexIconSelectionModeToSelectedOffset() { this->SetVertexIconSelectionMode(1); }
154  virtual void SetVertexIconSelectionModeToAnnotationIcon() { this->SetVertexIconSelectionMode(2); }
156  {
157  this->SetVertexIconSelectionMode(3);
158  }
160 
161  // ------------------------------------------------------------------------
162  // Edge icons
163 
164  virtual void SetEdgeIconArrayName(const char* name);
165  virtual const char* GetEdgeIconArrayName();
166  virtual void SetEdgeIconPriorityArrayName(const char* name);
167  virtual const char* GetEdgeIconPriorityArrayName();
168  virtual void SetEdgeIconVisibility(bool b);
169  virtual bool GetEdgeIconVisibility();
170  vtkBooleanMacro(EdgeIconVisibility, bool);
171  virtual void AddEdgeIconType(const char* name, int type);
172  virtual void ClearEdgeIconTypes();
173  virtual void SetUseEdgeIconTypeMap(bool b);
174  virtual bool GetUseEdgeIconTypeMap();
175  vtkBooleanMacro(UseEdgeIconTypeMap, bool);
176  virtual void SetEdgeIconAlignment(int align);
177  virtual int GetEdgeIconAlignment();
178 
179  // ------------------------------------------------------------------------
180  // Vertex colors
181 
182  virtual void SetColorVerticesByArray(bool b);
183  virtual bool GetColorVerticesByArray();
184  vtkBooleanMacro(ColorVerticesByArray, bool);
185  virtual void SetVertexColorArrayName(const char* name);
186  virtual const char* GetVertexColorArrayName();
187 
188  // ------------------------------------------------------------------------
189  // Edge colors
190 
191  virtual void SetColorEdgesByArray(bool b);
192  virtual bool GetColorEdgesByArray();
193  vtkBooleanMacro(ColorEdgesByArray, bool);
194  virtual void SetEdgeColorArrayName(const char* name);
195  virtual const char* GetEdgeColorArrayName();
196 
197  // ------------------------------------------------------------------------
198  // Enabled vertices
199 
200  virtual void SetEnableVerticesByArray(bool b);
201  virtual bool GetEnableVerticesByArray();
202  vtkBooleanMacro(EnableVerticesByArray, bool);
203  virtual void SetEnabledVerticesArrayName(const char* name);
204  virtual const char* GetEnabledVerticesArrayName();
205 
206  // ------------------------------------------------------------------------
207  // Enabled edges
208 
209  virtual void SetEnableEdgesByArray(bool b);
210  virtual bool GetEnableEdgesByArray();
211  vtkBooleanMacro(EnableEdgesByArray, bool);
212  virtual void SetEnabledEdgesArrayName(const char* name);
213  virtual const char* GetEnabledEdgesArrayName();
214 
215  virtual void SetEdgeVisibility(bool b);
216  virtual bool GetEdgeVisibility();
217  vtkBooleanMacro(EdgeVisibility, bool);
218 
219  void SetEdgeSelection(bool b);
221 
222  // ------------------------------------------------------------------------
223  // Vertex layout strategy
224 
226 
229  virtual void SetLayoutStrategy(vtkGraphLayoutStrategy* strategy);
232 
234 
237  virtual void SetLayoutStrategy(const char* name);
238  vtkGetStringMacro(LayoutStrategyName);
240 
244  void SetLayoutStrategyToRandom() { this->SetLayoutStrategy("Random"); }
245  void SetLayoutStrategyToForceDirected() { this->SetLayoutStrategy("Force Directed"); }
246  void SetLayoutStrategyToSimple2D() { this->SetLayoutStrategy("Simple 2D"); }
247  void SetLayoutStrategyToClustering2D() { this->SetLayoutStrategy("Clustering 2D"); }
248  void SetLayoutStrategyToCommunity2D() { this->SetLayoutStrategy("Community 2D"); }
249  void SetLayoutStrategyToFast2D() { this->SetLayoutStrategy("Fast 2D"); }
250  void SetLayoutStrategyToPassThrough() { this->SetLayoutStrategy("Pass Through"); }
251  void SetLayoutStrategyToCircular() { this->SetLayoutStrategy("Circular"); }
252  void SetLayoutStrategyToTree() { this->SetLayoutStrategy("Tree"); }
253  void SetLayoutStrategyToCosmicTree() { this->SetLayoutStrategy("Cosmic Tree"); }
254  void SetLayoutStrategyToCone() { this->SetLayoutStrategy("Cone"); }
255  void SetLayoutStrategyToSpanTree() { this->SetLayoutStrategy("Span Tree"); }
256 
262  const char* xarr, const char* yarr = nullptr, const char* zarr = nullptr);
263 
275  bool radial, double angle = 90, double leafSpacing = 0.9, double logSpacing = 1.0);
276 
287  virtual void SetLayoutStrategyToCosmicTree(const char* nodeSizeArrayName,
288  bool sizeLeafNodesOnly = true, int layoutDepth = 0, vtkIdType layoutRoot = -1);
289 
290  // ------------------------------------------------------------------------
291  // Edge layout strategy
292 
294 
299  void SetEdgeLayoutStrategyToArcParallel() { this->SetEdgeLayoutStrategy("Arc Parallel"); }
300  void SetEdgeLayoutStrategyToPassThrough() { this->SetEdgeLayoutStrategy("Pass Through"); }
302 
307  virtual void SetEdgeLayoutStrategyToGeo(double explodeFactor = 0.2);
308 
310 
313  virtual void SetEdgeLayoutStrategy(const char* name);
314  vtkGetStringMacro(EdgeLayoutStrategyName);
316 
317  // ------------------------------------------------------------------------
318  // Miscellaneous
319 
323  void ApplyViewTheme(vtkViewTheme* theme) override;
324 
326 
329  virtual void SetGlyphType(int type);
330  virtual int GetGlyphType();
332 
334 
337  virtual void SetScaling(bool b);
338  virtual bool GetScaling();
339  vtkBooleanMacro(Scaling, bool);
341 
343 
346  virtual void SetScalingArrayName(const char* name);
347  virtual const char* GetScalingArrayName();
349 
351 
354  virtual void SetVertexScalarBarVisibility(bool b);
356  virtual void SetEdgeScalarBarVisibility(bool b);
359 
361 
367 
371  virtual bool IsLayoutComplete();
372 
376  virtual void UpdateLayout();
377 
381  void ComputeSelectedGraphBounds(double bounds[6]);
382 
383 protected:
386 
388 
391  bool AddToView(vtkView* view) override;
392  bool RemoveFromView(vtkView* view) override;
394 
395  void PrepareForRendering(vtkRenderView* view) override;
396 
398 
400 
404  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
405  vtkInformationVector* outputVector) override;
406 
408 
440 
443 
444  vtkSetStringMacro(VertexColorArrayNameInternal);
445  vtkGetStringMacro(VertexColorArrayNameInternal);
447 
448  vtkSetStringMacro(EdgeColorArrayNameInternal);
449  vtkGetStringMacro(EdgeColorArrayNameInternal);
451 
452  vtkSetStringMacro(ScalingArrayNameInternal);
453  vtkGetStringMacro(ScalingArrayNameInternal);
455 
456  vtkSetStringMacro(LayoutStrategyName);
458  vtkSetStringMacro(EdgeLayoutStrategyName);
462 
464 
465 private:
467  void operator=(const vtkRenderedGraphRepresentation&) = delete;
468 };
469 
470 #endif
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:37
vtkRenderedGraphRepresentation::EdgeCenters
vtkSmartPointer< vtkEdgeCenters > EdgeCenters
Definition: vtkRenderedGraphRepresentation.h:414
vtkRenderedGraphRepresentation::OutlineGlyph
vtkSmartPointer< vtkGraphToGlyphs > OutlineGlyph
Definition: vtkRenderedGraphRepresentation.h:427
vtkRenderedGraphRepresentation::VertexHoverArrayName
char * VertexHoverArrayName
Definition: vtkRenderedGraphRepresentation.h:441
vtkScalarBarWidget
2D widget for manipulating a scalar bar
Definition: vtkScalarBarWidget.h:45
vtkGraphToPolyData
convert a vtkGraph to vtkPolyData
Definition: vtkGraphToPolyData.h:42
vtkRenderedGraphRepresentation::SetEdgeLabelArrayName
virtual void SetEdgeLabelArrayName(const char *name)
vtkRenderedGraphRepresentation::ApplyViewTheme
void ApplyViewTheme(vtkViewTheme *theme) override
Apply a theme to this representation.
vtkRenderedGraphRepresentation::EdgeSelection
bool EdgeSelection
Definition: vtkRenderedGraphRepresentation.h:463
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::GetUseVertexIconTypeMap
virtual bool GetUseVertexIconTypeMap()
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:45
vtkRenderedGraphRepresentation::SetEdgeIconAlignment
virtual void SetEdgeIconAlignment(int align)
vtkRenderedGraphRepresentation::GetEdgeIconPriorityArrayName
virtual const char * GetEdgeIconPriorityArrayName()
vtkRenderView
A view containing a renderer.
Definition: vtkRenderView.h:59
vtkRenderedGraphRepresentation::GetVertexColorArrayName
virtual const char * GetVertexColorArrayName()
vtkRenderedGraphRepresentation::GetEdgeScalarBarVisibility
virtual bool GetEdgeScalarBarVisibility()
vtkRenderedGraphRepresentation::SetLayoutStrategyToPassThrough
void SetLayoutStrategyToPassThrough()
Definition: vtkRenderedGraphRepresentation.h:250
vtkRenderedGraphRepresentation::vtkRenderedGraphRepresentation
vtkRenderedGraphRepresentation()
vtkRenderedGraphRepresentation::SetVertexScalarBarVisibility
virtual void SetVertexScalarBarVisibility(bool b)
Vertex/edge scalar bar visibility.
vtkRenderedGraphRepresentation::GetEdgeLayoutStrategy
virtual vtkEdgeLayoutStrategy * GetEdgeLayoutStrategy()
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition: vtkTexturedActor2D.h:39
vtkRenderedRepresentation
Definition: vtkRenderedRepresentation.h:43
vtkVertexDegree
Adds an attribute array with the degree of each vertex.
Definition: vtkVertexDegree.h:37
vtkX3D::type
@ type
Definition: vtkX3D.h:522
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkRenderedGraphRepresentation::EdgeColorArrayNameInternal
char * EdgeColorArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:449
vtkRenderedGraphRepresentation::EdgeScalarBar
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
Definition: vtkRenderedGraphRepresentation.h:431
vtkRenderedGraphRepresentation::SetEdgeScalarBarVisibility
virtual void SetEdgeScalarBarVisibility(bool b)
vtkRenderedGraphRepresentation::SetScaling
virtual void SetScaling(bool b)
Set whether to scale vertex glyphs.
vtkRenderedGraphRepresentation::GetGlyphType
virtual int GetGlyphType()
vtkRenderedGraphRepresentation::SetLayoutStrategyToForceDirected
void SetLayoutStrategyToForceDirected()
Definition: vtkRenderedGraphRepresentation.h:245
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:46
vtkRenderedGraphRepresentation::ApplyColors
vtkSmartPointer< vtkApplyColors > ApplyColors
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:411
vtkRenderedGraphRepresentation::EdgeMapper
vtkSmartPointer< vtkPolyDataMapper > EdgeMapper
Definition: vtkRenderedGraphRepresentation.h:422
vtkRenderedGraphRepresentation::OutlineActor
vtkSmartPointer< vtkActor > OutlineActor
Definition: vtkRenderedGraphRepresentation.h:429
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategyToGeo
virtual void SetEdgeLayoutStrategyToGeo(double explodeFactor=0.2)
Set the edge layout strategy to a geospatial arced strategy appropriate for vtkGeoView.
vtkRenderedGraphRepresentation::SetLayoutStrategyToClustering2D
void SetLayoutStrategyToClustering2D()
Definition: vtkRenderedGraphRepresentation.h:247
vtkRenderedGraphRepresentation::VertexColorArrayNameInternal
char * VertexColorArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:445
vtkRenderedGraphRepresentation::ConvertSelection
vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel) override
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
vtkRenderedGraphRepresentation::GetEdgeIconArrayName
virtual const char * GetEdgeIconArrayName()
vtkRenderedGraphRepresentation::OutlineMapper
vtkSmartPointer< vtkPolyDataMapper > OutlineMapper
Definition: vtkRenderedGraphRepresentation.h:428
vtkRenderedGraphRepresentation::SetEdgeIconArrayName
virtual void SetEdgeIconArrayName(const char *name)
vtkSmartPointer< vtkApplyColors >
vtkRenderedGraphRepresentation::GetEdgeLabelPriorityArrayName
virtual const char * GetEdgeLabelPriorityArrayName()
vtkRenderedGraphRepresentation::SetColorEdgesByArray
virtual void SetColorEdgesByArray(bool b)
vtkEdgeLayout
layout graph edges
Definition: vtkEdgeLayout.h:39
vtkRenderedGraphRepresentation::VertexScalarBar
vtkSmartPointer< vtkScalarBarWidget > VertexScalarBar
Definition: vtkRenderedGraphRepresentation.h:430
vtkRenderedGraphRepresentation::HideEdgeLabelsOnInteraction
bool HideEdgeLabelsOnInteraction
Definition: vtkRenderedGraphRepresentation.h:461
vtkRenderedGraphRepresentation::GetEdgeLabelVisibility
virtual bool GetEdgeLabelVisibility()
vtkRenderedGraphRepresentation::SetEdgeLabelTextProperty
virtual void SetEdgeLabelTextProperty(vtkTextProperty *p)
vtkRenderedGraphRepresentation::GetEdgeIconVisibility
virtual bool GetEdgeIconVisibility()
vtkRenderedGraphRepresentation::SetVertexSelectedIcon
virtual void SetVertexSelectedIcon(int icon)
vtkApplyColors
apply colors to a data set.
Definition: vtkApplyColors.h:87
vtkRenderedGraphRepresentation::SetLayoutStrategyToCommunity2D
void SetLayoutStrategyToCommunity2D()
Definition: vtkRenderedGraphRepresentation.h:248
vtkRenderedGraphRepresentation::VertexLabelHierarchy
vtkSmartPointer< vtkPointSetToLabelHierarchy > VertexLabelHierarchy
Definition: vtkRenderedGraphRepresentation.h:416
vtkRenderedGraphRepresentation::AddVertexIconType
virtual void AddVertexIconType(const char *name, int type)
vtkRenderedGraphRepresentation::EdgeLabelHierarchy
vtkSmartPointer< vtkPointSetToLabelHierarchy > EdgeLabelHierarchy
Definition: vtkRenderedGraphRepresentation.h:417
vtkRenderedGraphRepresentation::SetVertexColorArrayName
virtual void SetVertexColorArrayName(const char *name)
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:58
vtkRenderedGraphRepresentation::GetEnabledEdgesArrayName
virtual const char * GetEnabledEdgesArrayName()
vtkRenderedGraphRepresentation::GetScalingArrayName
virtual const char * GetScalingArrayName()
vtkRenderedGraphRepresentation::AddEdgeIconType
virtual void AddEdgeIconType(const char *name, int type)
vtkIconGlyphFilter
Filter that generates a polydata consisting of quads with texture coordinates referring to a set of i...
Definition: vtkIconGlyphFilter.h:59
vtkRenderedGraphRepresentation
Definition: vtkRenderedGraphRepresentation.h:65
vtkRenderedGraphRepresentation::GetEdgeColorArrayName
virtual const char * GetEdgeColorArrayName()
vtkRenderedGraphRepresentation::EdgeLayoutStrategyName
char * EdgeLayoutStrategyName
Definition: vtkRenderedGraphRepresentation.h:458
vtkRenderedGraphRepresentation::SetVertexIconVisibility
virtual void SetVertexIconVisibility(bool b)
vtkRenderedGraphRepresentation::VertexMapper
vtkSmartPointer< vtkPolyDataMapper > VertexMapper
Definition: vtkRenderedGraphRepresentation.h:425
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategy
virtual void SetEdgeLayoutStrategy(const char *name)
Set the edge layout strategy by name.
vtkRenderedGraphRepresentation::ScalingArrayNameInternal
char * ScalingArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:453
vtkRenderedRepresentation.h
vtkRenderedGraphRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
vtkRenderedGraphRepresentation::VertexIconMapper
vtkSmartPointer< vtkPolyDataMapper2D > VertexIconMapper
Definition: vtkRenderedGraphRepresentation.h:437
vtkRenderedGraphRepresentation::GetVertexLabelTextProperty
virtual vtkTextProperty * GetVertexLabelTextProperty()
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.
vtkPerturbCoincidentVertices
Perturbs vertices that are coincident.
Definition: vtkPerturbCoincidentVertices.h:42
vtkView
The superclass for all views.
Definition: vtkView.h:55
vtkGraphToGlyphs
create glyphs for graph vertices
Definition: vtkGraphToGlyphs.h:48
vtkGraphToPoints
convert a vtkGraph a set of points.
Definition: vtkGraphToPoints.h:38
vtkRenderedGraphRepresentation::GetEdgeIconAlignment
virtual int GetEdgeIconAlignment()
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:43
vtkRenderedGraphRepresentation::EdgeHoverArrayName
char * EdgeHoverArrayName
Definition: vtkRenderedGraphRepresentation.h:442
vtkRenderedGraphRepresentation::AddToView
bool AddToView(vtkView *view) override
Called by the view to add/remove this representation.
vtkRenderedGraphRepresentation::GetVertexScalarBar
virtual vtkScalarBarWidget * GetVertexScalarBar()
Obtain the scalar bar widget used to draw a legend for the vertices/edges.
vtkRenderedGraphRepresentation::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Connect inputs to internal pipeline.
vtkRenderedGraphRepresentation::GetVertexIconSelectionMode
virtual int GetVertexIconSelectionMode()
vtkRenderedGraphRepresentation::SetLayoutStrategyToCosmicTree
void SetLayoutStrategyToCosmicTree()
Definition: vtkRenderedGraphRepresentation.h:253
vtkRenderedGraphRepresentation::SetEdgeIconVisibility
virtual void SetEdgeIconVisibility(bool b)
vtkRenderedGraphRepresentation::VertexActor
vtkSmartPointer< vtkActor > VertexActor
Definition: vtkRenderedGraphRepresentation.h:426
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToSelectedOffset
virtual void SetVertexIconSelectionModeToSelectedOffset()
Definition: vtkRenderedGraphRepresentation.h:153
vtkRenderedGraphRepresentation::SetEnabledEdgesArrayName
virtual void SetEnabledEdgesArrayName(const char *name)
vtkRenderedGraphRepresentation::SetLayoutStrategyToSimple2D
void SetLayoutStrategyToSimple2D()
Definition: vtkRenderedGraphRepresentation.h:246
vtkRenderedGraphRepresentation::VertexIconPoints
vtkSmartPointer< vtkGraphToPoints > VertexIconPoints
Definition: vtkRenderedGraphRepresentation.h:434
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToIgnoreSelection
virtual void SetVertexIconSelectionModeToIgnoreSelection()
Definition: vtkRenderedGraphRepresentation.h:155
vtkRenderedGraphRepresentation::GetVertexIconPriorityArrayName
virtual const char * GetVertexIconPriorityArrayName()
vtkRenderedGraphRepresentation::GetVertexIconAlignment
virtual int GetVertexIconAlignment()
vtkRenderedGraphRepresentation::GetEdgeVisibility
virtual bool GetEdgeVisibility()
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToSelectedIcon
virtual void SetVertexIconSelectionModeToSelectedIcon()
Definition: vtkRenderedGraphRepresentation.h:152
vtkRenderedGraphRepresentation::GraphToPoly
vtkSmartPointer< vtkGraphToPolyData > GraphToPoly
Definition: vtkRenderedGraphRepresentation.h:421
vtkRenderedGraphRepresentation::GetVertexScalarBarVisibility
virtual bool GetVertexScalarBarVisibility()
vtkRenderedGraphRepresentation::SetVertexIconPriorityArrayName
virtual void SetVertexIconPriorityArrayName(const char *name)
vtkTransformCoordinateSystems
transform points into different coordinate systems
Definition: vtkTransformCoordinateSystems.h:36
vtkRenderedGraphRepresentation::GetColorVerticesByArray
virtual bool GetColorVerticesByArray()
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
vtkRenderedGraphRepresentation::HideVertexLabelsOnInteraction
bool HideVertexLabelsOnInteraction
Definition: vtkRenderedGraphRepresentation.h:460
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkRenderedGraphRepresentation::SetScalingArrayName
virtual void SetScalingArrayName(const char *name)
Set the glyph scaling array name.
vtkUnicodeString
String class that stores Unicode text.
Definition: vtkUnicodeString.h:70
vtkRenderedGraphRepresentation::GetVertexIconVisibility
virtual bool GetVertexIconVisibility()
vtkRenderedGraphRepresentation::GraphToPoints
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
Definition: vtkRenderedGraphRepresentation.h:415
vtkRenderedGraphRepresentation::GetEnableVerticesByArray
virtual bool GetEnableVerticesByArray()
vtkRenderedGraphRepresentation::ClearVertexIconTypes
virtual void ClearVertexIconTypes()
vtkSmartPointer.h
vtkRenderedGraphRepresentation::SetLayoutStrategy
virtual void SetLayoutStrategy(const char *name)
Get/set the layout strategy by name.
vtkRenderedGraphRepresentation::SetEdgeColorArrayName
virtual void SetEdgeColorArrayName(const char *name)
vtkPointSetToLabelHierarchy
build a label hierarchy for a graph or point set.
Definition: vtkPointSetToLabelHierarchy.h:42
vtkRenderedGraphRepresentation::GetLayoutStrategy
virtual vtkGraphLayoutStrategy * GetLayoutStrategy()
vtkRenderedGraphRepresentation::GetHoverTextInternal
vtkUnicodeString GetHoverTextInternal(vtkSelection *sel) override
Subclasses may override this method to generate the hover text.
vtkRenderedGraphRepresentation::SetEnableVerticesByArray
virtual void SetEnableVerticesByArray(bool b)
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategy
virtual void SetEdgeLayoutStrategy(vtkEdgeLayoutStrategy *strategy)
Set/get the graph layout strategy.
vtkRenderedGraphRepresentation::SetVertexDefaultIcon
virtual void SetVertexDefaultIcon(int icon)
vtkRenderedGraphRepresentation::VertexIconTransform
vtkSmartPointer< vtkTransformCoordinateSystems > VertexIconTransform
Definition: vtkRenderedGraphRepresentation.h:435
vtkRenderedGraphRepresentation::GetVertexSelectedIcon
virtual int GetVertexSelectedIcon()
vtkRenderedGraphRepresentation::EdgeLayout
vtkSmartPointer< vtkEdgeLayout > EdgeLayout
Definition: vtkRenderedGraphRepresentation.h:420
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:60
vtkRenderedGraphRepresentation::IsLayoutComplete
virtual bool IsLayoutComplete()
Whether the current graph layout is complete.
vtkRenderedGraphRepresentation::SetLayoutStrategyToFast2D
void SetLayoutStrategyToFast2D()
Definition: vtkRenderedGraphRepresentation.h:249
vtkRenderedGraphRepresentation::ComputeSelectedGraphBounds
void ComputeSelectedGraphBounds(double bounds[6])
Compute the bounding box of the selected subgraph.
vtkRenderedGraphRepresentation::GetEdgeScalarBar
virtual vtkScalarBarWidget * GetEdgeScalarBar()
vtkRenderedGraphRepresentation::SetVertexLabelPriorityArrayName
virtual void SetVertexLabelPriorityArrayName(const char *name)
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkRenderedGraphRepresentation::SetVertexIconArrayName
virtual void SetVertexIconArrayName(const char *name)
vtkRenderedGraphRepresentation::GetScaling
virtual bool GetScaling()
vtkRenderedGraphRepresentation::SetLayoutStrategyToSpanTree
void SetLayoutStrategyToSpanTree()
Definition: vtkRenderedGraphRepresentation.h:255
vtkRenderedGraphRepresentation::GetVertexDefaultIcon
virtual int GetVertexDefaultIcon()
vtkRenderedGraphRepresentation::ApplyVertexIcons
vtkSmartPointer< vtkApplyIcons > ApplyVertexIcons
Definition: vtkRenderedGraphRepresentation.h:433
vtkRenderedGraphRepresentation::SetLayoutStrategy
virtual void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
Set/get the graph layout strategy.
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:34
vtkRenderedGraphRepresentation::SetVertexLabelArrayName
virtual void SetVertexLabelArrayName(const char *name)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:69
vtkRenderedGraphRepresentation::SetVertexIconAlignment
virtual void SetVertexIconAlignment(int align)
vtkRenderedGraphRepresentation::VertexGlyph
vtkSmartPointer< vtkGraphToGlyphs > VertexGlyph
Definition: vtkRenderedGraphRepresentation.h:424
vtkRenderedGraphRepresentation::Layout
vtkSmartPointer< vtkGraphLayout > Layout
Definition: vtkRenderedGraphRepresentation.h:418
vtkRenderedGraphRepresentation::GetVertexLabelVisibility
virtual bool GetVertexLabelVisibility()
vtkRenderedGraphRepresentation::SetUseEdgeIconTypeMap
virtual void SetUseEdgeIconTypeMap(bool b)
vtkRenderedGraphRepresentation::SetEdgeIconPriorityArrayName
virtual void SetEdgeIconPriorityArrayName(const char *name)
vtkRenderedGraphRepresentation::ClearEdgeIconTypes
virtual void ClearEdgeIconTypes()
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToAnnotationIcon
virtual void SetVertexIconSelectionModeToAnnotationIcon()
Definition: vtkRenderedGraphRepresentation.h:154
vtkRenderedGraphRepresentation::SetEdgeLabelPriorityArrayName
virtual void SetEdgeLabelPriorityArrayName(const char *name)
vtkRenderedGraphRepresentation::GetEdgeLabelTextProperty
virtual vtkTextProperty * GetEdgeLabelTextProperty()
vtkRenderedGraphRepresentation::SetGlyphType
virtual void SetGlyphType(int type)
Set the graph vertex glyph type.
vtkRemoveHiddenData
Removes the rows/edges/vertices of input data flagged by ann.
Definition: vtkRemoveHiddenData.h:46
vtkRenderedGraphRepresentation::SetEnableEdgesByArray
virtual void SetEnableEdgesByArray(bool b)
vtkRenderedGraphRepresentation::VertexIconGlyph
vtkSmartPointer< vtkIconGlyphFilter > VertexIconGlyph
Definition: vtkRenderedGraphRepresentation.h:436
vtkRenderedGraphRepresentation::UpdateLayout
virtual void UpdateLayout()
Performs another iteration on the graph layout.
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::Coincident
vtkSmartPointer< vtkPerturbCoincidentVertices > Coincident
Definition: vtkRenderedGraphRepresentation.h:419
vtkRenderedGraphRepresentation::~vtkRenderedGraphRepresentation
~vtkRenderedGraphRepresentation() override
vtkRenderedGraphRepresentation::SetLayoutStrategyToTree
void SetLayoutStrategyToTree()
Definition: vtkRenderedGraphRepresentation.h:252
vtkRenderedGraphRepresentation::SetVertexIconSelectionMode
virtual void SetVertexIconSelectionMode(int mode)
Set the mode to one of.
vtkRenderedGraphRepresentation::GetColorEdgesByArray
virtual bool GetColorEdgesByArray()
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategyToArcParallel
void SetEdgeLayoutStrategyToArcParallel()
Definition: vtkRenderedGraphRepresentation.h:299
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkRenderedGraphRepresentation::SetEdgeSelection
void SetEdgeSelection(bool b)
vtkRenderedGraphRepresentation::GetEdgeLabelArrayName
virtual const char * GetEdgeLabelArrayName()
vtkRenderedGraphRepresentation::GetEdgeSelection
bool GetEdgeSelection()
vtkRenderedGraphRepresentation::RemoveHiddenGraph
vtkSmartPointer< vtkRemoveHiddenData > RemoveHiddenGraph
Definition: vtkRenderedGraphRepresentation.h:432
vtkRenderedGraphRepresentation::GetVertexLabelPriorityArrayName
virtual const char * GetVertexLabelPriorityArrayName()
vtkRenderedGraphRepresentation::SetEdgeLabelVisibility
virtual void SetEdgeLabelVisibility(bool b)
vtkX3D::mode
@ mode
Definition: vtkX3D.h:253
vtkEdgeLayoutStrategy
abstract superclass for all edge layout strategies
Definition: vtkEdgeLayoutStrategy.h:37
vtkRenderedGraphRepresentation::SetLayoutStrategyToCircular
void SetLayoutStrategyToCircular()
Definition: vtkRenderedGraphRepresentation.h:251
vtkRenderedGraphRepresentation::SetColorVerticesByArray
virtual void SetColorVerticesByArray(bool b)
vtkRenderedGraphRepresentation::SetEnabledVerticesArrayName
virtual void SetEnabledVerticesArrayName(const char *name)
vtkRenderedGraphRepresentation::SetVertexLabelTextProperty
virtual void SetVertexLabelTextProperty(vtkTextProperty *p)
vtkRenderedGraphRepresentation::SetUseVertexIconTypeMap
virtual void SetUseVertexIconTypeMap(bool b)
vtkRenderedGraphRepresentation::PrepareForRendering
void PrepareForRendering(vtkRenderView *view) override
The view will call this method before every render.
vtkEdgeCenters
generate points at center of edges
Definition: vtkEdgeCenters.h:42
vtkRenderedGraphRepresentation::GetEnabledVerticesArrayName
virtual const char * GetEnabledVerticesArrayName()
vtkRenderedGraphRepresentation::LayoutStrategyName
char * LayoutStrategyName
Definition: vtkRenderedGraphRepresentation.h:456
vtkRenderedGraphRepresentation::SetLayoutStrategyToCone
void SetLayoutStrategyToCone()
Definition: vtkRenderedGraphRepresentation.h:254
vtkRenderedGraphRepresentation::SetVertexLabelVisibility
virtual void SetVertexLabelVisibility(bool b)
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategyToPassThrough
void SetEdgeLayoutStrategyToPassThrough()
Definition: vtkRenderedGraphRepresentation.h:300
vtkRenderedGraphRepresentation::EdgeActor
vtkSmartPointer< vtkActor > EdgeActor
Definition: vtkRenderedGraphRepresentation.h:423
vtkRenderedGraphRepresentation::VertexIconActor
vtkSmartPointer< vtkTexturedActor2D > VertexIconActor
Definition: vtkRenderedGraphRepresentation.h:438
vtkRenderedGraphRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphLayout
layout a graph in 2 or 3 dimensions
Definition: vtkGraphLayout.h:45
vtkRenderedGraphRepresentation::EmptyPolyData
vtkSmartPointer< vtkPolyData > EmptyPolyData
Definition: vtkRenderedGraphRepresentation.h:413
vtkRenderedGraphRepresentation::SetLayoutStrategyToRandom
void SetLayoutStrategyToRandom()
Set predefined layout strategies.
Definition: vtkRenderedGraphRepresentation.h:244
vtkRenderedGraphRepresentation::GetEnableEdgesByArray
virtual bool GetEnableEdgesByArray()
vtkRenderedGraphRepresentation::VertexDegree
vtkSmartPointer< vtkVertexDegree > VertexDegree
Definition: vtkRenderedGraphRepresentation.h:412
vtkRenderedGraphRepresentation::GetVertexLabelArrayName
virtual const char * GetVertexLabelArrayName()
vtkRenderedGraphRepresentation::GetVertexIconArrayName
virtual const char * GetVertexIconArrayName()
vtkRenderedGraphRepresentation::SetEdgeVisibility
virtual void SetEdgeVisibility(bool b)
vtkRenderedGraphRepresentation::GetUseEdgeIconTypeMap
virtual bool GetUseEdgeIconTypeMap()
vtkApplyIcons
apply icons to a data set.
Definition: vtkApplyIcons.h:71
vtkRenderedGraphRepresentation::New
static vtkRenderedGraphRepresentation * New()