26 #ifndef vtkRenderedGraphRepresentation_h
27 #define vtkRenderedGraphRepresentation_h
31 #include "vtkViewsInfovisModule.h"
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);
89 vtkSetMacro(HideVertexLabelsOnInteraction,
bool);
90 vtkGetMacro(HideVertexLabelsOnInteraction,
bool);
91 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool);
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);
112 vtkSetMacro(HideEdgeLabelsOnInteraction,
bool);
113 vtkGetMacro(HideEdgeLabelsOnInteraction,
bool);
114 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool);
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();
150 virtual void SetVertexIconSelectionMode(
int mode);
151 virtual int GetVertexIconSelectionMode();
157 this->SetVertexIconSelectionMode(3);
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();
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();
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();
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();
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();
215 virtual void SetEdgeVisibility(
bool b);
216 virtual bool GetEdgeVisibility();
217 vtkBooleanMacro(EdgeVisibility,
bool);
219 void SetEdgeSelection(
bool b);
220 bool GetEdgeSelection();
237 virtual void SetLayoutStrategy(
const char*
name);
238 vtkGetStringMacro(LayoutStrategyName);
261 virtual void SetLayoutStrategyToAssignCoordinates(
262 const char* xarr,
const char* yarr =
nullptr,
const char* zarr =
nullptr);
274 virtual void SetLayoutStrategyToTree(
275 bool radial,
double angle = 90,
double leafSpacing = 0.9,
double logSpacing = 1.0);
287 virtual void SetLayoutStrategyToCosmicTree(
const char* nodeSizeArrayName,
288 bool sizeLeafNodesOnly =
true,
int layoutDepth = 0,
vtkIdType layoutRoot = -1);
307 virtual void SetEdgeLayoutStrategyToGeo(
double explodeFactor = 0.2);
313 virtual void SetEdgeLayoutStrategy(
const char*
name);
314 vtkGetStringMacro(EdgeLayoutStrategyName);
329 virtual void SetGlyphType(
int type);
330 virtual int GetGlyphType();
337 virtual void SetScaling(
bool b);
338 virtual bool GetScaling();
339 vtkBooleanMacro(Scaling,
bool);
346 virtual void SetScalingArrayName(
const char*
name);
347 virtual const char* GetScalingArrayName();
354 virtual void SetVertexScalarBarVisibility(
bool b);
355 virtual bool GetVertexScalarBarVisibility();
356 virtual void SetEdgeScalarBarVisibility(
bool b);
357 virtual bool GetEdgeScalarBarVisibility();
371 virtual bool IsLayoutComplete();
376 virtual void UpdateLayout();
381 void ComputeSelectedGraphBounds(
double bounds[6]);
444 vtkSetStringMacro(VertexColorArrayNameInternal);
445 vtkGetStringMacro(VertexColorArrayNameInternal);
448 vtkSetStringMacro(EdgeColorArrayNameInternal);
449 vtkGetStringMacro(EdgeColorArrayNameInternal);
452 vtkSetStringMacro(ScalingArrayNameInternal);
453 vtkGetStringMacro(ScalingArrayNameInternal);
456 vtkSetStringMacro(LayoutStrategyName);
458 vtkSetStringMacro(EdgeLayoutStrategyName);