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 GetSize (vtkViewport *viewport, int size[2])

Static Public Methods

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

Protected Methods

 vtkXTextMapper ()
 ~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:
2001/10/11 13:38:37
Revision:
1.19
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 67 of file vtkXTextMapper.h.


Constructor & Destructor Documentation

vtkXTextMapper::vtkXTextMapper   [protected]
 

vtkXTextMapper::~vtkXTextMapper   [inline, protected]
 

Definition at line 82 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::GetSize vtkViewport   viewport,
int    size[2]
[virtual]
 

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

Reimplemented from vtkTextMapper.

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 87 of file vtkXTextMapper.h.

vtkTimeStamp vtkXTextMapper::SizeMTime [protected]
 

Definition at line 90 of file vtkXTextMapper.h.

int vtkXTextMapper::Size[2] [protected]
 

Definition at line 91 of file vtkXTextMapper.h.

int vtkXTextMapper::ViewportSize[2] [protected]
 

Definition at line 92 of file vtkXTextMapper.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:49:18 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001