vtkQtTreeRingLabelMapper Class Reference

#include <vtkQtTreeRingLabelMapper.h>

Inheritance diagram for vtkQtTreeRingLabelMapper:

Inheritance graph
[legend]
Collaboration diagram for vtkQtTreeRingLabelMapper:

Collaboration graph
[legend]

List of all members.


Detailed Description

draw text labels on a tree map

vtkQtTreeRingLabelMapper is a mapper that renders text on a tree map. A tree map is a vtkTree with an associated 4-tuple array used for storing the boundary rectangle for each vertex in the tree. The user must specify the array name used for storing the rectangles.

The mapper iterates through the tree and attempts and renders a label inside the vertex's rectangle as long as the following conditions hold: 1. The vertex level is within the range of levels specified for labeling. 2. The label can fully fit inside its box. 3. The label does not overlap an ancestor's label.

See also:
vtkLabeledDataMapper
Thanks:
Thanks to Jason Shepherd from Sandia National Laboratories for help in developing this class.

Definition at line 64 of file vtkQtTreeRingLabelMapper.h.


Public Types

typedef vtkLabeledDataMapper Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkTreeGetInputTree ()
virtual void SetSectorsArrayName (const char *name)
virtual unsigned long GetMTime ()
void SetRenderer (vtkRenderer *ren)
vtkRendererGetRenderer ()
virtual void RenderOpaqueGeometry (vtkViewport *viewport, vtkActor2D *actor)
virtual void RenderOverlay (vtkViewport *viewport, vtkActor2D *actor)
virtual void SetLabelTextProperty (vtkTextProperty *p)
virtual vtkTextPropertyGetLabelTextProperty ()
virtual void SetLabelTextProperty (vtkTextProperty *p, int type)
virtual vtkTextPropertyGetLabelTextProperty (int type)
virtual void SetTextRotationArrayName (const char *)
virtual char * GetTextRotationArrayName ()

Static Public Member Functions

static vtkQtTreeRingLabelMapperNew ()
static int IsTypeOf (const char *type)
static vtkQtTreeRingLabelMapperSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkQtTreeRingLabelMapper ()
 ~vtkQtTreeRingLabelMapper ()
void LabelTree (vtkTree *tree, vtkDataArray *sectorInfo, vtkDataArray *numericData, vtkStringArray *stringData, vtkUnicodeStringArray *uStringData, int activeComp, int numComps, vtkViewport *viewport)
void GetVertexLabel (vtkIdType vertex, vtkDataArray *numericData, vtkStringArray *stringData, vtkUnicodeStringArray *uStringData, int activeComp, int numComps, char *string)
bool PointInWindow (double *sinfo, double *newDim, double *textPosDC, vtkViewport *viewport)

Protected Attributes

vtkViewportCurrentViewPort
vtkCoordinateVCoord
vtkQImageToImageSourceQtImageSource
vtkPlaneSourcePlaneSource
vtkRendererRenderer
vtkTextPropertyLabelTextProperty
vtkTextureLabelTexture
vtkTextureMapToPlaneTextureMapToPlane
char * TextRotationArrayName
vtkPolyDataMapper2DpolyDataMapper
QImage * QtImage
int WindowSize [2]

Member Typedef Documentation

Reimplemented from vtkLabeledDataMapper.

Definition at line 68 of file vtkQtTreeRingLabelMapper.h.


Constructor & Destructor Documentation

vtkQtTreeRingLabelMapper::vtkQtTreeRingLabelMapper (  )  [protected]

vtkQtTreeRingLabelMapper::~vtkQtTreeRingLabelMapper (  )  [protected]


Member Function Documentation

static vtkQtTreeRingLabelMapper* vtkQtTreeRingLabelMapper::New (  )  [static]

Instantiate object with %-#6.3g label format. By default, point ids are labeled.

Reimplemented from vtkLabeledDataMapper.

virtual const char* vtkQtTreeRingLabelMapper::GetClassName (  )  [virtual]

Reimplemented from vtkLabeledDataMapper.

static int vtkQtTreeRingLabelMapper::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 vtkLabeledDataMapper.

virtual int vtkQtTreeRingLabelMapper::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 vtkLabeledDataMapper.

static vtkQtTreeRingLabelMapper* vtkQtTreeRingLabelMapper::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkLabeledDataMapper.

void vtkQtTreeRingLabelMapper::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 vtkLabeledDataMapper.

virtual void vtkQtTreeRingLabelMapper::RenderOpaqueGeometry ( vtkViewport viewport,
vtkActor2D actor 
) [virtual]

Draw the text to the screen at each input point.

Reimplemented from vtkLabeledDataMapper.

virtual void vtkQtTreeRingLabelMapper::RenderOverlay ( vtkViewport viewport,
vtkActor2D actor 
) [virtual]

Draw the text to the screen at each input point.

Reimplemented from vtkLabeledDataMapper.

virtual vtkTree* vtkQtTreeRingLabelMapper::GetInputTree (  )  [virtual]

The input to this filter.

virtual void vtkQtTreeRingLabelMapper::SetSectorsArrayName ( const char *  name  )  [virtual]

The name of the 4-tuple array used for

virtual void vtkQtTreeRingLabelMapper::SetLabelTextProperty ( vtkTextProperty p  )  [virtual]

Set/Get the text property. Note that multiple type text properties (set with a second integer parameter) are not currently supported, but are provided to avoid compiler warnings.

Reimplemented from vtkLabeledDataMapper.

virtual vtkTextProperty* vtkQtTreeRingLabelMapper::GetLabelTextProperty (  )  [virtual]

Set/Get the text property. Note that multiple type text properties (set with a second integer parameter) are not currently supported, but are provided to avoid compiler warnings.

Reimplemented from vtkLabeledDataMapper.

virtual void vtkQtTreeRingLabelMapper::SetLabelTextProperty ( vtkTextProperty p,
int  type 
) [inline, virtual]

Set/Get the text property. Note that multiple type text properties (set with a second integer parameter) are not currently supported, but are provided to avoid compiler warnings.

Reimplemented from vtkLabeledDataMapper.

Definition at line 89 of file vtkQtTreeRingLabelMapper.h.

virtual vtkTextProperty* vtkQtTreeRingLabelMapper::GetLabelTextProperty ( int  type  )  [inline, virtual]

Set/Get the text property. Note that multiple type text properties (set with a second integer parameter) are not currently supported, but are provided to avoid compiler warnings.

Reimplemented from vtkLabeledDataMapper.

Definition at line 91 of file vtkQtTreeRingLabelMapper.h.

virtual void vtkQtTreeRingLabelMapper::SetTextRotationArrayName ( const char *   )  [virtual]

Set/Get the name of the text rotation array.

virtual char* vtkQtTreeRingLabelMapper::GetTextRotationArrayName (  )  [virtual]

Set/Get the name of the text rotation array.

virtual unsigned long vtkQtTreeRingLabelMapper::GetMTime (  )  [virtual]

Return the object's MTime. This is overridden to include the timestamp of its internal class.

Reimplemented from vtkLabeledDataMapper.

void vtkQtTreeRingLabelMapper::SetRenderer ( vtkRenderer ren  )  [inline]

Definition at line 105 of file vtkQtTreeRingLabelMapper.h.

vtkRenderer* vtkQtTreeRingLabelMapper::GetRenderer (  )  [inline]

Definition at line 113 of file vtkQtTreeRingLabelMapper.h.

void vtkQtTreeRingLabelMapper::LabelTree ( vtkTree tree,
vtkDataArray sectorInfo,
vtkDataArray numericData,
vtkStringArray stringData,
vtkUnicodeStringArray uStringData,
int  activeComp,
int  numComps,
vtkViewport viewport 
) [protected]

void vtkQtTreeRingLabelMapper::GetVertexLabel ( vtkIdType  vertex,
vtkDataArray numericData,
vtkStringArray stringData,
vtkUnicodeStringArray uStringData,
int  activeComp,
int  numComps,
char *  string 
) [protected]

bool vtkQtTreeRingLabelMapper::PointInWindow ( double *  sinfo,
double *  newDim,
double *  textPosDC,
vtkViewport viewport 
) [protected]


Member Data Documentation

Definition at line 131 of file vtkQtTreeRingLabelMapper.h.

Definition at line 132 of file vtkQtTreeRingLabelMapper.h.

Definition at line 133 of file vtkQtTreeRingLabelMapper.h.

Definition at line 134 of file vtkQtTreeRingLabelMapper.h.

Definition at line 135 of file vtkQtTreeRingLabelMapper.h.

Definition at line 136 of file vtkQtTreeRingLabelMapper.h.

Definition at line 137 of file vtkQtTreeRingLabelMapper.h.

Definition at line 138 of file vtkQtTreeRingLabelMapper.h.

Definition at line 139 of file vtkQtTreeRingLabelMapper.h.

Definition at line 140 of file vtkQtTreeRingLabelMapper.h.

QImage* vtkQtTreeRingLabelMapper::QtImage [protected]

Definition at line 141 of file vtkQtTreeRingLabelMapper.h.

Definition at line 142 of file vtkQtTreeRingLabelMapper.h.


The documentation for this class was generated from the following file:

Generated on Mon Sep 27 18:45:27 2010 for VTK by  doxygen 1.5.6