VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
39
#ifndef __vtkLabelSizeCalculator_h
40
#define __vtkLabelSizeCalculator_h
41
42
#include "vtkRenderingLabelModule.h"
// For export macro
43
#include "
vtkPassInputTypeAlgorithm.h
"
44
45
class
vtkIntArray
;
46
class
vtkFreeTypeUtilities
;
47
class
vtkStringArray
;
48
class
vtkTextProperty
;
49
50
class
VTKRENDERINGLABEL_EXPORT
vtkLabelSizeCalculator
:
public
vtkPassInputTypeAlgorithm
51
{
52
public
:
53
static
vtkLabelSizeCalculator
*
New
();
54
virtual
void
PrintSelf
( ostream& os,
vtkIndent
indent );
55
vtkTypeMacro(
vtkLabelSizeCalculator
,
vtkPassInputTypeAlgorithm
);
56
58
62
virtual
void
SetFontProperty(
vtkTextProperty
* fontProp,
int
type
= 0);
63
virtual
vtkTextProperty
* GetFontProperty(
int
type
= 0);
65
67
69
vtkSetStringMacro(LabelSizeArrayName);
70
vtkGetStringMacro
(LabelSizeArrayName);
72
73
protected
:
74
vtkLabelSizeCalculator
();
75
virtual
~
vtkLabelSizeCalculator
();
76
77
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
78
virtual
int
RequestData
(
79
vtkInformation
* request,
80
vtkInformationVector
** inInfo,
81
vtkInformationVector
* outInfo );
82
83
virtual
vtkIntArray
* LabelSizesForArray(
vtkAbstractArray
* labels,
vtkIntArray
* types );
84
85
virtual
void
SetFontUtil(
vtkFreeTypeUtilities
* fontProp );
86
vtkGetObjectMacro(FontUtil,
vtkFreeTypeUtilities
);
87
88
vtkFreeTypeUtilities
*
FontUtil
;
89
char
*
LabelSizeArrayName
;
90
91
//BTX
92
class
Internals;
93
Internals*
Implementation
;
94
//ETX
95
96
private
:
97
vtkLabelSizeCalculator
(
const
vtkLabelSizeCalculator
& );
// Not implemented.
98
void
operator = (
const
vtkLabelSizeCalculator
& );
// Not implemented.
99
};
100
101
#endif // __vtkLabelSizeCalculator_h
Generated on Thu May 24 2012 22:22:36 for VTK by
1.8.1