42 #ifndef vtkGraphLayoutView_h
43 #define vtkGraphLayoutView_h
45 #include "vtkViewsInfovisModule.h"
64 void SetVertexLabelArrayName(
const char*
name);
65 const char* GetVertexLabelArrayName();
72 void SetEdgeLabelArrayName(
const char*
name);
73 const char* GetEdgeLabelArrayName();
80 void SetVertexLabelVisibility(
bool vis);
81 bool GetVertexLabelVisibility();
82 vtkBooleanMacro(VertexLabelVisibility,
bool);
89 void SetHideVertexLabelsOnInteraction(
bool vis);
90 bool GetHideVertexLabelsOnInteraction();
91 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool);
98 void SetEdgeVisibility(
bool vis);
99 bool GetEdgeVisibility();
100 vtkBooleanMacro(EdgeVisibility,
bool);
107 void SetEdgeLabelVisibility(
bool vis);
108 bool GetEdgeLabelVisibility();
109 vtkBooleanMacro(EdgeLabelVisibility,
bool);
116 void SetHideEdgeLabelsOnInteraction(
bool vis);
117 bool GetHideEdgeLabelsOnInteraction();
118 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool);
126 void SetVertexColorArrayName(
const char*
name);
127 const char* GetVertexColorArrayName();
134 void SetColorVertices(
bool vis);
135 bool GetColorVertices();
136 vtkBooleanMacro(ColorVertices,
bool);
143 void SetEdgeColorArrayName(
const char*
name);
144 const char* GetEdgeColorArrayName();
151 void SetColorEdges(
bool vis);
152 bool GetColorEdges();
153 vtkBooleanMacro(ColorEdges,
bool);
160 void SetEdgeSelection(
bool vis);
161 bool GetEdgeSelection();
162 vtkBooleanMacro(EdgeSelection,
bool);
169 void SetEnabledEdgesArrayName(
const char*
name);
170 const char* GetEnabledEdgesArrayName();
177 void SetEnableEdgesByArray(
bool vis);
178 int GetEnableEdgesByArray();
185 void SetEnabledVerticesArrayName(
const char*
name);
186 const char* GetEnabledVerticesArrayName();
193 void SetEnableVerticesByArray(
bool vis);
194 int GetEnableVerticesByArray();
201 void SetScalingArrayName(
const char*
name);
202 const char* GetScalingArrayName();
209 void SetScaledGlyphs(
bool arg);
210 bool GetScaledGlyphs();
211 vtkBooleanMacro(ScaledGlyphs,
bool);
233 void SetLayoutStrategy(
const char*
name);
235 { this->SetLayoutStrategy(
"Random"); }
237 { this->SetLayoutStrategy(
"Force Directed"); }
239 { this->SetLayoutStrategy(
"Simple 2D"); }
241 { this->SetLayoutStrategy(
"Clustering 2D"); }
243 { this->SetLayoutStrategy(
"Community 2D"); }
245 { this->SetLayoutStrategy(
"Fast 2D"); }
247 { this->SetLayoutStrategy(
"Pass Through"); }
249 { this->SetLayoutStrategy(
"Circular"); }
251 { this->SetLayoutStrategy(
"Tree"); }
253 { this->SetLayoutStrategy(
"Cosmic Tree"); }
255 { this->SetLayoutStrategy(
"Cone"); }
257 { this->SetLayoutStrategy(
"Span Tree"); }
258 const char* GetLayoutStrategyName();
279 void SetEdgeLayoutStrategy(
const char*
name);
281 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
283 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
284 const char* GetEdgeLayoutStrategyName();
302 void AddIconType(
const char *
type,
int index);
307 void ClearIconTypes();
313 void SetIconAlignment(
int alignment);
319 void SetIconVisibility(
bool b);
320 bool GetIconVisibility();
321 vtkBooleanMacro(IconVisibility,
bool);
328 void SetIconArrayName(
const char*
name);
329 const char* GetIconArrayName();
336 void SetGlyphType(
int type);
344 virtual void SetVertexLabelFontSize(
const int size);
345 virtual int GetVertexLabelFontSize();
352 virtual void SetEdgeLabelFontSize(
const int size);
353 virtual int GetEdgeLabelFontSize();
360 void SetEdgeScalarBarVisibility(
bool vis);
361 bool GetEdgeScalarBarVisibility();
368 void SetVertexScalarBarVisibility(
bool vis);
369 bool GetVertexScalarBarVisibility();
375 void ZoomToSelection();
383 virtual int IsLayoutComplete();
395 virtual void UpdateLayout();
415 bool VertexLabelsRequested;
416 bool EdgeLabelsRequested;