VTK
|
layout a vtkTree as a circle packing. More...
#include <vtkCirclePackLayout.h>
layout a vtkTree as a circle packing.
vtkCirclePackLayout assigns circle shaped regions to each vertex in the tree, creating a circle packing layout. The data is added as a data array with three components per tuple representing the center and radius of the circle using the format (Xcenter, Ycenter, Radius).
This algorithm relies on a helper class to perform the actual layout. This helper class is a subclass of vtkCirclePackLayoutStrategy.
An array by default called "size" can be attached to the input tree that specifies the size of each leaf node in the tree. The filter will calculate the sizes of all interior nodes in the tree based on the sum of the leaf node sizes. If no "size" array is given in the input vtkTree, a size of 1 is used for all leaf nodes to find the size of the interior nodes.
Definition at line 58 of file vtkCirclePackLayout.h.
Reimplemented from vtkTreeAlgorithm.
Definition at line 63 of file vtkCirclePackLayout.h.
vtkCirclePackLayout::vtkCirclePackLayout | ( | ) | [protected] |
vtkCirclePackLayout::~vtkCirclePackLayout | ( | ) | [protected] |
static vtkCirclePackLayout* vtkCirclePackLayout::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTreeAlgorithm.
static int vtkCirclePackLayout::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 vtkTreeAlgorithm.
virtual int vtkCirclePackLayout::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 vtkTreeAlgorithm.
static vtkCirclePackLayout* vtkCirclePackLayout::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkTreeAlgorithm.
virtual vtkObjectBase* vtkCirclePackLayout::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkTreeAlgorithm.
Reimplemented from vtkTreeAlgorithm.
void vtkCirclePackLayout::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 vtkTreeAlgorithm.
virtual char* vtkCirclePackLayout::GetCirclesFieldName | ( | ) | [virtual] |
The field name to use for storing the circles for each vertex. The rectangles are stored in a triple float array (Xcenter, Ycenter, Radius). Default name is "circles"
virtual void vtkCirclePackLayout::SetCirclesFieldName | ( | const char * | ) | [virtual] |
The field name to use for storing the circles for each vertex. The rectangles are stored in a triple float array (Xcenter, Ycenter, Radius). Default name is "circles"
virtual void vtkCirclePackLayout::SetSizeArrayName | ( | const char * | name | ) | [inline, virtual] |
The array to use for the size of each vertex. Default name is "size".
Definition at line 77 of file vtkCirclePackLayout.h.
virtual vtkCirclePackLayoutStrategy* vtkCirclePackLayout::GetLayoutStrategy | ( | ) | [virtual] |
The strategy to use when laying out the tree map.
void vtkCirclePackLayout::SetLayoutStrategy | ( | vtkCirclePackLayoutStrategy * | strategy | ) |
The strategy to use when laying out the tree map.
vtkIdType vtkCirclePackLayout::FindVertex | ( | double | pnt[2], |
double * | cinfo = 0 |
||
) |
Returns the vertex id that contains pnt (or -1 if no one contains it) pnt[0] is x, and pnt[1] is y. If cinfo[3] is provided, then (Xcenter, Ycenter, Radius) of the circle containing pnt[2] will be returned.
void vtkCirclePackLayout::GetBoundingCircle | ( | vtkIdType | id, |
double * | cinfo | ||
) |
Return the Xcenter, Ycenter, and Radius of the vertex's bounding circle
virtual unsigned long vtkCirclePackLayout::GetMTime | ( | ) | [virtual] |
Get the modification time of the layout algorithm.
Reimplemented from vtkObject.
int vtkCirclePackLayout::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkTreeAlgorithm.
char* vtkCirclePackLayout::CirclesFieldName [protected] |
Definition at line 104 of file vtkCirclePackLayout.h.
Definition at line 105 of file vtkCirclePackLayout.h.