Section: Visualization Toolkit Infovis Classes
To create an instance of class vtkEdgeLayoutStrategy, simply invoke its constructor as follows
obj = vtkEdgeLayoutStrategy
obj
is an instance of the vtkEdgeLayoutStrategy class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkEdgeLayoutStrategy = obj.NewInstance ()
vtkEdgeLayoutStrategy = obj.SafeDownCast (vtkObject o)
obj.SetGraph (vtkGraph graph)
- Setting the graph for the layout strategy
obj.Initialize ()
- This method allows the layout strategy to
do initialization of data structures
or whatever else it might want to do.
obj.Layout ()
- This is the layout method where the graph that was
set in SetGraph() is laid out.
obj.SetEdgeWeightArrayName (string )
- Set/Get the field to use for the edge weights.
string = obj.GetEdgeWeightArrayName ()
- Set/Get the field to use for the edge weights.