VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkTextSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTextSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
38 #ifndef __vtkTextSource_h
39 #define __vtkTextSource_h
40 
41 #include "vtkFiltersSourcesModule.h" // For export macro
42 #include "vtkPolyDataAlgorithm.h"
43 
44 class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51  static vtkTextSource *New();
52 
54 
55  vtkSetStringMacro(Text);
56  vtkGetStringMacro(Text);
58 
60 
61  vtkSetMacro(Backing,int);
62  vtkGetMacro(Backing,int);
63  vtkBooleanMacro(Backing,int);
65 
67 
69  vtkSetVector3Macro(ForegroundColor,double);
70  vtkGetVectorMacro(ForegroundColor,double,3);
72 
74 
76  vtkSetVector3Macro(BackgroundColor,double);
77  vtkGetVectorMacro(BackgroundColor,double,3);
79 
80 protected:
81  vtkTextSource();
82  ~vtkTextSource();
83 
84  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
85  char *Text;
86  int Backing;
87  double ForegroundColor[4];
88  double BackgroundColor[4];
89 private:
90  vtkTextSource(const vtkTextSource&); // Not implemented.
91  void operator=(const vtkTextSource&); // Not implemented.
92 };
93 
94 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
create polygonal text
Definition: vtkTextSource.h:44