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 =========================================================================*/
36 #ifndef vtkTextSource_h
37 #define vtkTextSource_h
38 
39 #include "vtkFiltersSourcesModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
42 class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
51  static vtkTextSource *New();
52 
54 
57  vtkSetStringMacro(Text);
60 
62 
65  vtkSetMacro(Backing,int);
66  vtkGetMacro(Backing,int);
67  vtkBooleanMacro(Backing,int);
69 
71 
74  vtkSetVector3Macro(ForegroundColor,double);
75  vtkGetVectorMacro(ForegroundColor,double,3);
77 
79 
82  vtkSetVector3Macro(BackgroundColor,double);
83  vtkGetVectorMacro(BackgroundColor,double,3);
85 
87 
92  vtkSetMacro(OutputPointsPrecision,int);
93  vtkGetMacro(OutputPointsPrecision,int);
95 
96 protected:
97  vtkTextSource();
98  ~vtkTextSource() VTK_OVERRIDE;
99 
100  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
101  char *Text;
102  int Backing;
103  double ForegroundColor[4];
104  double BackgroundColor[4];
105  int OutputPointsPrecision;
106 private:
107  vtkTextSource(const vtkTextSource&) VTK_DELETE_FUNCTION;
108  void operator=(const vtkTextSource&) VTK_DELETE_FUNCTION;
109 };
110 
111 #endif
Store vtkAlgorithm input/output information.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create polygonal text
Definition: vtkTextSource.h:42
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.