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=========================================================================*/
35
36#ifndef vtkTextSource_h
37#define vtkTextSource_h
38
39#include "vtkFiltersSourcesModule.h" // For export macro
41
42class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
43{
44public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
51 static vtkTextSource* New();
52
54
57 vtkSetStringMacro(Text);
58 vtkGetStringMacro(Text);
60
62
65 vtkSetMacro(Backing, vtkTypeBool);
66 vtkGetMacro(Backing, vtkTypeBool);
67 vtkBooleanMacro(Backing, vtkTypeBool);
69
71
74 vtkSetVector3Macro(ForegroundColor, double);
75 vtkGetVectorMacro(ForegroundColor, double, 3);
77
79
82 vtkSetVector3Macro(BackgroundColor, double);
83 vtkGetVectorMacro(BackgroundColor, double, 3);
85
87
92 vtkSetMacro(OutputPointsPrecision, int);
93 vtkGetMacro(OutputPointsPrecision, int);
95
96protected:
98 ~vtkTextSource() override;
99
101 char* Text;
106
107private:
108 vtkTextSource(const vtkTextSource&) = delete;
109 void operator=(const vtkTextSource&) = delete;
110};
111
112#endif
a simple class to control print indentation
Definition vtkIndent.h:34
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
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:69