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:
[legend]
Collaboration diagram for vtkQtTreeRingLabelMapper:
[legend]

List of all members.

Public Types

typedef vtkLabeledDataMapper Superclass
- Public Types inherited from vtkLabeledDataMapper
enum  Coordinates { WORLD = 0, DISPLAY = 1 }
 Coordinate systems that output dataset may use. More...
- Public Types inherited from vtkMapper2D
- Public Types inherited from vtkAbstractMapper
- Public Types inherited from vtkAlgorithm
- Public Types inherited from vtkObject

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 ()
- Public Member Functions inherited from vtkLabeledDataMapper
virtual void SetInput (vtkDataObject *)
vtkDataSetGetInput ()
virtual void ReleaseGraphicsResources (vtkWindow *)
virtual void SetLabelFormat (const char *)
virtual char * GetLabelFormat ()
virtual void SetLabeledComponent (int)
virtual int GetLabeledComponent ()
void SetFieldDataArray (int arrayIndex)
virtual int GetFieldDataArray ()
void SetFieldDataName (const char *arrayName)
virtual char * GetFieldDataName ()
virtual void SetLabelMode (int)
virtual int GetLabelMode ()
void SetLabelModeToLabelIds ()
void SetLabelModeToLabelScalars ()
void SetLabelModeToLabelVectors ()
void SetLabelModeToLabelNormals ()
void SetLabelModeToLabelTCoords ()
void SetLabelModeToLabelTensors ()
void SetLabelModeToLabelFieldData ()
virtual vtkTransformGetTransform ()
void SetTransform (vtkTransform *t)
virtual int GetCoordinateSystem ()
virtual void SetCoordinateSystem (int)
void CoordinateSystemWorld ()
void CoordinateSystemDisplay ()
- Public Member Functions inherited from vtkMapper2D
virtual void RenderTranslucentPolygonalGeometry (vtkViewport *, vtkActor2D *)
virtual int HasTranslucentPolygonalGeometry ()
- Public Member Functions inherited from vtkAbstractMapper
void SetClippingPlanes (vtkPlanes *planes)
void ShallowCopy (vtkAbstractMapper *m)
virtual double GetTimeToDraw ()
void AddClippingPlane (vtkPlane *plane)
void RemoveClippingPlane (vtkPlane *plane)
void RemoveAllClippingPlanes ()
virtual void SetClippingPlanes (vtkPlaneCollection *)
virtual vtkPlaneCollectionGetClippingPlanes ()
- Public Member Functions inherited from vtkAlgorithm
int HasExecutive ()
vtkExecutiveGetExecutive ()
virtual void SetExecutive (vtkExecutive *executive)
virtual int ModifyRequest (vtkInformation *request, int when)
vtkInformationGetInputPortInformation (int port)
vtkInformationGetOutputPortInformation (int port)
int GetNumberOfInputPorts ()
int GetNumberOfOutputPorts ()
void UpdateProgress (double amount)
vtkInformationGetInputArrayInformation (int idx)
void RemoveAllInputs ()
vtkDataObjectGetOutputDataObject (int port)
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
int GetNumberOfInputConnections (int port)
int GetTotalNumberOfInputConnections ()
vtkAlgorithmOutputGetInputConnection (int port, int index)
virtual void Update ()
virtual void UpdateInformation ()
virtual void UpdateWholeExtent ()
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
virtual double ComputePriority ()
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
virtual vtkInformationGetInformation ()
virtual void SetInformation (vtkInformation *)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
virtual void SetAbortExecute (int)
virtual int GetAbortExecute ()
virtual void AbortExecuteOn ()
virtual void AbortExecuteOff ()
virtual void SetProgress (double)
virtual double GetProgress ()
void SetProgressText (const char *ptext)
virtual char * GetProgressText ()
virtual unsigned long GetErrorCode ()
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
vtkDataObjectGetInputDataObject (int port, int connection)
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
virtual void SetInputConnection (vtkAlgorithmOutput *input)
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
virtual void AddInputConnection (vtkAlgorithmOutput *input)
vtkAlgorithmOutputGetOutputPort (int index)
vtkAlgorithmOutputGetOutputPort ()
virtual void SetReleaseDataFlag (int)
virtual int GetReleaseDataFlag ()
void ReleaseDataFlagOn ()
void ReleaseDataFlagOff ()
int UpdateExtentIsEmpty (vtkDataObject *output)
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommandGetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

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 Member Functions inherited from vtkLabeledDataMapper
 vtkLabeledDataMapper ()
 ~vtkLabeledDataMapper ()
virtual int FillInputPortInformation (int, vtkInformation *)
void AllocateLabels (int numLabels)
void BuildLabels ()
void BuildLabelsInternal (vtkDataSet *)
- Protected Member Functions inherited from vtkMapper2D
 vtkMapper2D ()
 ~vtkMapper2D ()
- Protected Member Functions inherited from vtkAbstractMapper
 vtkAbstractMapper ()
 ~vtkAbstractMapper ()
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 ~vtkAlgorithm ()
virtual int FillOutputPortInformation (int port, vtkInformation *info)
virtual void SetNumberOfInputPorts (int n)
virtual void SetNumberOfOutputPorts (int n)
int InputPortIndexInRange (int index, const char *action)
int OutputPortIndexInRange (int index, const char *action)
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
virtual vtkExecutiveCreateDefaultExecutive ()
virtual void ReportReferences (vtkGarbageCollector *)
virtual void SetNumberOfInputConnections (int port, int n)
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
int GetInputArrayAssociation (int idx, vtkDataObject *input)
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
virtual void SetErrorCode (unsigned long)
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Protected Attributes

vtkViewportCurrentViewPort
vtkCoordinateVCoord
vtkQImageToImageSourceQtImageSource
vtkPlaneSourcePlaneSource
vtkRendererRenderer
vtkTextPropertyLabelTextProperty
vtkTextureLabelTexture
vtkTextureMapToPlaneTextureMapToPlane
char * TextRotationArrayName
vtkPolyDataMapper2DpolyDataMapper
QImage * QtImage
int WindowSize [2]
- Protected Attributes inherited from vtkLabeledDataMapper
vtkDataSetInput
char * LabelFormat
int LabelMode
int LabeledComponent
int FieldDataArray
char * FieldDataName
int CoordinateSystem
vtkTimeStamp BuildTime
int NumberOfLabels
int NumberOfLabelsAllocated
vtkTextMapper ** TextMappers
double * LabelPositions
vtkTransformTransform
Internals * Implementation

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.


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 
)
inlinevirtual

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)
inlinevirtual

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

vtkViewport* vtkQtTreeRingLabelMapper::CurrentViewPort
protected

Definition at line 131 of file vtkQtTreeRingLabelMapper.h.

vtkCoordinate* vtkQtTreeRingLabelMapper::VCoord
protected

Definition at line 132 of file vtkQtTreeRingLabelMapper.h.

vtkQImageToImageSource* vtkQtTreeRingLabelMapper::QtImageSource
protected

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.

vtkTextProperty* vtkQtTreeRingLabelMapper::LabelTextProperty
protected

Definition at line 136 of file vtkQtTreeRingLabelMapper.h.

vtkTexture* vtkQtTreeRingLabelMapper::LabelTexture
protected

Definition at line 137 of file vtkQtTreeRingLabelMapper.h.

vtkTextureMapToPlane* vtkQtTreeRingLabelMapper::TextureMapToPlane
protected

Definition at line 138 of file vtkQtTreeRingLabelMapper.h.

char* vtkQtTreeRingLabelMapper::TextRotationArrayName
protected

Definition at line 139 of file vtkQtTreeRingLabelMapper.h.

vtkPolyDataMapper2D* vtkQtTreeRingLabelMapper::polyDataMapper
protected

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.


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