VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
symbolDrawer
polygonDrawer.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2001 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: polygonDrawer.h,v $ $Revision: 1.17 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DtPolygonDrawer_H_
13
#define DtPolygonDrawer_H_
14
16
#include "
symbolDrawer/baseSymbolDrawer.h
"
17
#include "
symbology/polygonSymbol.h
"
18
19
class
DtSymbol
;
20
class
DtCenterPoint;
21
23
#include <QtCore/QCache>
24
#include <QtGui/QPixmap>
25
26
28
#include "
symbolDrawer/symbolDrawerDefines.h
"
29
30
class
DT_DLL_symbolDrawer
DtPolygonDrawer
:
public
DtBaseSymbolDrawer
31
{
32
public
:
33
DtPolygonDrawer
();
34
virtual
~
DtPolygonDrawer
();
35
36
virtual
bool
draw
( QPainter& paint,
37
const
DtSymbol
*
const
symbol )
const
;
38
41
virtual
QSize
calcBBox
(
const
DtSymbol
*
const
symbol )
const
;
42
44
virtual
void
setPenThickness(
int
thickness);
45
46
virtual
void
setPolygonStyle(
DtPolygonSymbol::DtPolygonStyle
style);
47
virtual
void
clearPolygonStyle();
48
49
virtual
void
setPatternStyle(Qt::BrushStyle style);
50
virtual
void
clearPatternStyle();
51
54
virtual
void
setPenStyle(
Qt::PenStyle
style);
55
virtual
void
clearPenStyleOverride();
56
57
static
DtSymbolDrawer
* create();
58
59
private
:
61
DtPolygonDrawer
(
const
DtPolygonDrawer
& orig);
62
DtPolygonDrawer
&
operator=
(
const
DtPolygonDrawer
& orig);
64
65
protected
:
66
int
myPenThickness
;
67
68
DtPolygonSymbol::DtPolygonStyle
myPolygonStyle
;
69
bool
myOverridePolygonStyle
;
70
71
Qt::BrushStyle
myPatternStyle
;
72
bool
myOverridePatternStyle
;
73
74
Qt::PenStyle
myPenStyle
;
75
bool
myPenStyleOverride
;
76
};
77
78
#endif
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)