Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound 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


Member Function Documentation

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

Actually get the size of the rectangle.

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 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.

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 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 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 vtkXOpenGLTextMapper.

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

Draw the text to the screen.

Reimplemented from vtkMapper2D.

Reimplemented in 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 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.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:35:55 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002