32 #ifndef vtkRenderedGraphRepresentation_h
33 #define vtkRenderedGraphRepresentation_h
35 #include "vtkViewsInfovisModule.h"
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);
95 vtkSetMacro(HideVertexLabelsOnInteraction,
bool)
96 vtkGetMacro(HideVertexLabelsOnInteraction,
bool)
97 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool)
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);
112 vtkSetStringMacro(EdgeHoverArrayName);
113 vtkGetStringMacro(EdgeHoverArrayName);
118 vtkSetMacro(HideEdgeLabelsOnInteraction,
bool)
119 vtkGetMacro(HideEdgeLabelsOnInteraction,
bool)
120 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool)
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();
156 virtual void SetVertexIconSelectionMode(
int mode);
157 virtual int GetVertexIconSelectionMode();
159 { this->SetVertexIconSelectionMode(0); }
161 { this->SetVertexIconSelectionMode(1); }
163 { this->SetVertexIconSelectionMode(2); }
165 { this->SetVertexIconSelectionMode(3); }
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();
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();
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();
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();
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();
222 virtual void SetEdgeVisibility(
bool b);
223 virtual bool GetEdgeVisibility();
224 vtkBooleanMacro(EdgeVisibility,
bool);
226 void SetEdgeSelection(
bool b);
227 bool GetEdgeSelection();
244 virtual void SetLayoutStrategy(
const char*
name);
245 vtkGetStringMacro(LayoutStrategyName);
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"); }
280 virtual void SetLayoutStrategyToAssignCoordinates(
281 const char* xarr,
const char* yarr =
nullptr,
const char* zarr =
nullptr);
293 virtual void SetLayoutStrategyToTree(
296 double leafSpacing = 0.9,
297 double logSpacing = 1.0);
309 virtual void SetLayoutStrategyToCosmicTree(
310 const char* nodeSizeArrayName,
311 bool sizeLeafNodesOnly =
true,
325 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
327 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
334 virtual void SetEdgeLayoutStrategyToGeo(
double explodeFactor = 0.2);
340 virtual void SetEdgeLayoutStrategy(
const char*
name);
341 vtkGetStringMacro(EdgeLayoutStrategyName);
356 virtual void SetGlyphType(
int type);
357 virtual int GetGlyphType();
364 virtual void SetScaling(
bool b);
365 virtual bool GetScaling();
366 vtkBooleanMacro(Scaling,
bool);
373 virtual void SetScalingArrayName(
const char*
name);
374 virtual const char* GetScalingArrayName();
381 virtual void SetVertexScalarBarVisibility(
bool b);
382 virtual bool GetVertexScalarBarVisibility();
383 virtual void SetEdgeScalarBarVisibility(
bool b);
384 virtual bool GetEdgeScalarBarVisibility();
398 virtual bool IsLayoutComplete();
403 virtual void UpdateLayout();
408 void ComputeSelectedGraphBounds(
double bounds[6] );
473 vtkSetStringMacro(VertexColorArrayNameInternal);
474 vtkGetStringMacro(VertexColorArrayNameInternal);
477 vtkSetStringMacro(EdgeColorArrayNameInternal);
478 vtkGetStringMacro(EdgeColorArrayNameInternal);
481 vtkSetStringMacro(ScalingArrayNameInternal);
482 vtkGetStringMacro(ScalingArrayNameInternal);
485 vtkSetStringMacro(LayoutStrategyName);
487 vtkSetStringMacro(EdgeLayoutStrategyName);