VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtEntity2dFacade.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCore/vrvCore.h
>
16
#include <
vrvCore/DtUniqueID.h
>
17
#include <
vrvUtil/DtUnicode.h
>
18
#include <string>
19
20
class
DtTaitBryan;
21
class
DtVector;
22
23
namespace
makVrv
24
{
25
class
DtAgentManagerInterface;
26
class
DtDeadReckonUpdaterAgent;
27
class
DtProjectedWidgetModelAgent;
28
class
DtSceneObjectAgent;
29
class
DtWidgetLabelAgent;
30
34
class
DtEntity2dFacade
35
{
36
public
:
37
39
DtEntity2dFacade
(
DtAgentManagerInterface
& sceneInterface,
40
DtElementID
id
,
bool
distribute =
false
);
41
43
virtual
~DtEntity2dFacade
();
44
48
49
51
virtual
void
setVisible
(
bool
visible
);
52
54
virtual
bool
visible
()
const
;
55
57
virtual
DtElementID
elementID
()
const
;
58
60
virtual
int
modelSet
()
const
;
61
63
DtSceneObjectAgent
&
sceneObjectAgent
();
64
66
69
70
74
virtual
void
setPosition
(
const
DtVector&
position
);
75
81
virtual
DtVector
position
()
const
;
82
86
virtual
void
setVelocity
(
const
DtVector&
velocity
);
87
92
virtual
DtVector
velocity
()
const
;
93
95
virtual
void
setAcceleration
(
const
DtVector&
acceleration
);
96
101
virtual
DtVector
acceleration
()
const
;
102
104
virtual
void
setOrientation
(
const
DtTaitBryan&
orientation
);
105
107
virtual
DtTaitBryan
orientation
()
const
;
108
110
virtual
void
setAngularVelocity
(
const
DtVector&
angularVelocity
);
111
113
virtual
DtVector
angularVelocity
()
const
;
114
116
120
121
124
virtual
void
setDeadReckoningEnabled
(
bool
position,
bool
velocity,
125
bool
orientation);
126
128
virtual
void
setSmoothingEnabled
(
bool
enabled);
129
131
virtual
void
setSmoothingPeriod
(
float
period);
132
134
137
138
140
virtual
void
setIconModelDefinition
(
const
std::string& modelDefinitionName);
141
142
virtual
void
setOutlineColor
(
const
float
color[4]);
143
virtual
void
setFillColor
(
const
float
color[4]);
144
145
virtual
void
setOutlineGlyph
(
DtUnicodeChar
glyph);
146
virtual
void
setFillGlyph
(
DtUnicodeChar
glyph);
147
virtual
void
setDamageGlyph
(
DtUnicodeChar
glyph);
148
149
virtual
void
setDamaged
(
bool
damaged
);
150
bool
damaged
()
const
;
151
153
154
protected
:
155
156
virtual
void
updateIcon
();
157
158
virtual
DtUnicode
generateSymbolString
(
float
fillColor[4],
159
float
outlineColor[4] )
const
;
160
161
protected
:
162
DtElementID
myElementId
;
163
unsigned
int
myModelSet
;
164
165
DtSceneObjectAgent
*
mySceneObjectAgent
;
166
DtProjectedWidgetModelAgent
*
myProjectIconModelAgent
;
167
DtWidgetLabelAgent
*
mySymbolLabelAgent
;
168
DtDeadReckonUpdaterAgent
*
mySceneObjectUpdaterAgent
;
169
170
DtUnicodeChar
myOutlineGlyph
;
171
DtUnicodeChar
myFillGlyph
;
172
DtUnicodeChar
myDamageGlyph
;
173
DtUnicode
mySymbolString
;
174
175
bool
myDamagedFlag
;
176
float
myFillColor
[4];
177
float
myOutlineColor
[4];
178
};
179
}
180
181
#define DtEntity2dFacade_INL_
182
#include <
vrvCore/DtEntity2dFacade.inl
>
183
#undef DtEntity2dFacade_INL_
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)