47 #ifndef __vtkGraphLayoutView_h
48 #define __vtkGraphLayoutView_h
50 #include "vtkViewsInfovisModule.h"
67 void SetVertexLabelArrayName(
const char*
name);
68 const char* GetVertexLabelArrayName();
73 void SetEdgeLabelArrayName(
const char*
name);
74 const char* GetEdgeLabelArrayName();
79 void SetVertexLabelVisibility(
bool vis);
80 bool GetVertexLabelVisibility();
81 vtkBooleanMacro(VertexLabelVisibility,
bool);
87 void SetHideVertexLabelsOnInteraction(
bool vis);
88 bool GetHideVertexLabelsOnInteraction();
89 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool);
94 void SetEdgeVisibility(
bool vis);
95 bool GetEdgeVisibility();
96 vtkBooleanMacro(EdgeVisibility,
bool);
101 void SetEdgeLabelVisibility(
bool vis);
102 bool GetEdgeLabelVisibility();
103 vtkBooleanMacro(EdgeLabelVisibility,
bool);
109 void SetHideEdgeLabelsOnInteraction(
bool vis);
110 bool GetHideEdgeLabelsOnInteraction();
111 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool);
117 void SetVertexColorArrayName(
const char*
name);
118 const char* GetVertexColorArrayName();
123 void SetColorVertices(
bool vis);
124 bool GetColorVertices();
125 vtkBooleanMacro(ColorVertices,
bool);
130 void SetEdgeColorArrayName(
const char*
name);
131 const char* GetEdgeColorArrayName();
136 void SetColorEdges(
bool vis);
137 bool GetColorEdges();
138 vtkBooleanMacro(ColorEdges,
bool);
143 void SetEdgeSelection(
bool vis);
144 bool GetEdgeSelection();
145 vtkBooleanMacro(EdgeSelection,
bool);
150 void SetEnabledEdgesArrayName(
const char*
name);
151 const char* GetEnabledEdgesArrayName();
156 void SetEnableEdgesByArray(
bool vis);
157 int GetEnableEdgesByArray();
162 void SetEnabledVerticesArrayName(
const char*
name);
163 const char* GetEnabledVerticesArrayName();
168 void SetEnableVerticesByArray(
bool vis);
169 int GetEnableVerticesByArray();
174 void SetScalingArrayName(
const char*
name);
175 const char* GetScalingArrayName();
180 void SetScaledGlyphs(
bool arg);
181 bool GetScaledGlyphs();
182 vtkBooleanMacro(ScaledGlyphs,
bool);
198 void SetLayoutStrategy(
const char*
name);
199 void SetLayoutStrategyToRandom()
200 { this->SetLayoutStrategy(
"Random"); }
201 void SetLayoutStrategyToForceDirected()
202 { this->SetLayoutStrategy(
"Force Directed"); }
203 void SetLayoutStrategyToSimple2D()
204 { this->SetLayoutStrategy(
"Simple 2D"); }
205 void SetLayoutStrategyToClustering2D()
206 { this->SetLayoutStrategy(
"Clustering 2D"); }
207 void SetLayoutStrategyToCommunity2D()
208 { this->SetLayoutStrategy(
"Community 2D"); }
209 void SetLayoutStrategyToFast2D()
210 { this->SetLayoutStrategy(
"Fast 2D"); }
211 void SetLayoutStrategyToPassThrough()
212 { this->SetLayoutStrategy(
"Pass Through"); }
213 void SetLayoutStrategyToCircular()
214 { this->SetLayoutStrategy(
"Circular"); }
215 void SetLayoutStrategyToTree()
216 { this->SetLayoutStrategy(
"Tree"); }
217 void SetLayoutStrategyToCosmicTree()
218 { this->SetLayoutStrategy(
"Cosmic Tree"); }
219 void SetLayoutStrategyToCone()
220 { this->SetLayoutStrategy(
"Cone"); }
221 void SetLayoutStrategyToSpanTree()
222 { this->SetLayoutStrategy(
"Span Tree"); }
223 const char* GetLayoutStrategyName();
239 void SetEdgeLayoutStrategy(
const char*
name);
240 void SetEdgeLayoutStrategyToArcParallel()
241 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
242 void SetEdgeLayoutStrategyToPassThrough()
243 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
244 const char* GetEdgeLayoutStrategyName();
261 void ClearIconTypes();
265 void SetIconAlignment(
int alignment);
269 void SetIconVisibility(
bool b);
270 bool GetIconVisibility();
271 vtkBooleanMacro(IconVisibility,
bool);
276 void SetIconArrayName(
const char*
name);
277 const char* GetIconArrayName();
282 void SetGlyphType(
int type);
288 virtual void SetVertexLabelFontSize(
const int size);
289 virtual int GetVertexLabelFontSize();
294 virtual void SetEdgeLabelFontSize(
const int size);
295 virtual int GetEdgeLabelFontSize();
300 void SetEdgeScalarBarVisibility(
bool vis);
301 bool GetEdgeScalarBarVisibility();
306 void SetVertexScalarBarVisibility(
bool vis);
307 bool GetVertexScalarBarVisibility();
311 void ZoomToSelection();
316 virtual int IsLayoutComplete();
322 virtual void UpdateLayout();
340 bool VertexLabelsRequested;
341 bool EdgeLabelsRequested;