1 /*=========================================================================
3 Program: Visualization Toolkit
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkVectorText - create polygonal text
19 // .SECTION Description
21 // vtkVectorText generates vtkPolyData from an input text string. Besides the
22 // ASCII alphanumeric characters a-z, A-Z, 0-9, vtkVectorText also supports
23 // ASCII punctuation marks. (The supported ASCII character set are the codes
24 // (33-126) inclusive.) The only control character supported is the line feed
25 // character "\n", which advances to a new line.
27 // To use thie class, you normally couple it with a vtkPolyDataMapper and a
28 // vtkActor. In this case you would use the vtkActor's transformation methods
29 // to position, orient, and scale the text. You may also wish to use a
30 // vtkFollower to orient the text so that it always faces the camera.
33 // vtkTextMapper vtkCaptionActor2D
35 // VTKViewer_VectorText.h is a copy of vtkVectorText.h file.
36 // Purpose of copying: to remove linking to libHybrid.so VTK library
38 #ifndef __VTKViewer_VectorText_h
39 #define __VTKViewer_VectorText_h
41 #include "vtkPolyDataSource.h"
42 /*!Generates vtkPolyData from an input text string.
45 class VTKViewer_VectorText : public vtkPolyDataSource
48 static VTKViewer_VectorText *New();
49 vtkTypeRevisionMacro(VTKViewer_VectorText,vtkPolyDataSource);
50 void PrintSelf(ostream& os, vtkIndent indent);
53 // Set/Get the text to be drawn.
54 vtkSetStringMacro(Text);
55 vtkGetStringMacro(Text);
58 VTKViewer_VectorText();
59 ~VTKViewer_VectorText();