VTK
dox
Filters
Sources
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
=========================================================================*/
39
#ifndef vtkTextSource_h
40
#define vtkTextSource_h
41
42
#include "vtkFiltersSourcesModule.h"
// For export macro
43
#include "
vtkPolyDataAlgorithm.h
"
44
45
class
VTKFILTERSSOURCES_EXPORT
vtkTextSource
:
public
vtkPolyDataAlgorithm
46
{
47
public
:
48
vtkTypeMacro(
vtkTextSource
,
vtkPolyDataAlgorithm
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
50
54
static
vtkTextSource
*
New
();
55
57
60
vtkSetStringMacro(
Text
);
61
vtkGetStringMacro(
Text
);
63
65
68
vtkSetMacro(Backing,
vtkTypeBool
);
69
vtkGetMacro(Backing,
vtkTypeBool
);
70
vtkBooleanMacro(Backing,
vtkTypeBool
);
72
74
77
vtkSetVector3Macro(ForegroundColor,
double
);
78
vtkGetVectorMacro(ForegroundColor,
double
,3);
80
82
85
vtkSetVector3Macro(BackgroundColor,
double
);
86
vtkGetVectorMacro(BackgroundColor,
double
,3);
88
90
95
vtkSetMacro(OutputPointsPrecision,
int
);
96
vtkGetMacro(OutputPointsPrecision,
int
);
98
99
protected
:
100
vtkTextSource
();
101
~
vtkTextSource
()
override
;
102
103
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
104
char
*
Text
;
105
vtkTypeBool
Backing
;
106
double
ForegroundColor[4];
107
double
BackgroundColor[4];
108
int
OutputPointsPrecision
;
109
private
:
110
vtkTextSource
(
const
vtkTextSource
&) =
delete
;
111
void
operator=(
const
vtkTextSource
&) =
delete
;
112
};
113
114
#endif
vtkX3D::Text
Definition:
vtkX3D.h:160
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:41
vtkTextSource::OutputPointsPrecision
int OutputPointsPrecision
Definition:
vtkTextSource.h:108
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkTextSource
create polygonal text
Definition:
vtkTextSource.h:45
vtkTextSource::Text
char * Text
Definition:
vtkTextSource.h:104
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:86
vtkTextSource::Backing
vtkTypeBool Backing
Definition:
vtkTextSource.h:105
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition:
vtkPolyDataAlgorithm.h:44
Generated by
1.8.16