VTK  9.6.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
26
27#ifndef vtkTextSource_h
28#define vtkTextSource_h
29
30#include "vtkFiltersSourcesModule.h" // For export macro
32#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
33
34VTK_ABI_NAMESPACE_BEGIN
35class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTextSource : public vtkPolyDataAlgorithm
36{
37public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
44 static vtkTextSource* New();
45
47
50 vtkSetStringMacro(Text);
51 vtkGetStringMacro(Text);
53
55
58 vtkSetMacro(Backing, vtkTypeBool);
59 vtkGetMacro(Backing, vtkTypeBool);
60 vtkBooleanMacro(Backing, vtkTypeBool);
62
64
67 vtkSetVector3Macro(ForegroundColor, double);
68 vtkGetVectorMacro(ForegroundColor, double, 3);
70
72
75 vtkSetVector3Macro(BackgroundColor, double);
76 vtkGetVectorMacro(BackgroundColor, double, 3);
78
80
85 vtkSetMacro(OutputPointsPrecision, int);
86 vtkGetMacro(OutputPointsPrecision, int);
88
89protected:
91 ~vtkTextSource() override;
92
94 char* Text;
96 double ForegroundColor[4];
97 double BackgroundColor[4];
99
100private:
101 vtkTextSource(const vtkTextSource&) = delete;
102 void operator=(const vtkTextSource&) = delete;
103};
104
105VTK_ABI_NAMESPACE_END
106#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
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.
double ForegroundColor[4]
double BackgroundColor[4]
~vtkTextSource() override
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO