#include <vtkTreeMapLayout.h>
vtkTreeMapLayout assigns rectangular regions to each vertex in the tree, creating a tree map. The data is added as a data array with four components per tuple representing the location and size of the rectangle using the format (Xmin, Xmax, Ymin, Ymax).
This algorithm relies on a helper class to perform the actual layout. This helper class is a subclass of vtkTreeMapLayoutStrategy.
Definition at line 52 of file vtkTreeMapLayout.h.
Public Types | |
typedef vtkTreeAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkIdType | FindVertex (float pnt[2], float *binfo=0) |
void | GetBoundingBox (vtkIdType id, float *binfo) |
virtual unsigned long | GetMTime () |
virtual char * | GetRectanglesFieldName () |
virtual void | SetRectanglesFieldName (const char *) |
virtual void | SetSizeArrayName (const char *name) |
virtual vtkTreeMapLayoutStrategy * | GetLayoutStrategy () |
void | SetLayoutStrategy (vtkTreeMapLayoutStrategy *strategy) |
Static Public Member Functions | |
static vtkTreeMapLayout * | New () |
static int | IsTypeOf (const char *type) |
static vtkTreeMapLayout * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkTreeMapLayout () | |
~vtkTreeMapLayout () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
char * | RectanglesFieldName |
vtkTreeMapLayoutStrategy * | LayoutStrategy |
vtkTreeMapLayout::vtkTreeMapLayout | ( | ) | [protected] |
vtkTreeMapLayout::~vtkTreeMapLayout | ( | ) | [protected] |
static vtkTreeMapLayout* vtkTreeMapLayout::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTreeAlgorithm.
virtual const char* vtkTreeMapLayout::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkTreeAlgorithm.
static int vtkTreeMapLayout::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkTreeAlgorithm.
virtual int vtkTreeMapLayout::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkTreeAlgorithm.
static vtkTreeMapLayout* vtkTreeMapLayout::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkTreeAlgorithm.
void vtkTreeMapLayout::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* vtkTreeMapLayout::GetRectanglesFieldName | ( | ) | [virtual] |
The field name to use for storing the rectangles for each vertex. The rectangles are stored in a quadruple float array (minX, maxX, minY, maxY).
virtual void vtkTreeMapLayout::SetRectanglesFieldName | ( | const char * | ) | [virtual] |
The field name to use for storing the rectangles for each vertex. The rectangles are stored in a quadruple float array (minX, maxX, minY, maxY).
virtual void vtkTreeMapLayout::SetSizeArrayName | ( | const char * | name | ) | [inline, virtual] |
The array to use for the size of each vertex.
Definition at line 70 of file vtkTreeMapLayout.h.
virtual vtkTreeMapLayoutStrategy* vtkTreeMapLayout::GetLayoutStrategy | ( | ) | [virtual] |
The strategy to use when laying out the tree map.
void vtkTreeMapLayout::SetLayoutStrategy | ( | vtkTreeMapLayoutStrategy * | strategy | ) |
The strategy to use when laying out the tree map.
vtkIdType vtkTreeMapLayout::FindVertex | ( | float | pnt[2], | |
float * | binfo = 0 | |||
) |
Returns the vertex id that contains pnt (or -1 if no one contains it)
void vtkTreeMapLayout::GetBoundingBox | ( | vtkIdType | id, | |
float * | binfo | |||
) |
Return the min and max 2D points of the vertex's bounding box
virtual unsigned long vtkTreeMapLayout::GetMTime | ( | ) | [virtual] |
Get the modification time of the layout algorithm.
Reimplemented from vtkObject.
int vtkTreeMapLayout::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* vtkTreeMapLayout::RectanglesFieldName [protected] |
Definition at line 93 of file vtkTreeMapLayout.h.
vtkTreeMapLayoutStrategy* vtkTreeMapLayout::LayoutStrategy [protected] |
Definition at line 94 of file vtkTreeMapLayout.h.