VTK
9.2.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
Label
vtkLabelSizeCalculator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLabelSizeCalculator.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
=========================================================================*/
15
40
#ifndef vtkLabelSizeCalculator_h
41
#define vtkLabelSizeCalculator_h
42
43
#include "
vtkPassInputTypeAlgorithm.h
"
44
#include "vtkRenderingLabelModule.h"
// For export macro
45
46
class
vtkIntArray
;
47
class
vtkTextRenderer
;
48
class
vtkStringArray
;
49
class
vtkTextProperty
;
50
51
class
VTKRENDERINGLABEL_EXPORT
vtkLabelSizeCalculator
:
public
vtkPassInputTypeAlgorithm
52
{
53
public
:
54
static
vtkLabelSizeCalculator
*
New
();
55
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
56
vtkTypeMacro(
vtkLabelSizeCalculator
,
vtkPassInputTypeAlgorithm
);
57
59
65
virtual
void
SetFontProperty(
vtkTextProperty
* fontProp,
int
type
= 0);
66
virtual
vtkTextProperty
* GetFontProperty(
int
type
= 0);
68
70
74
vtkSetStringMacro(LabelSizeArrayName);
75
vtkGetStringMacro(LabelSizeArrayName);
77
79
83
vtkSetMacro(DPI,
int
);
84
vtkGetMacro(DPI,
int
);
86
87
protected
:
88
vtkLabelSizeCalculator
();
89
~
vtkLabelSizeCalculator
()
override
;
90
91
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
)
override
;
92
int
RequestData
(
93
vtkInformation
* request,
vtkInformationVector
** inInfo,
vtkInformationVector
* outInfo)
override
;
94
95
virtual
vtkIntArray
* LabelSizesForArray(
vtkAbstractArray
* labels,
vtkIntArray
* types);
96
97
virtual
void
SetFontUtil(
vtkTextRenderer
* fontProp);
98
vtkGetObjectMacro(FontUtil,
vtkTextRenderer
);
99
100
vtkTextRenderer
*
FontUtil
;
101
char
*
LabelSizeArrayName
;
102
103
int
DPI
;
104
105
class
Internals;
106
Internals*
Implementation
;
107
108
private
:
109
vtkLabelSizeCalculator
(
const
vtkLabelSizeCalculator
&) =
delete
;
110
void
operator=(
const
vtkLabelSizeCalculator
&) =
delete
;
111
};
112
113
#endif // vtkLabelSizeCalculator_h
vtkX3D::type
Definition:
vtkX3D.h:522
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition:
vtkPassInputTypeAlgorithm.h:55
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:73
vtkPassInputTypeAlgorithm.h
vtkAbstractArray
Abstract superclass for all arrays.
Definition:
vtkAbstractArray.h:86
vtkStringArray
a vtkAbstractArray subclass for strings
Definition:
vtkStringArray.h:42
vtkX3D::info
Definition:
vtkX3D.h:382
vtkLabelSizeCalculator::DPI
int DPI
Definition:
vtkLabelSizeCalculator.h:103
vtkLabelSizeCalculator::FontUtil
vtkTextRenderer * FontUtil
Definition:
vtkLabelSizeCalculator.h:98
vtkIntArray
dynamic, self-adjusting array of int
Definition:
vtkIntArray.h:45
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkLabelSizeCalculator::Implementation
Internals * Implementation
Definition:
vtkLabelSizeCalculator.h:105
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkLabelSizeCalculator::LabelSizeArrayName
char * LabelSizeArrayName
Definition:
vtkLabelSizeCalculator.h:101
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:36
vtkTextRenderer
Interface for generating images and path data from string data, using multiple backends.
Definition:
vtkTextRenderer.h:78
vtkPassInputTypeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:41
vtkX3D::port
Definition:
vtkX3D.h:453
vtkLabelSizeCalculator
This filter takes an input dataset, an array to process (which must be a string array), and a text property.
Definition:
vtkLabelSizeCalculator.h:51
vtkPassInputTypeAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition:
vtkPassInputTypeAlgorithm.h:187
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
Generated on Mon Oct 16 2023 11:19:52 for VTK by
1.8.10