VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
symbolDrawer
ttfUnitSymbolDrawer.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2001 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: ttfUnitSymbolDrawer.h,v $ $Revision: 1.12 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DtTTFUnitSymbolDrawer_H_
13
#define DtTTFUnitSymbolDrawer_H_
14
16
#include "
symbolDrawer/mmmDrawer.h
"
17
18
class
DtTTFUnitSymbol
;
19
class
QString;
20
23
#include "
symbolDrawer/symbolDrawerDefines.h
"
24
25
class
DT_DLL_symbolDrawer
DtTTFUnitSymbolDrawer
:
public
DtMMMDrawer
26
{
27
28
public
:
29
30
31
DtTTFUnitSymbolDrawer
();
32
34
DtTTFUnitSymbolDrawer
(
const
QString& family,
int
pointSize = 24,
35
const
QColor& fillColor = QColor(128, 224, 225) );
36
37
virtual
~
DtTTFUnitSymbolDrawer
();
38
41
virtual
QSize
calcBBox
(
const
DtSymbol
*
const
symbol )
const
;
42
virtual
QRect
calcBRect
(
const
DtSymbol
*
const
symbol)
const
;
43
44
virtual
unsigned
int
pixelSize(
const
DtMMMSymbol
&)
const
;
45
46
virtual
void
setPixelSize(
unsigned
int
size );
47
48
49
virtual
unsigned
int
pointSize()
const
;
50
51
virtual
void
setPointSize(
unsigned
int
size );
52
53
static
DtSymbolDrawer
*
create
();
54
55
protected
:
58
virtual
void
paintFont
(QPainter& painter,
59
int
left,
int
base,
60
const
DtTTSSymbol
& symbol )
const
;
61
62
virtual
void
paintFontOnPix
( QPixmap * pix,
const
DtMMMSymbol
*pSymbol )
const
;
63
virtual
void
paintFontOnPix
( QImage * pix,
const
DtMMMSymbol
*pSymbol )
const
;
64
virtual
void
drawHighlightForPattern
( QPainter& paint,
const
DtMMMSymbol
*pSymbol )
const
;
65
66
virtual
QSize
fontSize
(
const
DtMMMSymbol
*)
const
;
67
virtual
QPoint
calcOrigin
(
const
DtTTSSymbol
* pSymbol,
bool
calcBitmapOrigin =
false
)
const
;
68
69
private
:
71
DtTTFUnitSymbolDrawer
(
const
DtTTFUnitSymbolDrawer
& orig );
72
DtTTFUnitSymbolDrawer
&
operator=
(
const
DtTTFUnitSymbolDrawer
& orig );
74
75
protected
:
76
};
77
78
#endif
79
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)