48 #ifndef vtkGraphLayoutView_h
49 #define vtkGraphLayoutView_h
51 #include "vtkViewsInfovisModule.h"
70 void SetVertexLabelArrayName(
const char*
name);
71 const char* GetVertexLabelArrayName();
78 void SetEdgeLabelArrayName(
const char*
name);
79 const char* GetEdgeLabelArrayName();
86 void SetVertexLabelVisibility(
bool vis);
87 bool GetVertexLabelVisibility();
88 vtkBooleanMacro(VertexLabelVisibility,
bool);
95 void SetHideVertexLabelsOnInteraction(
bool vis);
96 bool GetHideVertexLabelsOnInteraction();
97 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool);
104 void SetEdgeVisibility(
bool vis);
105 bool GetEdgeVisibility();
106 vtkBooleanMacro(EdgeVisibility,
bool);
113 void SetEdgeLabelVisibility(
bool vis);
114 bool GetEdgeLabelVisibility();
115 vtkBooleanMacro(EdgeLabelVisibility,
bool);
122 void SetHideEdgeLabelsOnInteraction(
bool vis);
123 bool GetHideEdgeLabelsOnInteraction();
124 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool);
132 void SetVertexColorArrayName(
const char*
name);
133 const char* GetVertexColorArrayName();
140 void SetColorVertices(
bool vis);
141 bool GetColorVertices();
142 vtkBooleanMacro(ColorVertices,
bool);
149 void SetEdgeColorArrayName(
const char*
name);
150 const char* GetEdgeColorArrayName();
157 void SetColorEdges(
bool vis);
158 bool GetColorEdges();
159 vtkBooleanMacro(ColorEdges,
bool);
166 void SetEdgeSelection(
bool vis);
167 bool GetEdgeSelection();
168 vtkBooleanMacro(EdgeSelection,
bool);
175 void SetEnabledEdgesArrayName(
const char*
name);
176 const char* GetEnabledEdgesArrayName();
183 void SetEnableEdgesByArray(
bool vis);
184 int GetEnableEdgesByArray();
191 void SetEnabledVerticesArrayName(
const char*
name);
192 const char* GetEnabledVerticesArrayName();
199 void SetEnableVerticesByArray(
bool vis);
200 int GetEnableVerticesByArray();
207 void SetScalingArrayName(
const char*
name);
208 const char* GetScalingArrayName();
215 void SetScaledGlyphs(
bool arg);
216 bool GetScaledGlyphs();
217 vtkBooleanMacro(ScaledGlyphs,
bool);
239 void SetLayoutStrategy(
const char*
name);
241 { this->SetLayoutStrategy(
"Random"); }
243 { this->SetLayoutStrategy(
"Force Directed"); }
245 { this->SetLayoutStrategy(
"Simple 2D"); }
247 { this->SetLayoutStrategy(
"Clustering 2D"); }
249 { this->SetLayoutStrategy(
"Community 2D"); }
251 { this->SetLayoutStrategy(
"Fast 2D"); }
253 { this->SetLayoutStrategy(
"Pass Through"); }
255 { this->SetLayoutStrategy(
"Circular"); }
257 { this->SetLayoutStrategy(
"Tree"); }
259 { this->SetLayoutStrategy(
"Cosmic Tree"); }
261 { this->SetLayoutStrategy(
"Cone"); }
263 { this->SetLayoutStrategy(
"Span Tree"); }
264 const char* GetLayoutStrategyName();
285 void SetEdgeLayoutStrategy(
const char*
name);
287 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
289 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
290 const char* GetEdgeLayoutStrategyName();
308 void AddIconType(
const char *
type,
int index);
313 void ClearIconTypes();
319 void SetIconAlignment(
int alignment);
325 void SetIconVisibility(
bool b);
326 bool GetIconVisibility();
327 vtkBooleanMacro(IconVisibility,
bool);
334 void SetIconArrayName(
const char*
name);
335 const char* GetIconArrayName();
342 void SetGlyphType(
int type);
350 virtual void SetVertexLabelFontSize(
const int size);
351 virtual int GetVertexLabelFontSize();
358 virtual void SetEdgeLabelFontSize(
const int size);
359 virtual int GetEdgeLabelFontSize();
366 void SetEdgeScalarBarVisibility(
bool vis);
367 bool GetEdgeScalarBarVisibility();
374 void SetVertexScalarBarVisibility(
bool vis);
375 bool GetVertexScalarBarVisibility();
381 void ZoomToSelection();
389 virtual int IsLayoutComplete();
401 virtual void UpdateLayout();
421 bool VertexLabelsRequested;
422 bool EdgeLabelsRequested;