VTK
|
layout a vtkTree into a tree map More...
#include <vtkTreeMapLayout.h>
Inherits vtkTreeAlgorithm.
Public Types | |
typedef vtkTreeAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkTreeMapLayout * | NewInstance () const |
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 (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkTreeMapLayout () | |
~vtkTreeMapLayout () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
char * | RectanglesFieldName |
vtkTreeMapLayoutStrategy * | LayoutStrategy |
layout a vtkTree into a tree map
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 53 of file vtkTreeMapLayout.h.
typedef vtkTreeAlgorithm vtkTreeMapLayout::Superclass |
Definition at line 58 of file vtkTreeMapLayout.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkTreeMapLayout* vtkTreeMapLayout::NewInstance | ( | ) | const |
void vtkTreeMapLayout::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
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 |
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).
|
inlinevirtual |
The array to use for the size of each vertex.
Definition at line 71 of file vtkTreeMapLayout.h.
|
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 |
Get the modification time of the layout algorithm.
|
protected |
|
protected |
Definition at line 94 of file vtkTreeMapLayout.h.
|
protected |
Definition at line 95 of file vtkTreeMapLayout.h.