#include <vtkTextMapper.h>
Inheritance diagram for vtkTextMapper:
vtkTextMapper provides 2D text annotation support for vtk. It is a vtkMapper2D that can be associated with a vtkActor2D and placed into a vtkRenderer.
To use vtkTextMapper, specify an input text string.
Definition at line 43 of file vtkTextMapper.h.
virtual void | GetSize (vtkViewport *, int size[2]) |
virtual int | GetWidth (vtkViewport *v) |
virtual int | GetHeight (vtkViewport *v) |
static vtkTextMapper * | New () |
Public Types | |
typedef vtkMapper2D | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | GetNumberOfLines () |
void | ShallowCopy (vtkTextMapper *tm) |
virtual void | SetInput (const char *inputString) |
virtual char * | GetInput () |
virtual void | SetTextProperty (vtkTextProperty *p) |
virtual vtkTextProperty * | GetTextProperty () |
int | GetNumberOfLines (const char *input) |
virtual int | SetConstrainedFontSize (vtkViewport *, int targetWidth, int targetHeight) |
virtual int | GetSystemFontSize (int size) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkTextMapper * | SafeDownCast (vtkObject *o) |
static int | SetMultipleConstrainedFontSize (vtkViewport *, int targetWidth, int targetHeight, vtkTextMapper **mappers, int nbOfMappers, int *maxResultingSize) |
Protected Member Functions | |
vtkTextMapper () | |
~vtkTextMapper () | |
char * | NextLine (const char *input, int lineNum) |
void | GetMultiLineSize (vtkViewport *viewport, int size[2]) |
void | RenderOverlayMultipleLines (vtkViewport *viewport, vtkActor2D *actor) |
Protected Attributes | |
char * | Input |
vtkTextProperty * | TextProperty |
int | LineSize |
int | NumberOfLines |
int | NumberOfLinesAllocated |
vtkTextMapper ** | TextLines |
|
Reimplemented from vtkMapper2D. Reimplemented in vtkMesaFreeTypeTextMapper, and vtkOpenGLFreeTypeTextMapper. Definition at line 46 of file vtkTextMapper.h. |
|
|
|
|
|
Reimplemented from vtkMapper2D. Reimplemented in vtkMesaFreeTypeTextMapper, and vtkOpenGLFreeTypeTextMapper. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkMapper2D. Reimplemented in vtkMesaFreeTypeTextMapper, and vtkOpenGLFreeTypeTextMapper. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkMapper2D. Reimplemented in vtkMesaFreeTypeTextMapper, and vtkOpenGLFreeTypeTextMapper. |
|
Reimplemented from vtkMapper2D. Reimplemented in vtkMesaFreeTypeTextMapper, and vtkOpenGLFreeTypeTextMapper. |
|
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 vtkMapper2D. Reimplemented in vtkMesaFreeTypeTextMapper, and vtkOpenGLFreeTypeTextMapper. |
|
Creates a new text mapper. Reimplemented from vtkAlgorithm. Reimplemented in vtkMesaFreeTypeTextMapper, and vtkOpenGLFreeTypeTextMapper. |
|
Return the size[2]/width/height of the rectangle required to draw this mapper (in pixels). Reimplemented in vtkMesaFreeTypeTextMapper, and vtkOpenGLFreeTypeTextMapper. Definition at line 55 of file vtkTextMapper.h. |
|
Return the size[2]/width/height of the rectangle required to draw this mapper (in pixels). |
|
Return the size[2]/width/height of the rectangle required to draw this mapper (in pixels). |
|
Set the input text string to the mapper. The mapper recognizes "\n" as a carriage return/linefeed (line separator). |
|
Set the input text string to the mapper. The mapper recognizes "\n" as a carriage return/linefeed (line separator). |
|
Set/Get the text property. |
|
Set/Get the text property. |
|
|
|
Shallow copy of an actor. |
|
Determine the number of lines in the Input string (delimited by "\n"). |
|
Set and return the font size required to make this mapper fit in a given target rectangle (width * height, in pixels). |
|
Set and return the font size required to make each element of an array of mappers fit in a given rectangle (width * height, in pixels). This font size is the smallest size that was required to fit the largest mapper in this constraint. The resulting maximum area of the mappers is also returned. |
|
Get the available system font size matching a font size. Definition at line 104 of file vtkTextMapper.h. |
|
|
|
|
|
|
|
Definition at line 112 of file vtkTextMapper.h. |
|
Definition at line 113 of file vtkTextMapper.h. |
|
Definition at line 115 of file vtkTextMapper.h. |
|
Definition at line 116 of file vtkTextMapper.h. |
|
Definition at line 117 of file vtkTextMapper.h. |
|
Definition at line 119 of file vtkTextMapper.h. |