VTK  9.5.20250903
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
61#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
62
63VTK_ABI_NAMESPACE_BEGIN
64class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTextSource : public vtkPolyDataAlgorithm
65{
66public:
68 void PrintSelf(ostream& os, vtkIndent indent) override;
69
73 static vtkTextSource* New();
74
76
79 vtkSetStringMacro(Text);
80 vtkGetStringMacro(Text);
82
84
87 vtkSetMacro(Backing, vtkTypeBool);
88 vtkGetMacro(Backing, vtkTypeBool);
89 vtkBooleanMacro(Backing, vtkTypeBool);
91
93
96 vtkSetVector3Macro(ForegroundColor, double);
97 vtkGetVectorMacro(ForegroundColor, double, 3);
99
101
104 vtkSetVector3Macro(BackgroundColor, double);
105 vtkGetVectorMacro(BackgroundColor, double, 3);
107
109
114 vtkSetMacro(OutputPointsPrecision, int);
115 vtkGetMacro(OutputPointsPrecision, int);
117
118protected:
120 ~vtkTextSource() override;
121
123 char* Text;
125 double ForegroundColor[4];
126 double BackgroundColor[4];
128
129private:
130 vtkTextSource(const vtkTextSource&) = delete;
131 void operator=(const vtkTextSource&) = delete;
132};
133
134VTK_ABI_NAMESPACE_END
135#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
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Backing
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
#define VTK_MARSHALAUTO