Section: Visualization Toolkit Infovis Classes
Instances of subclasses of this class may be assigned as the layout strategy to vtkAreaLayout
.SECTION Thanks Thanks to Jason Shepherd from Sandia National Laboratories for help developing this class.
To create an instance of class vtkAreaLayoutStrategy, simply invoke its constructor as follows
obj = vtkAreaLayoutStrategy
obj
is an instance of the vtkAreaLayoutStrategy class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkAreaLayoutStrategy = obj.NewInstance ()
vtkAreaLayoutStrategy = obj.SafeDownCast (vtkObject o)
obj.Layout (vtkTree inputTree, vtkDataArray areaArray, vtkDataArray sizeArray)
- Perform the layout of the input tree, and store the sector
bounds of each vertex as a tuple in a data array.
For radial layout, this is
(innerRadius, outerRadius, startAngle, endAngle).
For rectangular layout, this is
(xmin, xmax, ymin, ymax).
The sizeArray may be NULL, or may contain the desired
size of each vertex in the tree.
obj.LayoutEdgePoints (vtkTree inputTree, vtkDataArray areaArray, vtkDataArray sizeArray, vtkTree edgeLayoutTree)
vtkIdType = obj.FindVertex (vtkTree tree, vtkDataArray array, float pnt[2])
- Returns the vertex id that contains pnt (or -1 if no one contains it)
obj.SetShrinkPercentage (double )
double = obj.GetShrinkPercentageMinValue ()
double = obj.GetShrinkPercentageMaxValue ()
double = obj.GetShrinkPercentage ()