VTK
|
layout a vtkTree into a tree map More...
#include <vtkAreaLayout.h>
Inherits vtkTreeAlgorithm.
Public Types | |
typedef vtkTreeAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkAreaLayout * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual unsigned long | GetMTime () |
vtkIdType | FindVertex (float pnt[2]) |
void | GetBoundingArea (vtkIdType id, float *sinfo) |
virtual void | SetSizeArrayName (const char *name) |
virtual char * | GetAreaArrayName () |
virtual void | SetAreaArrayName (const char *) |
virtual bool | GetEdgeRoutingPoints () |
virtual void | SetEdgeRoutingPoints (bool) |
virtual void | EdgeRoutingPointsOn () |
virtual void | EdgeRoutingPointsOff () |
virtual vtkAreaLayoutStrategy * | GetLayoutStrategy () |
void | SetLayoutStrategy (vtkAreaLayoutStrategy *strategy) |
Static Public Member Functions | |
static vtkAreaLayout * | New () |
static int | IsTypeOf (const char *type) |
static vtkAreaLayout * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkAreaLayout () | |
~vtkAreaLayout () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
char * | AreaArrayName |
bool | EdgeRoutingPoints |
char * | EdgeRoutingPointsArrayName |
vtkAreaLayoutStrategy * | LayoutStrategy |
layout a vtkTree into a tree map
vtkAreaLayout assigns sector regions to each vertex in the tree, creating a tree ring. The data is added as a data array with four components per tuple representing the location and size of the sector using the format (StartAngle, EndAngle, innerRadius, outerRadius).
This algorithm relies on a helper class to perform the actual layout. This helper class is a subclass of vtkAreaLayoutStrategy.
Definition at line 45 of file vtkAreaLayout.h.
typedef vtkTreeAlgorithm vtkAreaLayout::Superclass |
Definition at line 49 of file vtkAreaLayout.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkAreaLayout* vtkAreaLayout::NewInstance | ( | ) | const |
void vtkAreaLayout::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
inlinevirtual |
The array name to use for retrieving the relative size of each vertex. If this array is not found, use constant size for each vertex.
Definition at line 56 of file vtkAreaLayout.h.
|
virtual |
The name for the array created for the area for each vertex. The rectangles are stored in a quadruple float array (startAngle, endAngle, innerRadius, outerRadius). For rectangular layouts, this is (minx, maxx, miny, maxy).
|
virtual |
The name for the array created for the area for each vertex. The rectangles are stored in a quadruple float array (startAngle, endAngle, innerRadius, outerRadius). For rectangular layouts, this is (minx, maxx, miny, maxy).
|
virtual |
Whether to output a second output tree with vertex locations appropriate for routing bundled edges. Default is on.
|
virtual |
Whether to output a second output tree with vertex locations appropriate for routing bundled edges. Default is on.
|
virtual |
Whether to output a second output tree with vertex locations appropriate for routing bundled edges. Default is on.
|
virtual |
Whether to output a second output tree with vertex locations appropriate for routing bundled edges. Default is on.
|
virtual |
The strategy to use when laying out the tree map.
void vtkAreaLayout::SetLayoutStrategy | ( | vtkAreaLayoutStrategy * | strategy | ) |
The strategy to use when laying out the tree map.
|
virtual |
Get the modification time of the layout algorithm.
vtkIdType vtkAreaLayout::FindVertex | ( | float | pnt[2] | ) |
Get the vertex whose area contains the point, or return -1 if no vertex area covers the point.
void vtkAreaLayout::GetBoundingArea | ( | vtkIdType | id, |
float * | sinfo | ||
) |
The bounding area information for a certain vertex id.
|
protected |
|
protected |
Definition at line 97 of file vtkAreaLayout.h.
|
protected |
Definition at line 98 of file vtkAreaLayout.h.
|
protected |
Definition at line 99 of file vtkAreaLayout.h.
|
protected |
Definition at line 100 of file vtkAreaLayout.h.