VTK  9.7.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
27 #ifndef vtkTextSource_h
28 #define vtkTextSource_h
29 
30 #include "vtkFiltersSourcesModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTextSource : public vtkPolyDataAlgorithm
36 {
37 public:
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 
89 protected:
90  vtkTextSource();
91  ~vtkTextSource() override;
92 
94  char* Text;
96  double ForegroundColor[4];
97  double BackgroundColor[4];
99 
100 private:
101  vtkTextSource(const vtkTextSource&) = delete;
102  void operator=(const vtkTextSource&) = delete;
103 };
104 
105 VTK_ABI_NAMESPACE_END
106 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeBool Backing
Definition: vtkTextSource.h:95
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
int OutputPointsPrecision
Definition: vtkTextSource.h:98
create polygonal text
Definition: vtkTextSource.h:35
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.