#include <vtkQtTreeRingLabelMapper.h>
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.
Definition at line 64 of file vtkQtTreeRingLabelMapper.h.
vtkQtTreeRingLabelMapper::vtkQtTreeRingLabelMapper | ( | ) | [protected] |
vtkQtTreeRingLabelMapper::~vtkQtTreeRingLabelMapper | ( | ) | [protected] |
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] |
vtkViewport* vtkQtTreeRingLabelMapper::CurrentViewPort [protected] |
Definition at line 131 of file vtkQtTreeRingLabelMapper.h.
vtkCoordinate* vtkQtTreeRingLabelMapper::VCoord [protected] |
Definition at line 132 of file vtkQtTreeRingLabelMapper.h.
Definition at line 133 of file vtkQtTreeRingLabelMapper.h.
vtkPlaneSource* vtkQtTreeRingLabelMapper::PlaneSource [protected] |
Definition at line 134 of file vtkQtTreeRingLabelMapper.h.
vtkRenderer* vtkQtTreeRingLabelMapper::Renderer [protected] |
Definition at line 135 of file vtkQtTreeRingLabelMapper.h.
Definition at line 136 of file vtkQtTreeRingLabelMapper.h.
vtkTexture* vtkQtTreeRingLabelMapper::LabelTexture [protected] |
Definition at line 137 of file vtkQtTreeRingLabelMapper.h.
Definition at line 138 of file vtkQtTreeRingLabelMapper.h.
char* vtkQtTreeRingLabelMapper::TextRotationArrayName [protected] |
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.
int vtkQtTreeRingLabelMapper::WindowSize[2] [protected] |
Definition at line 142 of file vtkQtTreeRingLabelMapper.h.