VTK  9.3.0
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
36 #ifndef vtkTextSource_h
37 #define vtkTextSource_h
38 
39 #include "vtkFiltersSourcesModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
42 VTK_ABI_NAMESPACE_BEGIN
43 class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
52  static vtkTextSource* New();
53 
55 
58  vtkSetStringMacro(Text);
59  vtkGetStringMacro(Text);
61 
63 
66  vtkSetMacro(Backing, vtkTypeBool);
67  vtkGetMacro(Backing, vtkTypeBool);
68  vtkBooleanMacro(Backing, vtkTypeBool);
70 
72 
75  vtkSetVector3Macro(ForegroundColor, double);
76  vtkGetVectorMacro(ForegroundColor, double, 3);
78 
80 
83  vtkSetVector3Macro(BackgroundColor, double);
84  vtkGetVectorMacro(BackgroundColor, double, 3);
86 
88 
93  vtkSetMacro(OutputPointsPrecision, int);
94  vtkGetMacro(OutputPointsPrecision, int);
96 
97 protected:
99  ~vtkTextSource() override;
100 
102  char* Text;
104  double ForegroundColor[4];
105  double BackgroundColor[4];
107 
108 private:
109  vtkTextSource(const vtkTextSource&) = delete;
110  void operator=(const vtkTextSource&) = delete;
111 };
112 
113 VTK_ABI_NAMESPACE_END
114 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
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:44
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