31 #ifndef __vtkRenderedGraphRepresentation_h
32 #define __vtkRenderedGraphRepresentation_h
34 #include "vtkViewsInfovisModule.h"
79 virtual void SetVertexLabelArrayName(
const char*
name);
80 virtual const char* GetVertexLabelArrayName();
81 virtual void SetVertexLabelPriorityArrayName(
const char*
name);
82 virtual const char* GetVertexLabelPriorityArrayName();
83 virtual void SetVertexLabelVisibility(
bool b);
84 virtual bool GetVertexLabelVisibility();
85 vtkBooleanMacro(VertexLabelVisibility,
bool);
88 vtkSetStringMacro(VertexHoverArrayName);
93 vtkSetMacro(HideVertexLabelsOnInteraction,
bool)
94 vtkGetMacro(HideVertexLabelsOnInteraction,
bool)
95 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool)
101 virtual
void SetEdgeLabelArrayName(const
char*
name);
102 virtual const
char* GetEdgeLabelArrayName();
103 virtual
void SetEdgeLabelPriorityArrayName(const
char* name);
104 virtual const
char* GetEdgeLabelPriorityArrayName();
105 virtual
void SetEdgeLabelVisibility(
bool b);
106 virtual
bool GetEdgeLabelVisibility();
107 vtkBooleanMacro(EdgeLabelVisibility,
bool);
110 vtkSetStringMacro(EdgeHoverArrayName);
115 vtkSetMacro(HideEdgeLabelsOnInteraction,
bool)
116 vtkGetMacro(HideEdgeLabelsOnInteraction,
bool)
117 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool)
123 virtual
void SetVertexIconArrayName(const
char* name);
124 virtual const
char* GetVertexIconArrayName();
125 virtual
void SetVertexIconPriorityArrayName(const
char* name);
126 virtual const
char* GetVertexIconPriorityArrayName();
127 virtual
void SetVertexIconVisibility(
bool b);
128 virtual
bool GetVertexIconVisibility();
129 vtkBooleanMacro(VertexIconVisibility,
bool);
130 virtual
void AddVertexIconType(const
char* name,
int type);
131 virtual
void ClearVertexIconTypes();
132 virtual
void SetUseVertexIconTypeMap(
bool b);
133 virtual
bool GetUseVertexIconTypeMap();
134 vtkBooleanMacro(UseVertexIconTypeMap,
bool);
135 virtual
void SetVertexIconAlignment(
int align);
136 virtual
int GetVertexIconAlignment();
137 virtual
void SetVertexSelectedIcon(
int icon);
138 virtual
int GetVertexSelectedIcon();
139 virtual
void SetVertexDefaultIcon(
int icon);
140 virtual
int GetVertexDefaultIcon();
148 virtual
void SetVertexIconSelectionMode(
int mode);
149 virtual
int GetVertexIconSelectionMode();
150 virtual
void SetVertexIconSelectionModeToSelectedIcon()
151 { this->SetVertexIconSelectionMode(0); }
152 virtual void SetVertexIconSelectionModeToSelectedOffset()
153 { this->SetVertexIconSelectionMode(1); }
154 virtual void SetVertexIconSelectionModeToAnnotationIcon()
155 { this->SetVertexIconSelectionMode(2); }
156 virtual void SetVertexIconSelectionModeToIgnoreSelection()
157 { this->SetVertexIconSelectionMode(3); }
163 virtual void SetEdgeIconArrayName(
const char*
name);
164 virtual const char* GetEdgeIconArrayName();
165 virtual void SetEdgeIconPriorityArrayName(
const char*
name);
166 virtual const char* GetEdgeIconPriorityArrayName();
167 virtual void SetEdgeIconVisibility(
bool b);
168 virtual bool GetEdgeIconVisibility();
169 vtkBooleanMacro(EdgeIconVisibility,
bool);
170 virtual void AddEdgeIconType(
const char*
name,
int type);
171 virtual void ClearEdgeIconTypes();
172 virtual void SetUseEdgeIconTypeMap(
bool b);
173 virtual bool GetUseEdgeIconTypeMap();
174 vtkBooleanMacro(UseEdgeIconTypeMap,
bool);
175 virtual void SetEdgeIconAlignment(
int align);
176 virtual int GetEdgeIconAlignment();
181 virtual void SetColorVerticesByArray(
bool b);
182 virtual bool GetColorVerticesByArray();
183 vtkBooleanMacro(ColorVerticesByArray,
bool);
184 virtual void SetVertexColorArrayName(
const char*
name);
185 virtual const char* GetVertexColorArrayName();
190 virtual void SetColorEdgesByArray(
bool b);
191 virtual bool GetColorEdgesByArray();
192 vtkBooleanMacro(ColorEdgesByArray,
bool);
193 virtual void SetEdgeColorArrayName(
const char*
name);
194 virtual const char* GetEdgeColorArrayName();
199 virtual void SetEnableVerticesByArray(
bool b);
200 virtual bool GetEnableVerticesByArray();
201 vtkBooleanMacro(EnableVerticesByArray,
bool);
202 virtual void SetEnabledVerticesArrayName(
const char*
name);
203 virtual const char* GetEnabledVerticesArrayName();
208 virtual void SetEnableEdgesByArray(
bool b);
209 virtual bool GetEnableEdgesByArray();
210 vtkBooleanMacro(EnableEdgesByArray,
bool);
211 virtual void SetEnabledEdgesArrayName(
const char*
name);
212 virtual const char* GetEnabledEdgesArrayName();
214 virtual void SetEdgeVisibility(
bool b);
215 virtual bool GetEdgeVisibility();
216 vtkBooleanMacro(EdgeVisibility,
bool);
218 void SetEdgeSelection(
bool b);
219 bool GetEdgeSelection();
232 virtual void SetLayoutStrategy(
const char*
name);
238 void SetLayoutStrategyToRandom()
239 { this->SetLayoutStrategy(
"Random"); }
240 void SetLayoutStrategyToForceDirected()
241 { this->SetLayoutStrategy(
"Force Directed"); }
242 void SetLayoutStrategyToSimple2D()
243 { this->SetLayoutStrategy(
"Simple 2D"); }
244 void SetLayoutStrategyToClustering2D()
245 { this->SetLayoutStrategy(
"Clustering 2D"); }
246 void SetLayoutStrategyToCommunity2D()
247 { this->SetLayoutStrategy(
"Community 2D"); }
248 void SetLayoutStrategyToFast2D()
249 { this->SetLayoutStrategy(
"Fast 2D"); }
250 void SetLayoutStrategyToPassThrough()
251 { this->SetLayoutStrategy(
"Pass Through"); }
252 void SetLayoutStrategyToCircular()
253 { this->SetLayoutStrategy(
"Circular"); }
254 void SetLayoutStrategyToTree()
255 { this->SetLayoutStrategy(
"Tree"); }
256 void SetLayoutStrategyToCosmicTree()
257 { this->SetLayoutStrategy(
"Cosmic Tree"); }
258 void SetLayoutStrategyToCone()
259 { this->SetLayoutStrategy(
"Cone"); }
260 void SetLayoutStrategyToSpanTree()
261 { this->SetLayoutStrategy(
"Span Tree"); }
267 virtual void SetLayoutStrategyToAssignCoordinates(
268 const char* xarr,
const char* yarr = 0,
const char* zarr = 0);
281 virtual void SetLayoutStrategyToTree(
284 double leafSpacing = 0.9,
285 double logSpacing = 1.0);
298 virtual void SetLayoutStrategyToCosmicTree(
299 const char* nodeSizeArrayName,
300 bool sizeLeafNodesOnly =
true,
312 void SetEdgeLayoutStrategyToArcParallel()
313 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
314 void SetEdgeLayoutStrategyToPassThrough()
315 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
320 virtual void SetEdgeLayoutStrategyToGeo(
double explodeFactor = 0.2);
324 virtual void SetEdgeLayoutStrategy(
const char*
name);
336 virtual void SetGlyphType(
int type);
337 virtual int GetGlyphType();
342 virtual void SetScaling(
bool b);
343 virtual bool GetScaling();
344 vtkBooleanMacro(Scaling,
bool);
349 virtual void SetScalingArrayName(
const char*
name);
350 virtual const char* GetScalingArrayName();
355 virtual void SetVertexScalarBarVisibility(
bool b);
356 virtual bool GetVertexScalarBarVisibility();
357 virtual void SetEdgeScalarBarVisibility(
bool b);
358 virtual bool GetEdgeScalarBarVisibility();
362 virtual bool IsLayoutComplete();
365 virtual void UpdateLayout();
368 void ComputeSelectedGraphBounds(
double bounds[6] );
431 vtkSetStringMacro(VertexColorArrayNameInternal);
435 vtkSetStringMacro(EdgeColorArrayNameInternal);
439 vtkSetStringMacro(ScalingArrayNameInternal);
443 vtkSetStringMacro(LayoutStrategyName);
445 vtkSetStringMacro(EdgeLayoutStrategyName);