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
27#ifndef vtkTextSource_h
28#define vtkTextSource_h
29
30#include "vtkFiltersSourcesModule.h" // For export macro
32
33VTK_ABI_NAMESPACE_BEGIN
34class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
35{
36public:
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
88protected:
90 ~vtkTextSource() override;
91
93 char* Text;
95 double ForegroundColor[4];
96 double BackgroundColor[4];
98
99private:
100 vtkTextSource(const vtkTextSource&) = delete;
101 void operator=(const vtkTextSource&) = delete;
102};
103
104VTK_ABI_NAMESPACE_END
105#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
create polygonal text
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.
static vtkTextSource * New()
Construct object with no string set and backing enabled.
~vtkTextSource() override
int vtkTypeBool
Definition vtkABI.h:64