vtkGraphLayoutView Class Reference

#include <vtkGraphLayoutView.h>

Inheritance diagram for vtkGraphLayoutView:

Inheritance graph
[legend]
Collaboration diagram for vtkGraphLayoutView:

Collaboration graph
[legend]

List of all members.


Detailed Description

Lays out and displays a graph.

vtkGraphLayoutView performs graph layout and displays a vtkGraph. You may color and label the vertices and edges using fields in the graph. If coordinates are already assigned to the graph vertices in your graph, set the layout strategy to PassThrough in this view. The default layout is Fast2D which is fast but not that good, for better layout set the layout to Simple2D or ForceDirected. There are also tree and circle layout strategies. :)

.SEE ALSO vtkFast2DLayoutStrategy vtkSimple2DLayoutStrategy vtkForceDirectedLayoutStrategy

Thanks:
Thanks a bunch to the holographic unfolding pattern.
Examples:
vtkGraphLayoutView (Examples)
Tests:
vtkGraphLayoutView (Tests)

Definition at line 57 of file vtkGraphLayoutView.h.


Public Types

typedef vtkRenderView Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void AddIconType (char *type, int index)
void ClearIconTypes ()
void SetIconAlignment (int alignment)
void ZoomToSelection ()
virtual int IsLayoutComplete ()
virtual void UpdateLayout ()
void SetVertexLabelArrayName (const char *name)
const char * GetVertexLabelArrayName ()
void SetEdgeLabelArrayName (const char *name)
const char * GetEdgeLabelArrayName ()
void SetVertexLabelVisibility (bool vis)
bool GetVertexLabelVisibility ()
virtual void VertexLabelVisibilityOn ()
virtual void VertexLabelVisibilityOff ()
void SetHideVertexLabelsOnInteraction (bool vis)
bool GetHideVertexLabelsOnInteraction ()
virtual void HideVertexLabelsOnInteractionOn ()
virtual void HideVertexLabelsOnInteractionOff ()
void SetEdgeVisibility (bool vis)
bool GetEdgeVisibility ()
virtual void EdgeVisibilityOn ()
virtual void EdgeVisibilityOff ()
void SetEdgeLabelVisibility (bool vis)
bool GetEdgeLabelVisibility ()
virtual void EdgeLabelVisibilityOn ()
virtual void EdgeLabelVisibilityOff ()
void SetHideEdgeLabelsOnInteraction (bool vis)
bool GetHideEdgeLabelsOnInteraction ()
virtual void HideEdgeLabelsOnInteractionOn ()
virtual void HideEdgeLabelsOnInteractionOff ()
void SetVertexColorArrayName (const char *name)
const char * GetVertexColorArrayName ()
void SetColorVertices (bool vis)
bool GetColorVertices ()
virtual void ColorVerticesOn ()
virtual void ColorVerticesOff ()
void SetEdgeColorArrayName (const char *name)
const char * GetEdgeColorArrayName ()
void SetColorEdges (bool vis)
bool GetColorEdges ()
virtual void ColorEdgesOn ()
virtual void ColorEdgesOff ()
void SetEdgeSelection (bool vis)
bool GetEdgeSelection ()
virtual void EdgeSelectionOn ()
virtual void EdgeSelectionOff ()
void SetEnabledEdgesArrayName (const char *name)
const char * GetEnabledEdgesArrayName ()
void SetEnableEdgesByArray (bool vis)
int GetEnableEdgesByArray ()
void SetEnabledVerticesArrayName (const char *name)
const char * GetEnabledVerticesArrayName ()
void SetEnableVerticesByArray (bool vis)
int GetEnableVerticesByArray ()
void SetScalingArrayName (const char *name)
const char * GetScalingArrayName ()
void SetScaledGlyphs (bool arg)
bool GetScaledGlyphs ()
virtual void ScaledGlyphsOn ()
virtual void ScaledGlyphsOff ()
void SetLayoutStrategy (const char *name)
void SetLayoutStrategyToRandom ()
void SetLayoutStrategyToForceDirected ()
void SetLayoutStrategyToSimple2D ()
void SetLayoutStrategyToClustering2D ()
void SetLayoutStrategyToCommunity2D ()
void SetLayoutStrategyToFast2D ()
void SetLayoutStrategyToPassThrough ()
void SetLayoutStrategyToCircular ()
void SetLayoutStrategyToTree ()
void SetLayoutStrategyToCosmicTree ()
void SetLayoutStrategyToCone ()
void SetLayoutStrategyToSpanTree ()
const char * GetLayoutStrategyName ()
vtkGraphLayoutStrategyGetLayoutStrategy ()
void SetLayoutStrategy (vtkGraphLayoutStrategy *s)
void SetEdgeLayoutStrategy (const char *name)
void SetEdgeLayoutStrategyToArcParallel ()
void SetEdgeLayoutStrategyToPassThrough ()
const char * GetEdgeLayoutStrategyName ()
vtkEdgeLayoutStrategyGetEdgeLayoutStrategy ()
void SetEdgeLayoutStrategy (vtkEdgeLayoutStrategy *s)
void SetIconVisibility (bool b)
bool GetIconVisibility ()
virtual void IconVisibilityOn ()
virtual void IconVisibilityOff ()
void SetIconArrayName (const char *name)
const char * GetIconArrayName ()
void SetGlyphType (int type)
int GetGlyphType ()
virtual void SetVertexLabelFontSize (const int size)
virtual int GetVertexLabelFontSize ()
virtual void SetEdgeLabelFontSize (const int size)
virtual int GetEdgeLabelFontSize ()
void SetEdgeScalarBarVisibility (bool vis)
bool GetEdgeScalarBarVisibility ()
void SetVertexScalarBarVisibility (bool vis)
bool GetVertexScalarBarVisibility ()

Static Public Member Functions

static vtkGraphLayoutViewNew ()
static int IsTypeOf (const char *type)
static vtkGraphLayoutViewSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkGraphLayoutView ()
 ~vtkGraphLayoutView ()
virtual vtkDataRepresentationCreateDefaultRepresentation (vtkAlgorithmOutput *conn)
virtual
vtkRenderedGraphRepresentation
GetGraphRepresentation ()
virtual void ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData)

Member Typedef Documentation

Reimplemented from vtkRenderView.

Reimplemented in vtkHierarchicalGraphView.

Definition at line 61 of file vtkGraphLayoutView.h.


Constructor & Destructor Documentation

vtkGraphLayoutView::vtkGraphLayoutView (  )  [protected]

vtkGraphLayoutView::~vtkGraphLayoutView (  )  [protected]


Member Function Documentation

static vtkGraphLayoutView* vtkGraphLayoutView::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkRenderView.

Reimplemented in vtkHierarchicalGraphView.

virtual const char* vtkGraphLayoutView::GetClassName (  )  [virtual]

Reimplemented from vtkRenderView.

Reimplemented in vtkHierarchicalGraphView.

static int vtkGraphLayoutView::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkRenderView.

Reimplemented in vtkHierarchicalGraphView.

virtual int vtkGraphLayoutView::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkRenderView.

Reimplemented in vtkHierarchicalGraphView.

static vtkGraphLayoutView* vtkGraphLayoutView::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkRenderView.

Reimplemented in vtkHierarchicalGraphView.

void vtkGraphLayoutView::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkRenderView.

Reimplemented in vtkHierarchicalGraphView.

void vtkGraphLayoutView::SetVertexLabelArrayName ( const char *  name  ) 

The array to use for vertex labeling. Default is "label".

const char* vtkGraphLayoutView::GetVertexLabelArrayName (  ) 

The array to use for vertex labeling. Default is "label".

void vtkGraphLayoutView::SetEdgeLabelArrayName ( const char *  name  ) 

The array to use for edge labeling. Default is "label".

const char* vtkGraphLayoutView::GetEdgeLabelArrayName (  ) 

The array to use for edge labeling. Default is "label".

void vtkGraphLayoutView::SetVertexLabelVisibility ( bool  vis  ) 

Whether to show vertex labels. Default is off.

bool vtkGraphLayoutView::GetVertexLabelVisibility (  ) 

Whether to show vertex labels. Default is off.

virtual void vtkGraphLayoutView::VertexLabelVisibilityOn (  )  [virtual]

Whether to show vertex labels. Default is off.

virtual void vtkGraphLayoutView::VertexLabelVisibilityOff (  )  [virtual]

Whether to show vertex labels. Default is off.

void vtkGraphLayoutView::SetHideVertexLabelsOnInteraction ( bool  vis  ) 

Whether to hide vertex labels during mouse interactions. Default is off.

bool vtkGraphLayoutView::GetHideVertexLabelsOnInteraction (  ) 

Whether to hide vertex labels during mouse interactions. Default is off.

virtual void vtkGraphLayoutView::HideVertexLabelsOnInteractionOn (  )  [virtual]

Whether to hide vertex labels during mouse interactions. Default is off.

virtual void vtkGraphLayoutView::HideVertexLabelsOnInteractionOff (  )  [virtual]

Whether to hide vertex labels during mouse interactions. Default is off.

void vtkGraphLayoutView::SetEdgeVisibility ( bool  vis  ) 

Whether to show the edges at all. Default is on

bool vtkGraphLayoutView::GetEdgeVisibility (  ) 

Whether to show the edges at all. Default is on

virtual void vtkGraphLayoutView::EdgeVisibilityOn (  )  [virtual]

Whether to show the edges at all. Default is on

virtual void vtkGraphLayoutView::EdgeVisibilityOff (  )  [virtual]

Whether to show the edges at all. Default is on

void vtkGraphLayoutView::SetEdgeLabelVisibility ( bool  vis  ) 

Whether to show edge labels. Default is off.

bool vtkGraphLayoutView::GetEdgeLabelVisibility (  ) 

Whether to show edge labels. Default is off.

virtual void vtkGraphLayoutView::EdgeLabelVisibilityOn (  )  [virtual]

Whether to show edge labels. Default is off.

virtual void vtkGraphLayoutView::EdgeLabelVisibilityOff (  )  [virtual]

Whether to show edge labels. Default is off.

void vtkGraphLayoutView::SetHideEdgeLabelsOnInteraction ( bool  vis  ) 

Whether to hide edge labels during mouse interactions. Default is off.

bool vtkGraphLayoutView::GetHideEdgeLabelsOnInteraction (  ) 

Whether to hide edge labels during mouse interactions. Default is off.

virtual void vtkGraphLayoutView::HideEdgeLabelsOnInteractionOn (  )  [virtual]

Whether to hide edge labels during mouse interactions. Default is off.

virtual void vtkGraphLayoutView::HideEdgeLabelsOnInteractionOff (  )  [virtual]

Whether to hide edge labels during mouse interactions. Default is off.

void vtkGraphLayoutView::SetVertexColorArrayName ( const char *  name  ) 

The array to use for coloring vertices. The default behavior is to color by vertex degree.

const char* vtkGraphLayoutView::GetVertexColorArrayName (  ) 

The array to use for coloring vertices. The default behavior is to color by vertex degree.

void vtkGraphLayoutView::SetColorVertices ( bool  vis  ) 

Whether to color vertices. Default is off.

bool vtkGraphLayoutView::GetColorVertices (  ) 

Whether to color vertices. Default is off.

virtual void vtkGraphLayoutView::ColorVerticesOn (  )  [virtual]

Whether to color vertices. Default is off.

virtual void vtkGraphLayoutView::ColorVerticesOff (  )  [virtual]

Whether to color vertices. Default is off.

void vtkGraphLayoutView::SetEdgeColorArrayName ( const char *  name  ) 

The array to use for coloring edges. Default is "color".

const char* vtkGraphLayoutView::GetEdgeColorArrayName (  ) 

The array to use for coloring edges. Default is "color".

void vtkGraphLayoutView::SetColorEdges ( bool  vis  ) 

Whether to color edges. Default is off.

bool vtkGraphLayoutView::GetColorEdges (  ) 

Whether to color edges. Default is off.

virtual void vtkGraphLayoutView::ColorEdgesOn (  )  [virtual]

Whether to color edges. Default is off.

virtual void vtkGraphLayoutView::ColorEdgesOff (  )  [virtual]

Whether to color edges. Default is off.

void vtkGraphLayoutView::SetEdgeSelection ( bool  vis  ) 

Whether edges are selectable. Default is on.

bool vtkGraphLayoutView::GetEdgeSelection (  ) 

Whether edges are selectable. Default is on.

virtual void vtkGraphLayoutView::EdgeSelectionOn (  )  [virtual]

Whether edges are selectable. Default is on.

virtual void vtkGraphLayoutView::EdgeSelectionOff (  )  [virtual]

Whether edges are selectable. Default is on.

void vtkGraphLayoutView::SetEnabledEdgesArrayName ( const char *  name  ) 

The array to use for coloring edges.

const char* vtkGraphLayoutView::GetEnabledEdgesArrayName (  ) 

The array to use for coloring edges.

void vtkGraphLayoutView::SetEnableEdgesByArray ( bool  vis  ) 

Whether to color edges. Default is off.

int vtkGraphLayoutView::GetEnableEdgesByArray (  ) 

Whether to color edges. Default is off.

void vtkGraphLayoutView::SetEnabledVerticesArrayName ( const char *  name  ) 

The array to use for coloring vertices.

const char* vtkGraphLayoutView::GetEnabledVerticesArrayName (  ) 

The array to use for coloring vertices.

void vtkGraphLayoutView::SetEnableVerticesByArray ( bool  vis  ) 

Whether to color vertices. Default is off.

int vtkGraphLayoutView::GetEnableVerticesByArray (  ) 

Whether to color vertices. Default is off.

void vtkGraphLayoutView::SetScalingArrayName ( const char *  name  ) 

The array used for scaling (if ScaledGlyphs is ON)

const char* vtkGraphLayoutView::GetScalingArrayName (  ) 

The array used for scaling (if ScaledGlyphs is ON)

void vtkGraphLayoutView::SetScaledGlyphs ( bool  arg  ) 

Whether to use scaled glyphs or not. Default is off.

bool vtkGraphLayoutView::GetScaledGlyphs (  ) 

Whether to use scaled glyphs or not. Default is off.

virtual void vtkGraphLayoutView::ScaledGlyphsOn (  )  [virtual]

Whether to use scaled glyphs or not. Default is off.

virtual void vtkGraphLayoutView::ScaledGlyphsOff (  )  [virtual]

Whether to use scaled glyphs or not. Default is off.

void vtkGraphLayoutView::SetLayoutStrategy ( const char *  name  ) 

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

void vtkGraphLayoutView::SetLayoutStrategyToRandom (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 198 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToForceDirected (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 200 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToSimple2D (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 202 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToClustering2D (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 204 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToCommunity2D (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 206 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToFast2D (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 208 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToPassThrough (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 210 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToCircular (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 212 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToTree (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 214 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToCosmicTree (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 216 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToCone (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 218 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetLayoutStrategyToSpanTree (  )  [inline]

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

Definition at line 220 of file vtkGraphLayoutView.h.

const char* vtkGraphLayoutView::GetLayoutStrategyName (  ) 

The layout strategy to use when performing the graph layout. The possible strings are: - "Random" Randomly places vertices in a box. - "Force Directed" A layout in 3D or 2D simulating forces on edges. - "Simple 2D" A simple 2D force directed layout. - "Clustering 2D" A 2D force directed layout that's just like simple 2D but uses some techniques to cluster better. - "Community 2D" A linear-time 2D layout that's just like Fast 2D but looks for and uses a community array to 'accentuate' clusters. - "Fast 2D" A linear-time 2D layout. - "Pass Through" Use locations assigned to the input. - "Circular" Places vertices uniformly on a circle. - "Cone" Cone tree layout. - "Span Tree" Span Tree Layout. Default is "Simple 2D".

vtkGraphLayoutStrategy* vtkGraphLayoutView::GetLayoutStrategy (  ) 

The layout strategy to use when performing the graph layout. This signature allows an application to create a layout object directly and simply set the pointer through this method.

void vtkGraphLayoutView::SetLayoutStrategy ( vtkGraphLayoutStrategy s  ) 

The layout strategy to use when performing the graph layout. This signature allows an application to create a layout object directly and simply set the pointer through this method.

void vtkGraphLayoutView::SetEdgeLayoutStrategy ( const char *  name  ) 

The layout strategy to use when performing the edge layout. The possible strings are: "Arc Parallel" - Arc parallel edges and self loops. "Pass Through" - Use edge routes assigned to the input. Default is "Arc Parallel".

void vtkGraphLayoutView::SetEdgeLayoutStrategyToArcParallel (  )  [inline]

The layout strategy to use when performing the edge layout. The possible strings are: "Arc Parallel" - Arc parallel edges and self loops. "Pass Through" - Use edge routes assigned to the input. Default is "Arc Parallel".

Definition at line 239 of file vtkGraphLayoutView.h.

void vtkGraphLayoutView::SetEdgeLayoutStrategyToPassThrough (  )  [inline]

The layout strategy to use when performing the edge layout. The possible strings are: "Arc Parallel" - Arc parallel edges and self loops. "Pass Through" - Use edge routes assigned to the input. Default is "Arc Parallel".

Definition at line 241 of file vtkGraphLayoutView.h.

const char* vtkGraphLayoutView::GetEdgeLayoutStrategyName (  ) 

The layout strategy to use when performing the edge layout. The possible strings are: "Arc Parallel" - Arc parallel edges and self loops. "Pass Through" - Use edge routes assigned to the input. Default is "Arc Parallel".

vtkEdgeLayoutStrategy* vtkGraphLayoutView::GetEdgeLayoutStrategy (  ) 

The layout strategy to use when performing the edge layout. This signature allows an application to create a layout object directly and simply set the pointer through this method.

void vtkGraphLayoutView::SetEdgeLayoutStrategy ( vtkEdgeLayoutStrategy s  ) 

The layout strategy to use when performing the edge layout. This signature allows an application to create a layout object directly and simply set the pointer through this method.

void vtkGraphLayoutView::AddIconType ( char *  type,
int  index 
)

Associate the icon at index "index" in the vtkTexture to all vertices containing "type" as a value in the vertex attribute array specified by IconArrayName.

void vtkGraphLayoutView::ClearIconTypes (  ) 

Clear all icon mappings.

void vtkGraphLayoutView::SetIconAlignment ( int  alignment  ) 

Specify where the icons should be placed in relation to the vertex. See vtkIconGlyphFilter.h for possible values.

void vtkGraphLayoutView::SetIconVisibility ( bool  b  ) 

Whether icons are visible (default off).

bool vtkGraphLayoutView::GetIconVisibility (  ) 

Whether icons are visible (default off).

virtual void vtkGraphLayoutView::IconVisibilityOn (  )  [virtual]

Whether icons are visible (default off).

virtual void vtkGraphLayoutView::IconVisibilityOff (  )  [virtual]

Whether icons are visible (default off).

void vtkGraphLayoutView::SetIconArrayName ( const char *  name  ) 

The array used for assigning icons

const char* vtkGraphLayoutView::GetIconArrayName (  ) 

The array used for assigning icons

void vtkGraphLayoutView::SetGlyphType ( int  type  ) 

The type of glyph to use for the vertices

int vtkGraphLayoutView::GetGlyphType (  ) 

The type of glyph to use for the vertices

virtual void vtkGraphLayoutView::SetVertexLabelFontSize ( const int  size  )  [virtual]

The size of the font used for vertex labeling

virtual int vtkGraphLayoutView::GetVertexLabelFontSize (  )  [virtual]

The size of the font used for vertex labeling

virtual void vtkGraphLayoutView::SetEdgeLabelFontSize ( const int  size  )  [virtual]

The size of the font used for edge labeling

virtual int vtkGraphLayoutView::GetEdgeLabelFontSize (  )  [virtual]

The size of the font used for edge labeling

void vtkGraphLayoutView::SetEdgeScalarBarVisibility ( bool  vis  ) 

Whether the scalar bar for edges is visible. Default is off.

bool vtkGraphLayoutView::GetEdgeScalarBarVisibility (  ) 

Whether the scalar bar for edges is visible. Default is off.

void vtkGraphLayoutView::SetVertexScalarBarVisibility ( bool  vis  ) 

Whether the scalar bar for vertices is visible. Default is off.

bool vtkGraphLayoutView::GetVertexScalarBarVisibility (  ) 

Whether the scalar bar for vertices is visible. Default is off.

void vtkGraphLayoutView::ZoomToSelection (  ) 

Reset the camera based on the bounds of the selected region.

virtual int vtkGraphLayoutView::IsLayoutComplete (  )  [virtual]

Is the graph layout complete? This method is useful for when the strategy is iterative and the application wants to show the iterative progress of the graph layout See Also: UpdateLayout();

virtual void vtkGraphLayoutView::UpdateLayout (  )  [virtual]

This method is useful for when the strategy is iterative and the application wants to show the iterative progress of the graph layout. The application would have something like while(!IsLayoutComplete()) { UpdateLayout(); } See Also: IsLayoutComplete();

virtual vtkDataRepresentation* vtkGraphLayoutView::CreateDefaultRepresentation ( vtkAlgorithmOutput conn  )  [protected, virtual]

Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.

Reimplemented from vtkView.

Reimplemented in vtkHierarchicalGraphView.

virtual vtkRenderedGraphRepresentation* vtkGraphLayoutView::GetGraphRepresentation (  )  [protected, virtual]

Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.

Reimplemented in vtkHierarchicalGraphView.

virtual void vtkGraphLayoutView::ProcessEvents ( vtkObject caller,
unsigned long  eventId,
void *  callData 
) [protected, virtual]

Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.

Reimplemented from vtkRenderView.


The documentation for this class was generated from the following file:

Generated on Wed Aug 24 11:38:50 2011 for VTK by  doxygen 1.5.6