47 #ifndef __vtkGraphLayoutView_h
48 #define __vtkGraphLayoutView_h
66 void SetVertexLabelArrayName(
const char*
name);
67 const char* GetVertexLabelArrayName();
72 void SetEdgeLabelArrayName(
const char*
name);
73 const char* GetEdgeLabelArrayName();
78 void SetVertexLabelVisibility(
bool vis);
79 bool GetVertexLabelVisibility();
80 vtkBooleanMacro(VertexLabelVisibility,
bool);
86 void SetHideVertexLabelsOnInteraction(
bool vis);
87 bool GetHideVertexLabelsOnInteraction();
88 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool);
93 void SetEdgeVisibility(
bool vis);
94 bool GetEdgeVisibility();
95 vtkBooleanMacro(EdgeVisibility,
bool);
100 void SetEdgeLabelVisibility(
bool vis);
101 bool GetEdgeLabelVisibility();
102 vtkBooleanMacro(EdgeLabelVisibility,
bool);
108 void SetHideEdgeLabelsOnInteraction(
bool vis);
109 bool GetHideEdgeLabelsOnInteraction();
110 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool);
116 void SetVertexColorArrayName(
const char*
name);
117 const char* GetVertexColorArrayName();
122 void SetColorVertices(
bool vis);
123 bool GetColorVertices();
124 vtkBooleanMacro(ColorVertices,
bool);
129 void SetEdgeColorArrayName(
const char*
name);
130 const char* GetEdgeColorArrayName();
135 void SetColorEdges(
bool vis);
136 bool GetColorEdges();
137 vtkBooleanMacro(ColorEdges,
bool);
142 void SetEdgeSelection(
bool vis);
143 bool GetEdgeSelection();
144 vtkBooleanMacro(EdgeSelection,
bool);
149 void SetEnabledEdgesArrayName(
const char*
name);
150 const char* GetEnabledEdgesArrayName();
155 void SetEnableEdgesByArray(
bool vis);
156 int GetEnableEdgesByArray();
161 void SetEnabledVerticesArrayName(
const char*
name);
162 const char* GetEnabledVerticesArrayName();
167 void SetEnableVerticesByArray(
bool vis);
168 int GetEnableVerticesByArray();
173 void SetScalingArrayName(
const char*
name);
174 const char* GetScalingArrayName();
179 void SetScaledGlyphs(
bool arg);
180 bool GetScaledGlyphs();
181 vtkBooleanMacro(ScaledGlyphs,
bool);
197 void SetLayoutStrategy(
const char*
name);
199 { this->SetLayoutStrategy(
"Random"); }
201 { this->SetLayoutStrategy(
"Force Directed"); }
203 { this->SetLayoutStrategy(
"Simple 2D"); }
205 { this->SetLayoutStrategy(
"Clustering 2D"); }
207 { this->SetLayoutStrategy(
"Community 2D"); }
209 { this->SetLayoutStrategy(
"Fast 2D"); }
211 { this->SetLayoutStrategy(
"Pass Through"); }
213 { this->SetLayoutStrategy(
"Circular"); }
215 { this->SetLayoutStrategy(
"Tree"); }
217 { this->SetLayoutStrategy(
"Cosmic Tree"); }
219 { this->SetLayoutStrategy(
"Cone"); }
221 { this->SetLayoutStrategy(
"Span Tree"); }
222 const char* GetLayoutStrategyName();
238 void SetEdgeLayoutStrategy(
const char*
name);
240 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
242 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
243 const char* GetEdgeLayoutStrategyName();
260 void ClearIconTypes();
264 void SetIconAlignment(
int alignment);
268 void SetIconVisibility(
bool b);
269 bool GetIconVisibility();
270 vtkBooleanMacro(IconVisibility,
bool);
275 void SetIconArrayName(
const char*
name);
276 const char* GetIconArrayName();
281 void SetGlyphType(
int type);
287 virtual void SetVertexLabelFontSize(
const int size);
288 virtual int GetVertexLabelFontSize();
293 virtual void SetEdgeLabelFontSize(
const int size);
294 virtual int GetEdgeLabelFontSize();
299 void SetEdgeScalarBarVisibility(
bool vis);
300 bool GetEdgeScalarBarVisibility();
305 void SetVertexScalarBarVisibility(
bool vis);
306 bool GetVertexScalarBarVisibility();
310 void ZoomToSelection();
315 virtual int IsLayoutComplete();
321 virtual void UpdateLayout();
339 bool VertexLabelsRequested;
340 bool EdgeLabelsRequested;