Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkXTextMapper Class Reference

2D Text annotation support for X. More...

#include <vtkXTextMapper.h>

Inheritance diagram for vtkXTextMapper:

Inheritance graph
[legend]
Collaboration diagram for vtkXTextMapper:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void SetFontSize (int size)
void RenderOverlay (vtkViewport *viewport, vtkActor2D *actor)
void GetSize (vtkViewport *viewport, int size[2])

Static Public Methods

int IsTypeOf (const char *type)
vtkXTextMapper * SafeDownCast (vtkObject *o)
vtkXTextMapper * New ()

Protected Methods

 vtkXTextMapper ()
 ~vtkXTextMapper ()
 vtkXTextMapper (const vtkXTextMapper &)
void operator= (const vtkXTextMapper &)
void DetermineSize (vtkViewport *viewport, int size[2])

Protected Attributes

Font CurrentFont
vtkTimeStamp SizeMTime
int Size [2]
int ViewportSize [2]

Detailed Description

2D Text annotation support for X.

Date:
2000/12/10 20:09:15
Revision:
1.15
Thanks:
Thanks to Matt Turek who developed this class.
vtkXTextMapper provides 2D text annotation support for vtx under Xwindows. Normally the user should use vtktextMapper which in turn will use this class.

See also:
vtkTextMapper

Definition at line 66 of file vtkXTextMapper.h.


Constructor & Destructor Documentation

vtkXTextMapper::vtkXTextMapper   [protected]
 

vtkXTextMapper::~vtkXTextMapper   [inline, protected]
 

Definition at line 84 of file vtkXTextMapper.h.

vtkXTextMapper::vtkXTextMapper const vtkXTextMapper &    [inline, protected]
 

Definition at line 85 of file vtkXTextMapper.h.


Member Function Documentation

virtual const char* vtkXTextMapper::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTextMapper.

Reimplemented in vtkXMesaTextMapper, and vtkXOpenGLTextMapper.

int vtkXTextMapper::IsTypeOf const char *    type [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 vtkTextMapper.

Reimplemented in vtkXMesaTextMapper, and vtkXOpenGLTextMapper.

virtual int vtkXTextMapper::IsA const char *    type [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 vtkTextMapper.

Reimplemented in vtkXMesaTextMapper, and vtkXOpenGLTextMapper.

vtkXTextMapper* vtkXTextMapper::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkTextMapper.

Reimplemented in vtkXMesaTextMapper, and vtkXOpenGLTextMapper.

vtkXTextMapper* vtkXTextMapper::New   [static]
 

Creates a new text mapper with Font size 12, bold off, italic off, and Arial font.

Reimplemented from vtkTextMapper.

Reimplemented in vtkXMesaTextMapper, and vtkXOpenGLTextMapper.

void vtkXTextMapper::SetFontSize int    size [virtual]
 

Set the font size used by the mapper. If the font size is available, the code will use the nearest available size.

Reimplemented from vtkTextMapper.

void vtkXTextMapper::RenderOverlay vtkViewport   viewport,
vtkActor2D   actor
[virtual]
 

Draw the text to the screen.

Reimplemented from vtkMapper2D.

Reimplemented in vtkXMesaTextMapper, and vtkXOpenGLTextMapper.

void vtkXTextMapper::GetSize vtkViewport   viewport,
int    size[2]
[virtual]
 

What is the size of the rectangle required to draw this mapper ?

Reimplemented from vtkTextMapper.

void vtkXTextMapper::operator= const vtkXTextMapper &    [inline, protected]
 

Definition at line 86 of file vtkXTextMapper.h.

void vtkXTextMapper::DetermineSize vtkViewport   viewport,
int    size[2]
[protected]
 

Actually get the size of the rectangle.


Member Data Documentation

Font vtkXTextMapper::CurrentFont [protected]
 

Definition at line 91 of file vtkXTextMapper.h.

vtkTimeStamp vtkXTextMapper::SizeMTime [protected]
 

Definition at line 94 of file vtkXTextMapper.h.

int vtkXTextMapper::Size[2] [protected]
 

Definition at line 95 of file vtkXTextMapper.h.

int vtkXTextMapper::ViewportSize[2] [protected]
 

Definition at line 96 of file vtkXTextMapper.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:04:09 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001