VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
symbolDrawer
compositeDrawer.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: compositeDrawer.h,v $ $Revision: 1.5 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DtCompositeDrawer_H_
13
#define DtCompositeDrawer_H_
14
16
#include "
symbolDrawer/baseSymbolDrawer.h
"
17
18
class
DtSymbol
;
19
21
#include <QtGui/QPixmap>
22
#include "
ngutil/dtqlist.h
"
23
26
#include "
symbolDrawer/symbolDrawerDefines.h
"
27
28
class
DT_DLL_symbolDrawer
DtCompositeDrawer
:
public
DtBaseSymbolDrawer
29
{
30
public
:
31
32
DtCompositeDrawer
();
33
virtual
~
DtCompositeDrawer
();
34
39
virtual
bool
draw
( QPainter& paint,
40
const
DtSymbol
*
const
symbol )
const
;
41
44
virtual
QSize
calcBBox
(
const
DtSymbol
*
const
symbol )
const
;
45
46
virtual
void
addDrawer(
DtSymbolDrawer
* drawer);
47
virtual
void
removeDrawer(
DtSymbolDrawer
* drawer);
48
virtual
DtPtrQList<DtSymbolDrawer*>
* drawers();
49
53
void
destroyDrawer(
DtSymbolDrawer
*,
bool
add =
true
);
54
55
protected
:
56
virtual
bool
forceUpdate
(
const
DtSymbol
*
const
symbol)
const
;
57
60
virtual
bool
endTransparentDraw
(QPainter& paint,
61
const
DtSymbol
*
const
symbol)
const
;
62
63
private
:
65
DtCompositeDrawer
(
const
DtCompositeDrawer
& orig);
66
DtCompositeDrawer
&
operator=
(
const
DtCompositeDrawer
& orig);
68
69
protected
:
70
DtPtrQList<DtSymbolDrawer*>
mySymbolDrawers
;
71
DtPtrQList<DtSymbolDrawer*>
myDrawersToDestroy
;
72
};
73
74
inline
void
DtCompositeDrawer::destroyDrawer
(
DtSymbolDrawer
* d,
bool
add)
75
{
76
if
(add)
77
{
78
if
(
myDrawersToDestroy
.
findRef
(d) == -1)
79
{
80
myDrawersToDestroy
.append(d);
81
}
82
}
83
else
84
{
85
myDrawersToDestroy
.
remove
(d);
86
}
87
}
88
89
#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
)