VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
symbology
movingObjectSymbol.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2006 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: movingObjectSymbol.h,v $ $Revision: 1.5 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef MOVINGSYMBOL_H_
13
#define MOVINGSYMBOL_H_
14
15
#include "
symbology/nameLabelSymbol.h
"
16
17
class
DtLineSymbol
;
18
class
DtTTSSymbol
;
19
21
#include "
symbology/symbologyDefines.h
"
22
class
DT_DLL_symbology
DtMovingObjectSymbol
:
public
DtNameLabelSymbol
23
{
24
25
public
:
26
28
DtMovingObjectSymbol
(
DtSymbolDrawer
& d);
29
31
virtual
~
DtMovingObjectSymbol
();
32
34
DtMovingObjectSymbol
(
const
DtMovingObjectSymbol
& orig);
35
37
DtMovingObjectSymbol
&
operator=
(
const
DtMovingObjectSymbol
& rhs);
38
40
virtual
void
copyDataFrom
(
const
DtSymbol
* symbol);
41
43
virtual
void
setHighlight
(
const
bool
highlight);
44
45
virtual
bool
highlight
()
const
;
46
47
virtual
void
setOrigin
(
int
x,
int
y );
48
virtual
void
setOrigin
(
const
QPoint& position);
49
virtual
const
DtDisplayPoint
centerPoint
()
const
;
50
virtual
const
QPoint
origin
()
const
;
51
52
virtual
bool
select
(
const
QPoint&
point
);
56
virtual
bool
selectPart(
const
QPoint& point);
57
virtual
bool
select
(
const
QPoint& point,
const
QSize& s);
58
59
virtual
QSize
bbox
()
const
;
60
virtual
QRect
selBbox
()
const
;
61
62
virtual
DtLineSymbol
* velocityIndicator();
63
virtual
void
setVelocityIndicator(
DtLineSymbol
* s);
64
65
virtual
DtLineSymbol
* headingIndicator();
66
virtual
void
setHeadingIndicator(
DtLineSymbol
* s);
67
68
virtual
DtSymbol
* damagedSymbol();
69
virtual
void
setDamagedSymbol(
DtSymbol
* s);
70
71
virtual
DtSymbol
* objectConsoleWarningIndicator();
72
virtual
void
setObjectConsoleWarningIndicator(
DtSymbol
* s);
73
74
virtual
DtTTSSymbol
* location();
75
virtual
void
setLocation(
DtTTSSymbol
* s);
76
77
virtual
DtTTSSymbol
* velocity();
78
virtual
void
setVelocity(
DtTTSSymbol
* s);
79
80
virtual
DtTTSSymbol
* acceleration();
81
virtual
void
setAcceleration(
DtTTSSymbol
* s);
82
83
virtual
DtTTSSymbol
* heading();
84
virtual
void
setHeading(
DtTTSSymbol
* s);
85
86
virtual
DtTTSSymbol
* entityType();
87
virtual
void
setEntityType(
DtTTSSymbol
* s);
88
89
virtual
DtSymbol
*
clone
()
const
;
90
91
virtual
int
resetLabelPositions
()
const
;
92
98
virtual
void
setPenColor
(
const
QColor& color);
99
100
virtual
void
shift
(QPoint p);
101
103
virtual
void
setRotateToHeading(
bool
b);
104
virtual
bool
rotateToHeading()
const
;
105
107
virtual
void
setRotationValue(
double
d);
108
virtual
double
rotationValue()
const
;
109
110
protected
:
111
enum
DtPartSelected
112
{
113
DtPartSelected_None = 0,
114
DtPartSelected_MainSymbol
,
115
DtPartSelected_HeadingIndicator
116
};
117
119
virtual
DtSymbol
*
editableSymbol
();
120
121
protected
:
122
virtual
void
draw
(
DtSymbol
* symbol, QPainter& paint)
const
;
123
124
private
:
126
DtMovingObjectSymbol
();
127
128
protected
:
129
130
DtLineSymbol
*
myVelocityIndicator
;
131
DtLineSymbol
*
myHeadingIndicator
;
132
DtTTSSymbol
*
myLocation
;
133
DtTTSSymbol
*
myVelocity
;
134
DtTTSSymbol
*
myAcceleration
;
135
DtTTSSymbol
*
myHeading
;
136
DtTTSSymbol
*
myEntityType
;
137
DtSymbol
*
myDamagedSymbol
;
138
DtSymbol
*
myObjectConsoleWarningIndicator
;
139
140
DtPartSelected
myPartSelected
;
141
142
bool
myRotateToHeading
;
143
double
myRotationValue
;
144
145
bool
myAllowHeadingEditOnSelection
;
146
};
147
148
#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
)