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

create polygonal text More...

#include <vtkVectorText.h>

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

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkVectorTextNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetText (const char *)
virtual char * GetText ()

Static Public Member Functions

static vtkVectorTextNew ()
static int IsTypeOf (const char *type)
static vtkVectorTextSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkVectorText ()
 ~vtkVectorText ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

char * Text

Detailed Description

create polygonal text

vtkVectorText generates vtkPolyData from an input text string. Besides the ASCII alphanumeric characters a-z, A-Z, 0-9, vtkVectorText also supports ASCII punctuation marks. (The supported ASCII character set are the codes (33-126) inclusive.) The only control character supported is the line feed character "\n", which advances to a new line.

To use thie class, you normally couple it with a vtkPolyDataMapper and a vtkActor. In this case you would use the vtkActor's transformation methods to position, orient, and scale the text. You may also wish to use a vtkFollower to orient the text so that it always faces the camera.

See also:
vtkTextMapper vtkCaptionActor2D
Examples:
vtkVectorText (Examples)
Tests:
vtkVectorText (Tests)

Definition at line 46 of file vtkVectorText.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 50 of file vtkVectorText.h.


Constructor & Destructor Documentation


Member Function Documentation

static vtkVectorText* vtkVectorText::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

static int vtkVectorText::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 vtkPolyDataAlgorithm.

virtual int vtkVectorText::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 vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

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

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

void vtkVectorText::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 vtkPolyDataAlgorithm.

virtual void vtkVectorText::SetText ( const char *  ) [virtual]

Set/Get the text to be drawn.

virtual char* vtkVectorText::GetText ( ) [virtual]

Set/Get the text to be drawn.

int vtkVectorText::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

char* vtkVectorText::Text [protected]

Definition at line 64 of file vtkVectorText.h.


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