VTK
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 
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 
81 
85  vtkSetMacro(OutputPointsPrecision,int);
86  vtkGetMacro(OutputPointsPrecision,int);
88 
89 protected:
90  vtkTextSource();
91  ~vtkTextSource();
92 
94  char *Text;
95  int Backing;
96  double ForegroundColor[4];
97  double BackgroundColor[4];
99 private:
100  vtkTextSource(const vtkTextSource&); // Not implemented.
101  void operator=(const vtkTextSource&); // Not implemented.
102 };
103 
104 #endif
Store vtkAlgorithm input/output information.
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.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
Store zero or more vtkInformation instances.
int OutputPointsPrecision
Definition: vtkTextSource.h:98
create polygonal text
Definition: vtkTextSource.h:44