Documentation for vtkTextSource

vtkTextSource - create polygonal text

Super Class: vtkPolyDataSource

Description:

vtkTextSource converts a text string into polygons. This way you can insert text into your renderings. It uses the 9x15 font from X Windows. You can specify if you want the background to be drawn or not. The characters are formed by scan converting the raster font into quadrilaterals. Colors are assigned to the letters using scalar data. To set the color of the characters with the source's actor property, set BackingOff on the text source and ScalarVisibilityOff on the associated vtkPolyDataMapper. Then, the color can be set using the associated actor's property. vtkVectorText generates higher quality polygonal representations of characters.

 

See Also:

vtkVectorText

 

Methods:

void vtkTextSource ()
void vtkTextSource ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkTextSource *New ()
void SetText (char *)
char *GetText ()
void SetBacking (int )
int GetBacking ()
void BackingOn ()
void BackingOff ()
void SetForegroundColor (float ,float ,float )
void SetForegroundColor (float *)
float *GetForegroundColor ()
void SetBackgroundColor (float ,float ,float )
void SetBackgroundColor (float *)
float *GetBackgroundColor ()
void Execute ()

 

Detailed Method Descriptions:

Construct object with no string set and backing enabled.

static vtkTextSource *New ()

Set/Get the text to be drawn.

void SetText (char *)
char *GetText ()

Controls whether or not a background is drawn with the text.

void SetBacking (int )
int GetBacking ()
void BackingOn ()
void BackingOff ()

Set/Get the foreground color. Default is white (1,1,1). ALpha is always 1.

void SetForegroundColor (float ,float ,float )
void SetForegroundColor (float *)
float *GetForegroundColor ()

Set/Get the background color. Default is black (0,0,0). Alpha is always 1.

void SetBackgroundColor (float ,float ,float )
void SetBackgroundColor (float *)
float *GetBackgroundColor ()