VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkQtTreeRingLabelMapper Class Reference

draw text labels on a tree map More...

#include <vtkQtTreeRingLabelMapper.h>

Inheritance diagram for vtkQtTreeRingLabelMapper:
Inheritance graph
[legend]
Collaboration diagram for vtkQtTreeRingLabelMapper:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkLabeledDataMapper Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkQtTreeRingLabelMapperNewInstance () const
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 (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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]

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 65 of file vtkQtTreeRingLabelMapper.h.


Member Typedef Documentation

Reimplemented from vtkLabeledDataMapper.

Definition at line 69 of file vtkQtTreeRingLabelMapper.h.


Constructor & Destructor Documentation


Member Function Documentation

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

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.

Reimplemented from vtkLabeledDataMapper.

virtual vtkObjectBase* vtkQtTreeRingLabelMapper::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkLabeledDataMapper.

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.

The input to this filter.

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

The name of the 4-tuple array used for

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.

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 90 of file vtkQtTreeRingLabelMapper.h.

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 92 of file vtkQtTreeRingLabelMapper.h.

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

Set/Get the name of the text rotation array.

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.

Definition at line 106 of file vtkQtTreeRingLabelMapper.h.

Definition at line 114 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 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.

Definition at line 141 of file vtkQtTreeRingLabelMapper.h.

QImage* vtkQtTreeRingLabelMapper::QtImage [protected]

Definition at line 142 of file vtkQtTreeRingLabelMapper.h.

Definition at line 143 of file vtkQtTreeRingLabelMapper.h.


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