47 #ifndef vtkGraphLayoutView_h
48 #define vtkGraphLayoutView_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);
200 { this->SetLayoutStrategy(
"Random"); }
202 { this->SetLayoutStrategy(
"Force Directed"); }
204 { this->SetLayoutStrategy(
"Simple 2D"); }
206 { this->SetLayoutStrategy(
"Clustering 2D"); }
208 { this->SetLayoutStrategy(
"Community 2D"); }
210 { this->SetLayoutStrategy(
"Fast 2D"); }
212 { this->SetLayoutStrategy(
"Pass Through"); }
214 { this->SetLayoutStrategy(
"Circular"); }
216 { this->SetLayoutStrategy(
"Tree"); }
218 { this->SetLayoutStrategy(
"Cosmic Tree"); }
220 { this->SetLayoutStrategy(
"Cone"); }
222 { this->SetLayoutStrategy(
"Span Tree"); }
223 const char* GetLayoutStrategyName();
239 void SetEdgeLayoutStrategy(
const char*
name);
241 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
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;
void SetLayoutStrategyToCosmicTree()
abstract base class for most VTK objects
Lays out and displays a graph.
void SetLayoutStrategyToTree()
static vtkRenderView * New()
void SetLayoutStrategyToSimple2D()
void SetLayoutStrategyToRandom()
void SetEdgeLayoutStrategyToArcParallel()
Proxy object to connect input/output ports.
abstract superclass for all graph layout strategies
void SetLayoutStrategyToSpanTree()
Sets theme colors for a graphical view.
a simple class to control print indentation
void SetLayoutStrategyToCone()
The superclass for all representations.
void SetLayoutStrategyToCircular()
void SetLayoutStrategyToFast2D()
virtual void ProcessEvents(vtkObject *caller, unsigned long eventId, void *callData)
void SetLayoutStrategyToClustering2D()
void SetLayoutStrategyToForceDirected()
void SetEdgeLayoutStrategyToPassThrough()
A view containing a renderer.
abstract superclass for all edge layout strategies
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKVIEWSINFOVIS_EXPORT
void SetLayoutStrategyToPassThrough()
void SetLayoutStrategyToCommunity2D()
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)