VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkGraphLayoutView Class Reference

Lays out and displays a graph. More...

#include <vtkGraphLayoutView.h>

Inheritance diagram for vtkGraphLayoutView:
[legend]
Collaboration diagram for vtkGraphLayoutView:
[legend]

Public Types

typedef vtkRenderView Superclass
- Public Types inherited from vtkRenderView
enum  { INTERACTION_MODE_2D, INTERACTION_MODE_3D, INTERACTION_MODE_UNKNOWN }
enum  { SURFACE = 0, FRUSTUM = 1 }
enum  { NO_OVERLAP, ALL }
enum  { FREETYPE, QT }
typedef vtkRenderViewBase Superclass
- Public Types inherited from vtkRenderViewBase
typedef vtkView Superclass
- Public Types inherited from vtkView
typedef vtkObject Superclass
- Public Types inherited from vtkObject
typedef vtkObjectBase 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 ()
- Public Member Functions inherited from vtkRenderView
virtual void SetInteractor (vtkRenderWindowInteractor *interactor)
virtual void SetInteractorStyle (vtkInteractorObserver *style)
virtual vtkInteractorObserverGetInteractorStyle ()
virtual void SetRenderWindow (vtkRenderWindow *win)
void SetInteractionMode (int mode)
virtual int GetInteractionMode ()
virtual void Render ()
virtual void ApplyViewTheme (vtkViewTheme *theme)
virtual void AddLabels (vtkAlgorithmOutput *conn)
virtual void RemoveLabels (vtkAlgorithmOutput *conn)
virtual void SetInteractionModeTo2D ()
virtual void SetInteractionModeTo3D ()
virtual void SetTransform (vtkAbstractTransform *transform)
virtual vtkAbstractTransformGetTransform ()
virtual void SetDisplayHoverText (bool b)
virtual bool GetDisplayHoverText ()
virtual void DisplayHoverTextOn ()
virtual void DisplayHoverTextOff ()
virtual void SetSelectionMode (int)
virtual int GetSelectionMode ()
void SetSelectionModeToSurface ()
void SetSelectionModeToFrustum ()
virtual void SetIconTexture (vtkTexture *texture)
virtual vtkTextureGetIconTexture ()
virtual void SetIconSize (int, int)
void SetIconSize (int[2])
virtual int * GetIconSize ()
virtual void GetIconSize (int &, int &)
virtual void GetIconSize (int[2])
virtual void SetDisplaySize (int, int)
void SetDisplaySize (int[2])
int * GetDisplaySize ()
void GetDisplaySize (int &dsx, int &dsy)
virtual void SetLabelPlacementMode (int mode)
virtual int GetLabelPlacementMode ()
virtual void SetLabelPlacementModeToNoOverlap ()
virtual void SetLabelPlacementModeToAll ()
virtual void SetLabelRenderMode (int mode)
virtual int GetLabelRenderMode ()
virtual void SetLabelRenderModeToFreetype ()
virtual void SetLabelRenderModeToQt ()
void SetRenderOnMouseMove (bool b)
virtual bool GetRenderOnMouseMove ()
virtual void RenderOnMouseMoveOn ()
virtual void RenderOnMouseMoveOff ()
- Public Member Functions inherited from vtkRenderViewBase
virtual vtkRendererGetRenderer ()
virtual void SetRenderer (vtkRenderer *ren)
virtual vtkRenderWindowGetRenderWindow ()
virtual void ResetCamera ()
virtual void ResetCameraClippingRange ()
virtual vtkRenderWindowInteractorGetInteractor ()
- Public Member Functions inherited from vtkView
void AddRepresentation (vtkDataRepresentation *rep)
void SetRepresentation (vtkDataRepresentation *rep)
vtkDataRepresentationAddRepresentationFromInputConnection (vtkAlgorithmOutput *conn)
vtkDataRepresentationSetRepresentationFromInputConnection (vtkAlgorithmOutput *conn)
vtkDataRepresentationAddRepresentationFromInput (vtkDataObject *input)
vtkDataRepresentationSetRepresentationFromInput (vtkDataObject *input)
void RemoveRepresentation (vtkDataRepresentation *rep)
void RemoveRepresentation (vtkAlgorithmOutput *rep)
void RemoveAllRepresentations ()
int GetNumberOfRepresentations ()
vtkDataRepresentationGetRepresentation (int index=0)
bool IsRepresentationPresent (vtkDataRepresentation *rep)
virtual void Update ()
virtual void ApplyViewTheme (vtkViewTheme *vtkNotUsed(theme))
vtkCommandGetObserver ()
void RegisterProgress (vtkObject *algorithm, const char *message=NULL)
void UnRegisterProgress (vtkObject *algorithm)
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
virtual unsigned long GetMTime ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommandGetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

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)
- Protected Member Functions inherited from vtkRenderView
virtual void PrepareForRendering ()
virtual void UpdateHoverText ()
virtual void UpdateHoverWidgetState ()
void UpdatePickRender ()
virtual void GenerateSelection (void *callData, vtkSelection *selection)
 vtkRenderView ()
 ~vtkRenderView ()
- Protected Member Functions inherited from vtkRenderViewBase
 vtkRenderViewBase ()
 ~vtkRenderViewBase ()
- Protected Member Functions inherited from vtkView
 vtkView ()
 ~vtkView ()
virtual void AddRepresentationInternal (vtkDataRepresentation *vtkNotUsed(rep))
virtual void RemoveRepresentationInternal (vtkDataRepresentation *vtkNotUsed(rep))
virtual void SetReuseSingleRepresentation (bool)
virtual bool GetReuseSingleRepresentation ()
virtual void ReuseSingleRepresentationOn ()
virtual void ReuseSingleRepresentationOff ()
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Additional Inherited Members

- Protected Attributes inherited from vtkRenderView
int SelectionMode
int LabelRenderMode
bool DisplayHoverText
bool Interacting
bool InHoverTextRender
bool InPickRender
bool PickRenderNeedsUpdate
vtkAbstractTransformTransform
vtkTextureIconTexture
int IconSize [2]
int DisplaySize [2]
int InteractionMode
bool RenderOnMouseMove
vtkSmartPointer< vtkRendererLabelRenderer
vtkSmartPointer
< vtkBalloonRepresentation
Balloon
vtkSmartPointer
< vtkLabelPlacementMapper
LabelPlacementMapper
vtkSmartPointer
< vtkTexturedActor2D
LabelActor
vtkSmartPointer< vtkHoverWidgetHoverWidget
vtkSmartPointer
< vtkHardwareSelector
Selector
- Friends inherited from vtkObject

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.

Member Typedef Documentation

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)
protectedvirtual

Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.

Reimplemented from vtkView.

Reimplemented in vtkHierarchicalGraphView.

virtual vtkRenderedGraphRepresentation* vtkGraphLayoutView::GetGraphRepresentation ( )
protectedvirtual

Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.

Reimplemented in vtkHierarchicalGraphView.

virtual void vtkGraphLayoutView::ProcessEvents ( vtkObject caller,
unsigned long  eventId,
void *  callData 
)
protectedvirtual

Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.

Reimplemented from vtkRenderView.


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