Go to the documentation of this file.
33 #ifndef vtkCosmicTreeLayoutStrategy_h
34 #define vtkCosmicTreeLayoutStrategy_h
36 #include "vtkInfovisLayoutModule.h"
79 vtkSetMacro(LayoutDepth,
int);
80 vtkGetMacro(LayoutDepth,
int);
104 vtkSetStringMacro(NodeSizeArrayName);
105 vtkGetStringMacro(NodeSizeArrayName);
166 #endif // vtkCosmicTreeLayoutStrategy_h
represent and manipulate 3D points
abstract superclass for all graph layout strategies
@ NONE
No node sizes specified... unit radius is assumed.
abstract superclass for arrays of numeric data
void OffsetChildren(vtkTree *tree, vtkPoints *pts, vtkDoubleArray *radii, vtkDoubleArray *scale, double parent[4], vtkIdType root, int depth, RadiusMode mode)
Recursive routine that adds each parent node's (x,y) position to its children.
void LayoutChildren(vtkTree *tree, vtkPoints *newPoints, vtkDoubleArray *radii, vtkDoubleArray *scale, vtkIdType root, int depth, RadiusMode mode)
Recursive routine used to lay out tree nodes.
void Layout() override
Perform the layout.
A rooted tree data structure.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
@ LEAVES
Only leaf node sizes specified... parents are calculated during layout.
a simple class to control print indentation
tree layout strategy reminiscent of astronomical systems
static vtkCosmicTreeLayoutStrategy * New()
vtkCosmicTreeLayoutStrategy()
vtkDoubleArray * CreateRadii(vtkIdType numVertices, double initialValue, vtkDataArray *inputRadii)
Create an array to hold radii, named appropriately (depends on NodeSizeArrayName) and initialized to ...
~vtkCosmicTreeLayoutStrategy() override
vtkTypeBool SizeLeafNodesOnly
dynamic, self-adjusting array of double
RadiusMode
How are node sizes specified?
vtkDoubleArray * CreateScaleFactors(vtkIdType numVertices)
Create an array to hold scale factors, named appropriately (depends on NodeSizeArrayName) and initial...