VTK  9.3.1
vtkTextSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
27 #ifndef vtkTextSource_h
28 #define vtkTextSource_h
29 
30 #include "vtkFiltersSourcesModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  static vtkTextSource* New();
44 
46 
49  vtkSetStringMacro(Text);
50  vtkGetStringMacro(Text);
52 
54 
57  vtkSetMacro(Backing, vtkTypeBool);
58  vtkGetMacro(Backing, vtkTypeBool);
59  vtkBooleanMacro(Backing, vtkTypeBool);
61 
63 
66  vtkSetVector3Macro(ForegroundColor, double);
67  vtkGetVectorMacro(ForegroundColor, double, 3);
69 
71 
74  vtkSetVector3Macro(BackgroundColor, double);
75  vtkGetVectorMacro(BackgroundColor, double, 3);
77 
79 
84  vtkSetMacro(OutputPointsPrecision, int);
85  vtkGetMacro(OutputPointsPrecision, int);
87 
88 protected:
89  vtkTextSource();
90  ~vtkTextSource() override;
91 
93  char* Text;
95  double ForegroundColor[4];
96  double BackgroundColor[4];
98 
99 private:
100  vtkTextSource(const vtkTextSource&) = delete;
101  void operator=(const vtkTextSource&) = delete;
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeBool Backing
Definition: vtkTextSource.h:94
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.
int OutputPointsPrecision
Definition: vtkTextSource.h:97
create polygonal text
Definition: vtkTextSource.h:34
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.