VTK  9.0.1
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) override;
47 
51  static vtkTextSource* New();
52 
54 
57  vtkSetStringMacro(Text);
58  vtkGetStringMacro(Text);
60 
62 
65  vtkSetMacro(Backing, vtkTypeBool);
66  vtkGetMacro(Backing, vtkTypeBool);
67  vtkBooleanMacro(Backing, vtkTypeBool);
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() override;
99 
101  char* Text;
103  double ForegroundColor[4];
104  double BackgroundColor[4];
106 
107 private:
108  vtkTextSource(const vtkTextSource&) = delete;
109  void operator=(const vtkTextSource&) = delete;
110 };
111 
112 #endif
vtkX3D::Text
@ Text
Definition: vtkX3D.h:166
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTextSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkTextSource.h:105
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTextSource
create polygonal text
Definition: vtkTextSource.h:42
vtkTextSource::Text
char * Text
Definition: vtkTextSource.h:101
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkTextSource::Backing
vtkTypeBool Backing
Definition: vtkTextSource.h:102
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41