Go to the documentation of this file.
48 #ifndef vtkGraphLayoutView_h
49 #define vtkGraphLayoutView_h
51 #include "vtkViewsInfovisModule.h"
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"); }
287 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
289 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
421 bool VertexLabelsRequested;
422 bool EdgeLabelsRequested;
bool GetHideEdgeLabelsOnInteraction()
bool GetHideVertexLabelsOnInteraction()
void SetScaledGlyphs(bool arg)
Whether to use scaled glyphs or not.
virtual void SetVertexLabelFontSize(const int size)
The size of the font used for vertex labeling.
static vtkGraphLayoutView * New()
void SetEdgeVisibility(bool vis)
Whether to show the edges at all.
void SetLayoutStrategyToRandom()
A view containing a renderer.
virtual void SetEdgeLabelFontSize(const int size)
The size of the font used for edge labeling.
void SetHideVertexLabelsOnInteraction(bool vis)
Whether to hide vertex labels during mouse interactions.
void ZoomToSelection()
Reset the camera based on the bounds of the selected region.
bool GetVertexLabelVisibility()
void SetEdgeLayoutStrategy(const char *name)
The layout strategy to use when performing the edge layout.
void SetLayoutStrategyToClustering2D()
abstract superclass for all graph layout strategies
void SetLayoutStrategyToCommunity2D()
void SetScalingArrayName(const char *name)
The array used for scaling (if ScaledGlyphs is ON)
void SetIconAlignment(int alignment)
Specify where the icons should be placed in relation to the vertex.
void SetColorVertices(bool vis)
Whether to color vertices.
abstract base class for most VTK objects
void SetLayoutStrategyToForceDirected()
virtual int IsLayoutComplete()
Is the graph layout complete? This method is useful for when the strategy is iterative and the applic...
bool GetVertexScalarBarVisibility()
void SetHideEdgeLabelsOnInteraction(bool vis)
Whether to hide edge labels during mouse interactions.
void SetVertexScalarBarVisibility(bool vis)
Whether the scalar bar for vertices is visible.
void SetEdgeLabelArrayName(const char *name)
The array to use for edge labeling.
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)
Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.
const char * GetScalingArrayName()
void SetEdgeLayoutStrategyToPassThrough()
void SetLayoutStrategyToCircular()
void ClearIconTypes()
Clear all icon mappings.
Lays out and displays a graph.
virtual int GetEdgeLabelFontSize()
virtual void UpdateLayout()
This method is useful for when the strategy is iterative and the application wants to show the iterat...
void SetLayoutStrategyToPassThrough()
void SetEnabledVerticesArrayName(const char *name)
The array to use for coloring vertices.
vtkEdgeLayoutStrategy * GetEdgeLayoutStrategy()
The layout strategy to use when performing the edge layout.
void SetEnableEdgesByArray(bool vis)
Whether to color edges.
Sets theme colors for a graphical view.
void SetEnabledEdgesArrayName(const char *name)
The array to use for coloring edges.
void SetEdgeColorArrayName(const char *name)
The array to use for coloring edges.
The superclass for all representations.
int GetEnableVerticesByArray()
virtual vtkRenderedGraphRepresentation * GetGraphRepresentation()
const char * GetEnabledEdgesArrayName()
void SetVertexColorArrayName(const char *name)
The array to use for coloring vertices.
void SetIconArrayName(const char *name)
The array used for assigning icons.
a simple class to control print indentation
void SetLayoutStrategy(vtkGraphLayoutStrategy *s)
bool GetEdgeLabelVisibility()
void SetGlyphType(int type)
The type of glyph to use for the vertices.
void SetLayoutStrategy(const char *name)
The layout strategy to use when performing the graph layout.
virtual void ProcessEvents(vtkObject *caller, unsigned long eventId, void *callData)
Called to process events.
bool GetEdgeScalarBarVisibility()
void SetVertexLabelArrayName(const char *name)
The array to use for vertex labeling.
void SetLayoutStrategyToTree()
const char * GetVertexColorArrayName()
const char * GetEdgeColorArrayName()
const char * GetVertexLabelArrayName()
const char * GetEnabledVerticesArrayName()
void SetLayoutStrategyToCone()
const char * GetIconArrayName()
int GetEnableEdgesByArray()
void SetEdgeLabelVisibility(bool vis)
Whether to show edge labels.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
void SetIconVisibility(bool b)
Whether icons are visible (default off).
vtkGraphLayoutStrategy * GetLayoutStrategy()
The layout strategy to use when performing the graph layout.
void SetEdgeLayoutStrategy(vtkEdgeLayoutStrategy *s)
void SetLayoutStrategyToFast2D()
void SetEdgeScalarBarVisibility(bool vis)
Whether the scalar bar for edges is visible.
Proxy object to connect input/output ports.
void SetEdgeLayoutStrategyToArcParallel()
void SetColorEdges(bool vis)
Whether to color edges.
virtual int GetVertexLabelFontSize()
void SetLayoutStrategyToSimple2D()
const char * GetEdgeLabelArrayName()
void SetLayoutStrategyToCosmicTree()
abstract superclass for all edge layout strategies
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetLayoutStrategyToSpanTree()
void SetEnableVerticesByArray(bool vis)
Whether to color vertices.
const char * GetLayoutStrategyName()
void SetVertexLabelVisibility(bool vis)
Whether to show vertex labels.
void AddIconType(char *type, int index)
Associate the icon at index "index" in the vtkTexture to all vertices containing "type" as a value in...
const char * GetEdgeLayoutStrategyName()
void SetEdgeSelection(bool vis)
Whether edges are selectable.