VTK  9.2.6
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=========================================================================*/
68#ifndef vtkTextSource_h
69#define vtkTextSource_h
70
71#include "vtkFiltersSourcesModule.h" // For export macro
73
74class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
75{
76public:
78 void PrintSelf(ostream& os, vtkIndent indent) override;
79
83 static vtkTextSource* New();
84
86
89 vtkSetStringMacro(Text);
90 vtkGetStringMacro(Text);
92
94
97 vtkSetMacro(Backing, vtkTypeBool);
98 vtkGetMacro(Backing, vtkTypeBool);
99 vtkBooleanMacro(Backing, vtkTypeBool);
101
103
106 vtkSetVector3Macro(ForegroundColor, double);
107 vtkGetVectorMacro(ForegroundColor, double, 3);
109
111
114 vtkSetVector3Macro(BackgroundColor, double);
115 vtkGetVectorMacro(BackgroundColor, double, 3);
117
119
124 vtkSetMacro(OutputPointsPrecision, int);
125 vtkGetMacro(OutputPointsPrecision, int);
127
128protected:
130 ~vtkTextSource() override;
131
133 char* Text;
135 double ForegroundColor[4];
136 double BackgroundColor[4];
138
139private:
140 vtkTextSource(const vtkTextSource&) = delete;
141 void operator=(const vtkTextSource&) = delete;
142};
143
144#endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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:75
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