VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkOpenGLFreeTypeTextMapper Class Reference

2D Text annotation support More...

#include <vtkOpenGLFreeTypeTextMapper.h>

Inheritance diagram for vtkOpenGLFreeTypeTextMapper:
Inheritance graph
[legend]
Collaboration diagram for vtkOpenGLFreeTypeTextMapper:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkTextMapper Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkOpenGLFreeTypeTextMapperNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
void SetInput (const char *inputString)
void RenderOverlay (vtkViewport *viewport, vtkActor2D *actor)
virtual void ReleaseGraphicsResources (vtkWindow *)
virtual void GetSize (vtkViewport *viewport, int size[2])

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkOpenGLFreeTypeTextMapper
SafeDownCast (vtkObjectBase *o)
static
vtkOpenGLFreeTypeTextMapper
New ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkOpenGLFreeTypeTextMapper ()
 ~vtkOpenGLFreeTypeTextMapper ()
char * NextLine (const char *input, int lineNum)
void GetMultiLineSize (vtkViewport *viewport, int size[2])
void RenderOverlayMultipleLines (vtkViewport *viewport, vtkActor2D *actor)

Protected Attributes

vtkTimeStamp SizeBuildTime
int LastSize [2]
int LastLargestDescender
int LineSize
int NumberOfLines
int NumberOfLinesAllocated
vtkTextMapper ** TextLines

Detailed Description

2D Text annotation support

vtkOpenGLFreeTypeTextMapper provides 2D text annotation support for VTK using the FreeType and FTGL libraries. Normally the user should use vtktextMapper which in turn will use this class.

See also:
vtkTextMapper
Tests:
vtkOpenGLFreeTypeTextMapper (Tests)

Definition at line 35 of file vtkOpenGLFreeTypeTextMapper.h.


Member Typedef Documentation

Reimplemented from vtkTextMapper.

Definition at line 39 of file vtkOpenGLFreeTypeTextMapper.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkOpenGLFreeTypeTextMapper::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 vtkTextMapper.

virtual int vtkOpenGLFreeTypeTextMapper::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 vtkTextMapper.

Reimplemented from vtkTextMapper.

virtual vtkObjectBase* vtkOpenGLFreeTypeTextMapper::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkTextMapper.

Reimplemented from vtkTextMapper.

Creates a new text mapper.

Reimplemented from vtkTextMapper.

virtual void vtkOpenGLFreeTypeTextMapper::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 vtkTextMapper.

void vtkOpenGLFreeTypeTextMapper::SetInput ( const char *  ) [virtual]

The input text string to the mapper.

Reimplemented from vtkTextMapper.

void vtkOpenGLFreeTypeTextMapper::RenderOverlay ( vtkViewport viewport,
vtkActor2D actor 
) [virtual]

Actally draw the text.

Reimplemented from vtkTextMapper.

Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkTextMapper.

virtual void vtkOpenGLFreeTypeTextMapper::GetSize ( vtkViewport viewport,
int  size[2] 
) [virtual]

Return the the size of the rectangle required to draw this mapper.

Reimplemented from vtkTextMapper.

char* vtkOpenGLFreeTypeTextMapper::NextLine ( const char *  input,
int  lineNum 
) [protected]

These functions are used to parse, process, and render multiple lines

void vtkOpenGLFreeTypeTextMapper::GetMultiLineSize ( vtkViewport viewport,
int  size[2] 
) [protected]

These functions are used to parse, process, and render multiple lines

void vtkOpenGLFreeTypeTextMapper::RenderOverlayMultipleLines ( vtkViewport viewport,
vtkActor2D actor 
) [protected]

These functions are used to parse, process, and render multiple lines


Member Data Documentation

Definition at line 60 of file vtkOpenGLFreeTypeTextMapper.h.

Definition at line 61 of file vtkOpenGLFreeTypeTextMapper.h.

Definition at line 62 of file vtkOpenGLFreeTypeTextMapper.h.

Definition at line 63 of file vtkOpenGLFreeTypeTextMapper.h.

Definition at line 64 of file vtkOpenGLFreeTypeTextMapper.h.

Definition at line 65 of file vtkOpenGLFreeTypeTextMapper.h.

Definition at line 66 of file vtkOpenGLFreeTypeTextMapper.h.


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