VTK
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 -------------------------------------------------------------------------*/
32 #ifndef vtkRenderedGraphRepresentation_h
33 #define vtkRenderedGraphRepresentation_h
34 
35 #include "vtkViewsInfovisModule.h" // For export macro
37 #include "vtkSmartPointer.h" // for SP ivars
38 
39 class vtkActor;
40 class vtkApplyColors;
41 class vtkApplyIcons;
42 class vtkEdgeCenters;
43 class vtkEdgeLayout;
45 class vtkGraphLayout;
47 class vtkGraphToGlyphs;
48 class vtkGraphToPoints;
49 class vtkGraphToPolyData;
50 class vtkIconGlyphFilter;
51 class vtkInformation;
53 class vtkLookupTable;
56 class vtkPolyData;
57 class vtkPolyDataMapper;
60 class vtkRenderView;
61 class vtkScalarBarWidget;
62 class vtkScalarsToColors;
63 class vtkTextProperty;
64 class vtkTexturedActor2D;
66 class vtkVertexDegree;
67 class vtkView;
68 class vtkViewTheme;
69 
70 class VTKVIEWSINFOVIS_EXPORT vtkRenderedGraphRepresentation : public vtkRenderedRepresentation
71 {
72 public:
75  void PrintSelf(ostream& os, vtkIndent indent);
76 
77  // ------------------------------------------------------------------------
78  // Vertex labels
79 
80  virtual void SetVertexLabelArrayName(const char* name);
81  virtual const char* GetVertexLabelArrayName();
82  virtual void SetVertexLabelPriorityArrayName(const char* name);
83  virtual const char* GetVertexLabelPriorityArrayName();
84  virtual void SetVertexLabelVisibility(bool b);
85  virtual bool GetVertexLabelVisibility();
86  vtkBooleanMacro(VertexLabelVisibility, bool);
89  vtkSetStringMacro(VertexHoverArrayName);
90  vtkGetStringMacro(VertexHoverArrayName);
92 
95  vtkSetMacro(HideVertexLabelsOnInteraction, bool)
96  vtkGetMacro(HideVertexLabelsOnInteraction, bool)
97  vtkBooleanMacro(HideVertexLabelsOnInteraction, bool)
99 
100  // ------------------------------------------------------------------------
101  // Edge labels
102 
103  virtual void SetEdgeLabelArrayName(const char* name);
104  virtual const char* GetEdgeLabelArrayName();
105  virtual void SetEdgeLabelPriorityArrayName(const char* name);
106  virtual const char* GetEdgeLabelPriorityArrayName();
107  virtual void SetEdgeLabelVisibility(bool b);
108  virtual bool GetEdgeLabelVisibility();
109  vtkBooleanMacro(EdgeLabelVisibility, bool);
110  virtual void SetEdgeLabelTextProperty(vtkTextProperty* p);
111  virtual vtkTextProperty* GetEdgeLabelTextProperty();
112  vtkSetStringMacro(EdgeHoverArrayName);
113  vtkGetStringMacro(EdgeHoverArrayName);
115 
118  vtkSetMacro(HideEdgeLabelsOnInteraction, bool)
119  vtkGetMacro(HideEdgeLabelsOnInteraction, bool)
120  vtkBooleanMacro(HideEdgeLabelsOnInteraction, bool)
122 
123  // ------------------------------------------------------------------------
124  // Vertex icons
125 
126  virtual void SetVertexIconArrayName(const char* name);
127  virtual const char* GetVertexIconArrayName();
128  virtual void SetVertexIconPriorityArrayName(const char* name);
129  virtual const char* GetVertexIconPriorityArrayName();
130  virtual void SetVertexIconVisibility(bool b);
131  virtual bool GetVertexIconVisibility();
132  vtkBooleanMacro(VertexIconVisibility, bool);
133  virtual void AddVertexIconType(const char* name, int type);
134  virtual void ClearVertexIconTypes();
135  virtual void SetUseVertexIconTypeMap(bool b);
136  virtual bool GetUseVertexIconTypeMap();
137  vtkBooleanMacro(UseVertexIconTypeMap, bool);
138  virtual void SetVertexIconAlignment(int align);
139  virtual int GetVertexIconAlignment();
140  virtual void SetVertexSelectedIcon(int icon);
141  virtual int GetVertexSelectedIcon();
142  virtual void SetVertexDefaultIcon(int icon);
143  virtual int GetVertexDefaultIcon();
144 
146 
156  virtual void SetVertexIconSelectionMode(int mode);
157  virtual int GetVertexIconSelectionMode();
158  virtual void SetVertexIconSelectionModeToSelectedIcon()
159  { this->SetVertexIconSelectionMode(0); }
161  { this->SetVertexIconSelectionMode(1); }
163  { this->SetVertexIconSelectionMode(2); }
165  { this->SetVertexIconSelectionMode(3); }
167 
168  // ------------------------------------------------------------------------
169  // Edge icons
170 
171  virtual void SetEdgeIconArrayName(const char* name);
172  virtual const char* GetEdgeIconArrayName();
173  virtual void SetEdgeIconPriorityArrayName(const char* name);
174  virtual const char* GetEdgeIconPriorityArrayName();
175  virtual void SetEdgeIconVisibility(bool b);
176  virtual bool GetEdgeIconVisibility();
177  vtkBooleanMacro(EdgeIconVisibility, bool);
178  virtual void AddEdgeIconType(const char* name, int type);
179  virtual void ClearEdgeIconTypes();
180  virtual void SetUseEdgeIconTypeMap(bool b);
181  virtual bool GetUseEdgeIconTypeMap();
182  vtkBooleanMacro(UseEdgeIconTypeMap, bool);
183  virtual void SetEdgeIconAlignment(int align);
184  virtual int GetEdgeIconAlignment();
185 
186  // ------------------------------------------------------------------------
187  // Vertex colors
188 
189  virtual void SetColorVerticesByArray(bool b);
190  virtual bool GetColorVerticesByArray();
191  vtkBooleanMacro(ColorVerticesByArray, bool);
192  virtual void SetVertexColorArrayName(const char* name);
193  virtual const char* GetVertexColorArrayName();
194 
195  // ------------------------------------------------------------------------
196  // Edge colors
197 
198  virtual void SetColorEdgesByArray(bool b);
199  virtual bool GetColorEdgesByArray();
200  vtkBooleanMacro(ColorEdgesByArray, bool);
201  virtual void SetEdgeColorArrayName(const char* name);
202  virtual const char* GetEdgeColorArrayName();
203 
204  // ------------------------------------------------------------------------
205  // Enabled vertices
206 
207  virtual void SetEnableVerticesByArray(bool b);
208  virtual bool GetEnableVerticesByArray();
209  vtkBooleanMacro(EnableVerticesByArray, bool);
210  virtual void SetEnabledVerticesArrayName(const char* name);
211  virtual const char* GetEnabledVerticesArrayName();
212 
213  // ------------------------------------------------------------------------
214  // Enabled edges
215 
216  virtual void SetEnableEdgesByArray(bool b);
217  virtual bool GetEnableEdgesByArray();
218  vtkBooleanMacro(EnableEdgesByArray, bool);
219  virtual void SetEnabledEdgesArrayName(const char* name);
220  virtual const char* GetEnabledEdgesArrayName();
221 
222  virtual void SetEdgeVisibility(bool b);
223  virtual bool GetEdgeVisibility();
224  vtkBooleanMacro(EdgeVisibility, bool);
225 
226  void SetEdgeSelection(bool b);
228 
229  // ------------------------------------------------------------------------
230  // Vertex layout strategy
231 
233 
236  virtual void SetLayoutStrategy(vtkGraphLayoutStrategy* strategy);
239 
241 
244  virtual void SetLayoutStrategy(const char* name);
245  vtkGetStringMacro(LayoutStrategyName);
247 
252  { this->SetLayoutStrategy("Random"); }
254  { this->SetLayoutStrategy("Force Directed"); }
256  { this->SetLayoutStrategy("Simple 2D"); }
258  { this->SetLayoutStrategy("Clustering 2D"); }
260  { this->SetLayoutStrategy("Community 2D"); }
262  { this->SetLayoutStrategy("Fast 2D"); }
264  { this->SetLayoutStrategy("Pass Through"); }
266  { this->SetLayoutStrategy("Circular"); }
268  { this->SetLayoutStrategy("Tree"); }
270  { this->SetLayoutStrategy("Cosmic Tree"); }
272  { this->SetLayoutStrategy("Cone"); }
274  { this->SetLayoutStrategy("Span Tree"); }
275 
281  const char* xarr, const char* yarr = 0, const char* zarr = 0);
282 
294  bool radial,
295  double angle = 90,
296  double leafSpacing = 0.9,
297  double logSpacing = 1.0);
298 
310  const char* nodeSizeArrayName,
311  bool sizeLeafNodesOnly = true,
312  int layoutDepth = 0,
313  vtkIdType layoutRoot = -1);
314 
315  // ------------------------------------------------------------------------
316  // Edge layout strategy
317 
319 
325  { this->SetEdgeLayoutStrategy("Arc Parallel"); }
327  { this->SetEdgeLayoutStrategy("Pass Through"); }
329 
334  virtual void SetEdgeLayoutStrategyToGeo(double explodeFactor = 0.2);
335 
337 
340  virtual void SetEdgeLayoutStrategy(const char* name);
341  vtkGetStringMacro(EdgeLayoutStrategyName);
343 
344  // ------------------------------------------------------------------------
345  // Miscellaneous
346 
350  virtual void ApplyViewTheme(vtkViewTheme* theme);
351 
353 
356  virtual void SetGlyphType(int type);
357  virtual int GetGlyphType();
359 
361 
364  virtual void SetScaling(bool b);
365  virtual bool GetScaling();
366  vtkBooleanMacro(Scaling, bool);
368 
370 
373  virtual void SetScalingArrayName(const char* name);
374  virtual const char* GetScalingArrayName();
376 
378 
381  virtual void SetVertexScalarBarVisibility(bool b);
383  virtual void SetEdgeScalarBarVisibility(bool b);
386 
388 
394 
398  virtual bool IsLayoutComplete();
399 
403  virtual void UpdateLayout();
404 
408  void ComputeSelectedGraphBounds( double bounds[6] );
409 
410 protected:
413 
415 
418  virtual bool AddToView(vtkView* view);
419  virtual bool RemoveFromView(vtkView* view);
421 
422  virtual void PrepareForRendering(vtkRenderView* view);
423 
425 
427 
431  virtual int RequestData(
432  vtkInformation* request,
433  vtkInformationVector** inputVector,
434  vtkInformationVector* outputVector);
435 
437 
469 
472 
473  vtkSetStringMacro(VertexColorArrayNameInternal);
474  vtkGetStringMacro(VertexColorArrayNameInternal);
476 
477  vtkSetStringMacro(EdgeColorArrayNameInternal);
478  vtkGetStringMacro(EdgeColorArrayNameInternal);
480 
481  vtkSetStringMacro(ScalingArrayNameInternal);
482  vtkGetStringMacro(ScalingArrayNameInternal);
484 
485  vtkSetStringMacro(LayoutStrategyName);
487  vtkSetStringMacro(EdgeLayoutStrategyName);
491 
493 
494 private:
496  void operator=(const vtkRenderedGraphRepresentation&) VTK_DELETE_FUNCTION;
497 };
498 
499 #endif
500 
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:43
vtkRenderedGraphRepresentation::EdgeCenters
vtkSmartPointer< vtkEdgeCenters > EdgeCenters
Definition: vtkRenderedGraphRepresentation.h:443
vtkRenderedGraphRepresentation::OutlineGlyph
vtkSmartPointer< vtkGraphToGlyphs > OutlineGlyph
Definition: vtkRenderedGraphRepresentation.h:456
vtkRenderedGraphRepresentation::VertexHoverArrayName
char * VertexHoverArrayName
Definition: vtkRenderedGraphRepresentation.h:470
vtkScalarBarWidget
2D widget for manipulating a scalar bar
Definition: vtkScalarBarWidget.h:48
vtkGraphToPolyData
convert a vtkGraph to vtkPolyData
Definition: vtkGraphToPolyData.h:48
vtkRenderedGraphRepresentation::EdgeSelection
bool EdgeSelection
Definition: vtkRenderedGraphRepresentation.h:492
vtkRenderedGraphRepresentation::RemoveFromView
virtual bool RemoveFromView(vtkView *view)
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:52
vtkRenderedGraphRepresentation::SetEdgeIconAlignment
virtual void SetEdgeIconAlignment(int align)
vtkRenderedGraphRepresentation::GetEdgeIconPriorityArrayName
virtual const char * GetEdgeIconPriorityArrayName()
vtkRenderView
A view containing a renderer.
Definition: vtkRenderView.h:62
vtkRenderedGraphRepresentation::GetVertexColorArrayName
virtual const char * GetVertexColorArrayName()
vtkRenderedGraphRepresentation::GetEdgeScalarBarVisibility
virtual bool GetEdgeScalarBarVisibility()
vtkRenderedGraphRepresentation::SetLayoutStrategyToPassThrough
void SetLayoutStrategyToPassThrough()
Definition: vtkRenderedGraphRepresentation.h:263
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:42
vtkRenderedRepresentation
Definition: vtkRenderedRepresentation.h:43
vtkVertexDegree
Adds an attribute array with the degree of each vertex.
Definition: vtkVertexDegree.h:43
vtkX3D::type
@ type
Definition: vtkX3D.h:516
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkRenderedGraphRepresentation::EdgeColorArrayNameInternal
char * EdgeColorArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:478
vtkRenderedGraphRepresentation::EdgeScalarBar
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
Definition: vtkRenderedGraphRepresentation.h:460
vtkRenderedGraphRepresentation::PrepareForRendering
virtual void PrepareForRendering(vtkRenderView *view)
The view will call this method before every render.
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:253
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:46
vtkRenderedGraphRepresentation::ApplyColors
vtkSmartPointer< vtkApplyColors > ApplyColors
Internal filter classes.
Definition: vtkRenderedGraphRepresentation.h:440
vtkRenderedGraphRepresentation::EdgeMapper
vtkSmartPointer< vtkPolyDataMapper > EdgeMapper
Definition: vtkRenderedGraphRepresentation.h:451
vtkRenderedGraphRepresentation::OutlineActor
vtkSmartPointer< vtkActor > OutlineActor
Definition: vtkRenderedGraphRepresentation.h:458
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:257
vtkRenderedGraphRepresentation::VertexColorArrayNameInternal
char * VertexColorArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:474
vtkRenderedGraphRepresentation::GetEdgeIconArrayName
virtual const char * GetEdgeIconArrayName()
vtkRenderedGraphRepresentation::OutlineMapper
vtkSmartPointer< vtkPolyDataMapper > OutlineMapper
Definition: vtkRenderedGraphRepresentation.h:457
vtkRenderedGraphRepresentation::SetEdgeIconArrayName
virtual void SetEdgeIconArrayName(const char *name)
vtkSmartPointer< vtkApplyColors >
vtkRenderedGraphRepresentation::SetColorEdgesByArray
virtual void SetColorEdgesByArray(bool b)
vtkEdgeLayout
layout graph edges
Definition: vtkEdgeLayout.h:42
vtkRenderedGraphRepresentation::VertexScalarBar
vtkSmartPointer< vtkScalarBarWidget > VertexScalarBar
Definition: vtkRenderedGraphRepresentation.h:459
vtkRenderedGraphRepresentation::HideEdgeLabelsOnInteraction
bool HideEdgeLabelsOnInteraction
Definition: vtkRenderedGraphRepresentation.h:490
vtkRenderedGraphRepresentation::GetEdgeIconVisibility
virtual bool GetEdgeIconVisibility()
vtkApplyColors
apply colors to a data set.
Definition: vtkApplyColors.h:87
vtkRenderedGraphRepresentation::SetLayoutStrategyToCommunity2D
void SetLayoutStrategyToCommunity2D()
Definition: vtkRenderedGraphRepresentation.h:259
vtkRenderedGraphRepresentation::VertexLabelHierarchy
vtkSmartPointer< vtkPointSetToLabelHierarchy > VertexLabelHierarchy
Definition: vtkRenderedGraphRepresentation.h:445
vtkRenderedGraphRepresentation::~vtkRenderedGraphRepresentation
~vtkRenderedGraphRepresentation()
vtkRenderedGraphRepresentation::EdgeLabelHierarchy
vtkSmartPointer< vtkPointSetToLabelHierarchy > EdgeLabelHierarchy
Definition: vtkRenderedGraphRepresentation.h:446
vtkRenderedGraphRepresentation::SetVertexColorArrayName
virtual void SetVertexColorArrayName(const char *name)
vtkSelection
A node in a selection tree.
Definition: vtkSelection.h:44
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:63
vtkRenderedGraphRepresentation
Definition: vtkRenderedGraphRepresentation.h:71
vtkRenderedGraphRepresentation::GetEdgeColorArrayName
virtual const char * GetEdgeColorArrayName()
vtkRenderedGraphRepresentation::EdgeLayoutStrategyName
char * EdgeLayoutStrategyName
Definition: vtkRenderedGraphRepresentation.h:487
vtkRenderedGraphRepresentation::VertexMapper
vtkSmartPointer< vtkPolyDataMapper > VertexMapper
Definition: vtkRenderedGraphRepresentation.h:454
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategy
virtual void SetEdgeLayoutStrategy(const char *name)
Set the edge layout strategy by name.
vtkRenderedGraphRepresentation::ScalingArrayNameInternal
char * ScalingArrayNameInternal
Definition: vtkRenderedGraphRepresentation.h:482
vtkRenderedGraphRepresentation::ApplyViewTheme
virtual void ApplyViewTheme(vtkViewTheme *theme)
Apply a theme to this representation.
vtkRenderedRepresentation.h
vtkRenderedGraphRepresentation::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Connect inputs to internal pipeline.
vtkRenderedGraphRepresentation::VertexIconMapper
vtkSmartPointer< vtkPolyDataMapper2D > VertexIconMapper
Definition: vtkRenderedGraphRepresentation.h:466
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:61
vtkGraphToGlyphs
create glyphs for graph vertices
Definition: vtkGraphToGlyphs.h:48
vtkGraphToPoints
convert a vtkGraph a set of points.
Definition: vtkGraphToPoints.h:41
vtkRenderedGraphRepresentation::GetEdgeIconAlignment
virtual int GetEdgeIconAlignment()
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:49
vtkRenderedGraphRepresentation::EdgeHoverArrayName
char * EdgeHoverArrayName
Definition: vtkRenderedGraphRepresentation.h:471
vtkRenderedGraphRepresentation::GetVertexScalarBar
virtual vtkScalarBarWidget * GetVertexScalarBar()
Obtain the scalar bar widget used to draw a legend for the vertices/edges.
vtkRenderedGraphRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkRenderedGraphRepresentation::SetLayoutStrategyToCosmicTree
void SetLayoutStrategyToCosmicTree()
Definition: vtkRenderedGraphRepresentation.h:269
vtkRenderedGraphRepresentation::SetEdgeIconVisibility
virtual void SetEdgeIconVisibility(bool b)
vtkRenderedGraphRepresentation::VertexActor
vtkSmartPointer< vtkActor > VertexActor
Definition: vtkRenderedGraphRepresentation.h:455
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToSelectedOffset
virtual void SetVertexIconSelectionModeToSelectedOffset()
Definition: vtkRenderedGraphRepresentation.h:160
vtkRenderedGraphRepresentation::SetEnabledEdgesArrayName
virtual void SetEnabledEdgesArrayName(const char *name)
vtkRenderedGraphRepresentation::SetLayoutStrategyToSimple2D
void SetLayoutStrategyToSimple2D()
Definition: vtkRenderedGraphRepresentation.h:255
vtkRenderedGraphRepresentation::VertexIconPoints
vtkSmartPointer< vtkGraphToPoints > VertexIconPoints
Definition: vtkRenderedGraphRepresentation.h:463
vtkRenderedGraphRepresentation::SetVertexIconSelectionModeToIgnoreSelection
virtual void SetVertexIconSelectionModeToIgnoreSelection()
Definition: vtkRenderedGraphRepresentation.h:164
vtkRenderedGraphRepresentation::GetEdgeVisibility
virtual bool GetEdgeVisibility()
vtkRenderedGraphRepresentation::GraphToPoly
vtkSmartPointer< vtkGraphToPolyData > GraphToPoly
Definition: vtkRenderedGraphRepresentation.h:450
vtkRenderedGraphRepresentation::GetVertexScalarBarVisibility
virtual bool GetVertexScalarBarVisibility()
vtkRenderedGraphRepresentation::SetLayoutStrategyToAssignCoordinates
virtual void SetLayoutStrategyToAssignCoordinates(const char *xarr, const char *yarr=0, const char *zarr=0)
Set the layout strategy to use coordinates from arrays.
vtkTransformCoordinateSystems
transform points into different coordinate systems
Definition: vtkTransformCoordinateSystems.h:39
vtkRenderedGraphRepresentation::GetColorVerticesByArray
virtual bool GetColorVerticesByArray()
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
vtkRenderedGraphRepresentation::HideVertexLabelsOnInteraction
bool HideVertexLabelsOnInteraction
Definition: vtkRenderedGraphRepresentation.h:489
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkRenderedGraphRepresentation::SetScalingArrayName
virtual void SetScalingArrayName(const char *name)
Set the glyph scaling array name.
vtkUnicodeString
String class that stores Unicode text.
Definition: vtkUnicodeString.h:73
vtkRenderedGraphRepresentation::GraphToPoints
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
Definition: vtkRenderedGraphRepresentation.h:444
vtkRenderedGraphRepresentation::GetEnableVerticesByArray
virtual bool GetEnableVerticesByArray()
vtkSmartPointer.h
vtkRenderedGraphRepresentation::SetLayoutStrategy
virtual void SetLayoutStrategy(const char *name)
Get/set the layout strategy by name.
vtkRenderedGraphRepresentation::AddToView
virtual bool AddToView(vtkView *view)
Called by the view to add/remove this representation.
vtkRenderedGraphRepresentation::SetEdgeColorArrayName
virtual void SetEdgeColorArrayName(const char *name)
vtkPointSetToLabelHierarchy
build a label hierarchy for a graph or point set.
Definition: vtkPointSetToLabelHierarchy.h:48
vtkRenderedGraphRepresentation::GetLayoutStrategy
virtual vtkGraphLayoutStrategy * GetLayoutStrategy()
vtkRenderedGraphRepresentation::SetEnableVerticesByArray
virtual void SetEnableVerticesByArray(bool b)
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategy
virtual void SetEdgeLayoutStrategy(vtkEdgeLayoutStrategy *strategy)
Set/get the graph layout strategy.
vtkRenderedGraphRepresentation::VertexIconTransform
vtkSmartPointer< vtkTransformCoordinateSystems > VertexIconTransform
Definition: vtkRenderedGraphRepresentation.h:464
vtkRenderedGraphRepresentation::EdgeLayout
vtkSmartPointer< vtkEdgeLayout > EdgeLayout
Definition: vtkRenderedGraphRepresentation.h:449
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:67
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkRenderedGraphRepresentation::IsLayoutComplete
virtual bool IsLayoutComplete()
Whether the current graph layout is complete.
vtkRenderedGraphRepresentation::SetLayoutStrategyToFast2D
void SetLayoutStrategyToFast2D()
Definition: vtkRenderedGraphRepresentation.h:261
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:219
vtkRenderedGraphRepresentation::GetScaling
virtual bool GetScaling()
vtkRenderedGraphRepresentation::SetLayoutStrategyToSpanTree
void SetLayoutStrategyToSpanTree()
Definition: vtkRenderedGraphRepresentation.h:273
vtkRenderedGraphRepresentation::ApplyVertexIcons
vtkSmartPointer< vtkApplyIcons > ApplyVertexIcons
Definition: vtkRenderedGraphRepresentation.h:462
vtkRenderedGraphRepresentation::SetLayoutStrategy
virtual void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
Set/get the graph layout strategy.
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:40
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkRenderedGraphRepresentation::SetVertexLabelArrayName
virtual void SetVertexLabelArrayName(const char *name)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:75
vtkRenderedGraphRepresentation::VertexGlyph
vtkSmartPointer< vtkGraphToGlyphs > VertexGlyph
Definition: vtkRenderedGraphRepresentation.h:453
vtkRenderedGraphRepresentation::Layout
vtkSmartPointer< vtkGraphLayout > Layout
Definition: vtkRenderedGraphRepresentation.h:447
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:162
vtkRenderedGraphRepresentation::GetHoverTextInternal
virtual vtkUnicodeString GetHoverTextInternal(vtkSelection *sel)
Subclasses may override this method to generate the hover text.
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:465
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:448
vtkRenderedGraphRepresentation::SetLayoutStrategyToTree
void SetLayoutStrategyToTree()
Definition: vtkRenderedGraphRepresentation.h:267
vtkRenderedGraphRepresentation::GetColorEdgesByArray
virtual bool GetColorEdgesByArray()
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategyToArcParallel
void SetEdgeLayoutStrategyToArcParallel()
Definition: vtkRenderedGraphRepresentation.h:324
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkRenderedGraphRepresentation::SetEdgeSelection
void SetEdgeSelection(bool b)
vtkRenderedGraphRepresentation::GetEdgeSelection
bool GetEdgeSelection()
vtkRenderedGraphRepresentation::RemoveHiddenGraph
vtkSmartPointer< vtkRemoveHiddenData > RemoveHiddenGraph
Definition: vtkRenderedGraphRepresentation.h:461
vtkRenderedGraphRepresentation::GetVertexLabelPriorityArrayName
virtual const char * GetVertexLabelPriorityArrayName()
vtkX3D::mode
@ mode
Definition: vtkX3D.h:247
vtkEdgeLayoutStrategy
abstract superclass for all edge layout strategies
Definition: vtkEdgeLayoutStrategy.h:37
vtkRenderedGraphRepresentation::ConvertSelection
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
vtkRenderedGraphRepresentation::SetLayoutStrategyToCircular
void SetLayoutStrategyToCircular()
Definition: vtkRenderedGraphRepresentation.h:265
vtkRenderedGraphRepresentation::SetColorVerticesByArray
virtual void SetColorVerticesByArray(bool b)
vtkRenderedGraphRepresentation::SetEnabledVerticesArrayName
virtual void SetEnabledVerticesArrayName(const char *name)
vtkRenderedGraphRepresentation::SetVertexLabelTextProperty
virtual void SetVertexLabelTextProperty(vtkTextProperty *p)
vtkEdgeCenters
generate points at center of edges
Definition: vtkEdgeCenters.h:42
vtkRenderedGraphRepresentation::GetEnabledVerticesArrayName
virtual const char * GetEnabledVerticesArrayName()
vtkRenderedGraphRepresentation::LayoutStrategyName
char * LayoutStrategyName
Definition: vtkRenderedGraphRepresentation.h:485
vtkRenderedGraphRepresentation::SetLayoutStrategyToCone
void SetLayoutStrategyToCone()
Definition: vtkRenderedGraphRepresentation.h:271
vtkRenderedGraphRepresentation::SetVertexLabelVisibility
virtual void SetVertexLabelVisibility(bool b)
vtkRenderedGraphRepresentation::SetEdgeLayoutStrategyToPassThrough
void SetEdgeLayoutStrategyToPassThrough()
Definition: vtkRenderedGraphRepresentation.h:326
vtkRenderedGraphRepresentation::EdgeActor
vtkSmartPointer< vtkActor > EdgeActor
Definition: vtkRenderedGraphRepresentation.h:452
vtkRenderedGraphRepresentation::VertexIconActor
vtkSmartPointer< vtkTexturedActor2D > VertexIconActor
Definition: vtkRenderedGraphRepresentation.h:467
vtkGraphLayout
layout a graph in 2 or 3 dimensions
Definition: vtkGraphLayout.h:51
vtkRenderedGraphRepresentation::EmptyPolyData
vtkSmartPointer< vtkPolyData > EmptyPolyData
Definition: vtkRenderedGraphRepresentation.h:442
vtkRenderedGraphRepresentation::SetLayoutStrategyToRandom
void SetLayoutStrategyToRandom()
Set predefined layout strategies.
Definition: vtkRenderedGraphRepresentation.h:251
vtkRenderedGraphRepresentation::GetEnableEdgesByArray
virtual bool GetEnableEdgesByArray()
vtkRenderedGraphRepresentation::VertexDegree
vtkSmartPointer< vtkVertexDegree > VertexDegree
Definition: vtkRenderedGraphRepresentation.h:441
vtkRenderedGraphRepresentation::GetVertexLabelArrayName
virtual const char * GetVertexLabelArrayName()
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()