VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvVrl
DtVrlinkRadioCommLineVisualizer.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2012 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvVrl/vrvVrl.h
>
13
14
#include <
vrvCore/DtRadioCommLineVisualizer.h
>
15
16
#include <vl/signalInter.h>
17
18
#include <set>
19
20
namespace
makVrv
21
{
22
23
namespace
DT_PROTOCOL_NAMESPACE
24
{
25
26
class
DtEntityElement;
27
class
DtVrlinkConnection;
28
class
DtVrlinkEntityStateListener
;
29
class
DtVrlinkRadioCommLineListener;
30
34
class
DL_DLL_IGCONVRLINK
DtVrlinkRadioCommLineVisualizer
35
:
public
DtRadioCommLineVisualizer
36
{
37
public
:
38
45
DtVrlinkRadioCommLineVisualizer
(
DtBaseConnection
& sim,
46
DtStateListener
& communicationListener,
int
modelSet );
47
50
virtual
~
DtVrlinkRadioCommLineVisualizer
();
51
53
virtual
void
setLifetime(
float
);
54
55
protected
:
56
60
virtual
void
createModelAgents();
61
63
virtual
void
destroyModelAgents();
64
68
virtual
void
slot_elementCreated(
DtVrlinkEntityStateListener
& listener,
69
DtEntityElement
* elem );
70
74
virtual
void
slot_colorizationChanged();
75
78
virtual
void
getCommLineColor(
float
& r,
float
& g,
float
& b );
79
82
virtual
DtVector
getOffsetForEntityType(
const
DtEntityType& type );
83
85
virtual
void
setVisualizerDefinition(
const
DtVisualizerDefinition
& vDef );
86
87
protected
:
88
92
struct
EntityPair
{
93
95
EntityPair
( DtGlobalObjectDesignator entity1,
96
DtGlobalObjectDesignator entity2 );
97
100
bool
operator < (
const
EntityPair
& other )
const
;
101
102
DtGlobalObjectDesignator
entity1
;
103
DtGlobalObjectDesignator
entity2
;
104
105
};
106
107
protected
:
108
110
typedef
std::set<EntityPair>
PendingCommLinesSet
;
111
112
PendingCommLinesSet
myPendingCommLines
;
113
114
DtVrlinkConnection
&
myVrlConn
;
115
116
DtVrlinkRadioCommLineListener
*
myListener
;
117
118
DtVrlinkEntityStateListener
*
myReceivingEntityListener
;
119
DtVrlinkEntityStateListener
*
mySendingEntityListener
;
120
121
DtUniqueID
myReceiverEntitySceneObjectId
;
122
DtUniqueID
mySenderEntitySceneObjectId
;
123
124
bool
myCustomAnimationRateFlag
;
125
126
float
myAnimationRate
;
127
float
myLifetime
;
128
129
};
130
131
132
typedef
DtStateVisualizerCreatorTemplate<DtVrlinkRadioCommLineVisualizer>
133
DtVrlinkRadioCommLineVisualizerCreator
;
134
}
135
}
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
)