VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCigi
DtLosResponder.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2014 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
9
10
#ifndef DtLosResponder_H_
11
#define DtLosResponder_H_
12
13
#include <
vrvCigi/vrvCigi.h
>
14
#include <
vrvCore/DtUniqueID.h
>
15
16
#include <matrix/geodeticCoord.h>
17
18
#include <boost/signal.hpp>
19
20
class
CigiLosSegReqV3_2;
21
class
CigiLosVectReqV3_2;
22
23
namespace
makVrv
24
{
25
class
DtCigiConnection;
26
31
class
DT_DLL_VRVCIGI
DtLosResponder
32
{
33
public
:
34
struct
LosData
35
{
36
int
numberOfFramesBeforeSending
;
37
int
lastFrameSent
;
38
DtUniqueID
sourceEntity
;
39
DtVector
sourcePoint
;
40
DtUniqueID
destEntity
;
41
DtVector
destPoint
;
42
};
43
45
DtLosResponder
(
DtCigiConnection
& connection);
46
48
virtual
~
DtLosResponder
();
49
51
virtual
void
generateLosResponse(
int
losId,
DtUniqueID
entityId,
52
bool
visible,
double
range,
int
responseCount,
int
hostFrame);
53
56
virtual
void
processLosRequests();
57
59
boost::signal<void (DtUniqueID, const DtVector&, DtUniqueID, const DtVector&, int, int)>
60
signal_losSegRequested
;
61
62
protected
:
64
virtual
void
processLosSegmentRequest(
const
CigiLosSegReqV3_2& losSegReq);
65
67
virtual
void
processLosVectorRequest(CigiLosVectReqV3_2& losVecReq);
68
70
virtual
void
setDatabaseCoordinateFromGeodetic(
const
DtGeodeticCoord& from,
71
DtVector
& to);
72
74
virtual
void
addPeriodicLosRequest(
DtUniqueID
sourceEntityId,
const
DtVector
& sourcePoint,
75
DtUniqueID
destEntityId,
const
DtVector
& destPoint,
unsigned
int
updatePeriod,
76
int
losId);
77
79
virtual
void
sendLosRequest(
DtUniqueID
sourceId,
const
DtVector
& sourcePoint,
80
DtUniqueID
destId,
const
DtVector
& destPoint,
int
losId);
81
82
83
protected
:
84
DtCigiConnection
&
myConnection
;
85
std::map<int, LosData>
myLosIdToDataMap
;
86
};
87
}
88
89
#endif
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)