VTK
dox
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
37
#ifndef vtkLabelSizeCalculator_h
38
#define vtkLabelSizeCalculator_h
39
40
#include "vtkRenderingLabelModule.h"
// For export macro
41
#include "
vtkPassInputTypeAlgorithm.h
"
42
43
class
vtkIntArray
;
44
class
vtkTextRenderer
;
45
class
vtkStringArray
;
46
class
vtkTextProperty
;
47
48
class
VTKRENDERINGLABEL_EXPORT
vtkLabelSizeCalculator
:
public
vtkPassInputTypeAlgorithm
49
{
50
public
:
51
static
vtkLabelSizeCalculator
*
New
();
52
void
PrintSelf
( ostream& os,
vtkIndent
indent ) VTK_OVERRIDE;
53
vtkTypeMacro(
vtkLabelSizeCalculator
,
vtkPassInputTypeAlgorithm
);
54
56
62
virtual
void
SetFontProperty(
vtkTextProperty
* fontProp,
int
type
= 0);
63
virtual
vtkTextProperty
* GetFontProperty(
int
type
= 0);
65
67
71
vtkSetStringMacro(LabelSizeArrayName);
72
vtkGetStringMacro
(LabelSizeArrayName);
74
76
80
vtkSetMacro
(DPI,
int
)
81
vtkGetMacro(DPI,
int
)
83
84
protected
:
85
vtkLabelSizeCalculator
();
86
~
vtkLabelSizeCalculator
() VTK_OVERRIDE;
87
88
int
FillInputPortInformation(
int
port
,
vtkInformation
*
info
) VTK_OVERRIDE;
89
int
RequestData(
90
vtkInformation
* request,
91
vtkInformationVector
** inInfo,
92
vtkInformationVector
* outInfo ) VTK_OVERRIDE;
93
94
virtual
vtkIntArray
* LabelSizesForArray(
vtkAbstractArray
* labels,
vtkIntArray
* types );
95
96
virtual
void
SetFontUtil(
vtkTextRenderer
* fontProp );
97
vtkGetObjectMacro(FontUtil,
vtkTextRenderer
);
98
99
vtkTextRenderer
* FontUtil;
100
char
* LabelSizeArrayName;
101
102
int
DPI;
103
104
class Internals;
105
Internals* Implementation;
106
107
private:
108
vtkLabelSizeCalculator
( const
vtkLabelSizeCalculator
& ) VTK_DELETE_FUNCTION;
109
void
operator = ( const
vtkLabelSizeCalculator
& ) VTK_DELETE_FUNCTION;
110
};
111
112
#endif // vtkLabelSizeCalculator_h
vtkX3D::type
Definition:
vtkX3D.h:516
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition:
vtkPassInputTypeAlgorithm.h:50
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:80
vtkPassInputTypeAlgorithm.h
vtkAbstractArray
Abstract superclass for all arrays.
Definition:
vtkAbstractArray.h:75
vtkStringArray
a vtkAbstractArray subclass for strings
Definition:
vtkStringArray.h:36
vtkX3D::info
Definition:
vtkX3D.h:376
vtkIntArray
dynamic, self-adjusting array of int
Definition:
vtkIntArray.h:39
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:33
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkTextRenderer
Interface for generating images and path data from string data, using multiple backends.
Definition:
vtkTextRenderer.h:72
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:35
vtkX3D::port
Definition:
vtkX3D.h:447
vtkLabelSizeCalculator
This filter takes an input dataset, an array to process (which must be a string array), and a text property.
Definition:
vtkLabelSizeCalculator.h:48
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
Generated by
1.8.14