VTK
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 =========================================================================*/
36 #ifndef vtkTextSource_h
37 #define vtkTextSource_h
38 
39 #include "vtkFiltersSourcesModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
42 class VTKFILTERSSOURCES_EXPORT vtkTextSource : public vtkPolyDataAlgorithm
43 {
44 public:
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 
96 protected:
97  vtkTextSource();
98  ~vtkTextSource() override;
99 
101  char *Text;
103  double ForegroundColor[4];
104  double BackgroundColor[4];
106 private:
107  vtkTextSource(const vtkTextSource&) = delete;
108  void operator=(const vtkTextSource&) = delete;
109 };
110 
111 #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:69
vtkTypeBool Backing
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
Store zero or more vtkInformation instances.
int OutputPointsPrecision
create polygonal text
Definition: vtkTextSource.h:42
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.