VTK  9.3.20240328
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
56 #ifndef vtkTextSource_h
57 #define vtkTextSource_h
58 
59 #include "vtkFiltersSourcesModule.h" // For export macro
60 #include "vtkPolyDataAlgorithm.h"
61 
62 VTK_ABI_NAMESPACE_BEGIN
63 class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
64 {
65 public:
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
72  static vtkTextSource* New();
73 
75 
78  vtkSetStringMacro(Text);
79  vtkGetStringMacro(Text);
81 
83 
86  vtkSetMacro(Backing, vtkTypeBool);
87  vtkGetMacro(Backing, vtkTypeBool);
88  vtkBooleanMacro(Backing, vtkTypeBool);
90 
92 
95  vtkSetVector3Macro(ForegroundColor, double);
96  vtkGetVectorMacro(ForegroundColor, double, 3);
98 
100 
103  vtkSetVector3Macro(BackgroundColor, double);
104  vtkGetVectorMacro(BackgroundColor, double, 3);
106 
108 
113  vtkSetMacro(OutputPointsPrecision, int);
114  vtkGetMacro(OutputPointsPrecision, int);
116 
117 protected:
119  ~vtkTextSource() override;
120 
122  char* Text;
124  double ForegroundColor[4];
125  double BackgroundColor[4];
127 
128 private:
129  vtkTextSource(const vtkTextSource&) = delete;
130  void operator=(const vtkTextSource&) = delete;
131 };
132 
133 VTK_ABI_NAMESPACE_END
134 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
create polygonal text
Definition: vtkTextSource.h:64
static vtkTextSource * New()
Construct object with no string set and backing enabled.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Backing
int OutputPointsPrecision
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTextSource() override
@ Text
Definition: vtkX3D.h:160
int vtkTypeBool
Definition: vtkABI.h:64