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=========================================================================*/
45#ifndef vtkTextSource_h
46#define vtkTextSource_h
47
48#include "vtkFiltersSourcesModule.h" // For export macro
50
51class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
52{
53public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
60 static vtkTextSource* New();
61
63
66 vtkSetStringMacro(Text);
67 vtkGetStringMacro(Text);
69
71
74 vtkSetMacro(Backing, vtkTypeBool);
75 vtkGetMacro(Backing, vtkTypeBool);
76 vtkBooleanMacro(Backing, vtkTypeBool);
78
80
83 vtkSetVector3Macro(ForegroundColor, double);
84 vtkGetVectorMacro(ForegroundColor, double, 3);
86
88
91 vtkSetVector3Macro(BackgroundColor, double);
92 vtkGetVectorMacro(BackgroundColor, double, 3);
94
96
101 vtkSetMacro(OutputPointsPrecision, int);
102 vtkGetMacro(OutputPointsPrecision, int);
104
105protected:
107 ~vtkTextSource() override;
108
110 char* Text;
112 double ForegroundColor[4];
113 double BackgroundColor[4];
115
116private:
117 vtkTextSource(const vtkTextSource&) = delete;
118 void operator=(const vtkTextSource&) = delete;
119};
120
121#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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:52
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