VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
entityEditorImpl
formationSymbolUpdater.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2008 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: formationSymbolUpdater.h,v $ $Revision: 1.7 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DTFORMATIONSYMBOLUPDATER_H_
13
#define DTFORMATIONSYMBOLUPDATER_H_
14
15
#include "
entityEditorImpl/entityEditorSymbolMapper.h
"
16
#include "
tmqt/tmSymbolUpdater.h
"
17
18
class
DtFormationModelData
;
19
class
DtPolygonSymbol
;
20
class
DtNameLabelSymbol
;
21
class
DtFormationSymbolMapper
;
22
23
class
DT_DLL_entityeditorimpl
DtFormationSymbolUpdater
:
public
DtTMSymbolUpdater
24
{
25
public
:
26
DtFormationSymbolUpdater
();
27
28
virtual
void
init
(
DtTMArea
* area);
29
30
bool
showBoundingBoxes()
const
;
31
void
setShowBoundingBoxes(
bool
b);
32
33
void
setSymbolMapper(
DtFormationSymbolMapper
* m);
34
35
protected
:
36
static
void
formationSymbolUpdate(
const
DtTMSymbolUpdater
* updater,
DtSymbol
& s,
const
DtModelData
& d,
void
* usr);
37
virtual
void
processFormationSymbolUpdate(
DtSymbol
& s,
const
DtModelData
& d,
void
* usr)
const
;
38
39
virtual
QPolygon*
createScreenPtsFromDB
(
const
QVector<DtPoint>* dbPoints)
const
;
40
virtual
void
updateBoundingBox(
DtPolygonSymbol
* s,
const
DtFormationModelData
*)
const
;
41
42
virtual
void
setName(
const
DtFormationModelData
* fmd,
DtNameLabelSymbol
* nls)
const
;
43
virtual
void
replaceMainSymbolIfNeeded(
DtNameLabelSymbol
* nls,
DtModelData
& data,
void
* usr)
const
;
44
45
protected
:
46
bool
myShowBoundingBoxes
;
47
DtFormationSymbolMapper
*
mySymbolMapper
;
48
};
49
50
inline
void
DtFormationSymbolUpdater::setSymbolMapper
(
DtFormationSymbolMapper
* m)
51
{
52
mySymbolMapper
= m;
53
}
54
55
inline
bool
DtFormationSymbolUpdater::showBoundingBoxes
()
const
56
{
57
return
myShowBoundingBoxes
;
58
}
59
60
inline
void
DtFormationSymbolUpdater::setShowBoundingBoxes
(
bool
b)
61
{
62
myShowBoundingBoxes
= b;
63
}
64
65
#endif
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
)