VTK  9.1.0
vtkTextSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTextSource.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
65#ifndef vtkTextSource_h
66#define vtkTextSource_h
67
68#include "vtkFiltersSourcesModule.h" // For export macro
70
71class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
72{
73public:
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
80 static vtkTextSource* New();
81
83
86 vtkSetStringMacro(Text);
87 vtkGetStringMacro(Text);
89
91
94 vtkSetMacro(Backing, vtkTypeBool);
95 vtkGetMacro(Backing, vtkTypeBool);
96 vtkBooleanMacro(Backing, vtkTypeBool);
98
100
103 vtkSetVector3Macro(ForegroundColor, double);
104 vtkGetVectorMacro(ForegroundColor, double, 3);
106
108
111 vtkSetVector3Macro(BackgroundColor, double);
112 vtkGetVectorMacro(BackgroundColor, double, 3);
114
116
121 vtkSetMacro(OutputPointsPrecision, int);
122 vtkGetMacro(OutputPointsPrecision, int);
124
125protected:
127 ~vtkTextSource() override;
128
130 char* Text;
132 double ForegroundColor[4];
133 double BackgroundColor[4];
135
136private:
137 vtkTextSource(const vtkTextSource&) = delete;
138 void operator=(const vtkTextSource&) = delete;
139};
140
141#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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:72
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
@ Text
Definition: vtkX3D.h:166
int vtkTypeBool
Definition: vtkABI.h:69