VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCigi
DtLosResponder.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2009 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: DtLosResponder.h,v $ $Revision: 1.1 $ $State: Exp $
7
*********************************************************************/
8
12
13
#ifndef DtLosResponder_H_
14
#define DtLosResponder_H_
15
16
#include <
vrvCigi/vrvCigi.h
>
17
#include <
vrvCore/DtUniqueID.h
>
18
19
#include <matrix/geodCoord.h>
20
21
#include <boost/signal.hpp>
22
23
class
CigiLosSegReqV3_2;
24
class
CigiLosVectReqV3_2;
25
26
namespace
makVrv
27
{
28
class
DtCigiConnection;
29
34
class
DT_DLL_VRVCIGI
DtLosResponder
35
{
36
public
:
37
struct
LosData
38
{
39
int
numberOfFramesBeforeSending
;
40
int
lastFrameSent
;
41
DtUniqueID
sourceEntity
;
42
DtVector
sourcePoint
;
43
DtUniqueID
destEntity
;
44
DtVector
destPoint
;
45
};
46
48
DtLosResponder
(
DtCigiConnection
& connection);
49
51
virtual
~
DtLosResponder
();
52
54
virtual
void
generateLosResponse(
int
losId,
DtUniqueID
entityId,
55
bool
visible,
double
range,
int
responseCount,
int
hostFrame);
56
59
virtual
void
processLosRequests();
60
62
boost::signal<void (DtUniqueID, const DtVector&, DtUniqueID, const DtVector&, int, int)>
63
signal_losSegRequested
;
64
65
protected
:
67
virtual
void
processLosSegmentRequest(
const
CigiLosSegReqV3_2& losSegReq);
68
70
virtual
void
processLosVectorRequest(CigiLosVectReqV3_2& losVecReq);
71
73
virtual
void
setDatabaseCoordinateFromGeodetic(
const
DtGeodeticCoord& from,
74
DtVector& to);
75
77
virtual
void
addPeriodicLosRequest(
DtUniqueID
sourceEntityId,
const
DtVector& sourcePoint,
78
DtUniqueID
destEntityId,
const
DtVector& destPoint,
unsigned
int
updatePeriod,
79
int
losId);
80
82
virtual
void
sendLosRequest(
DtUniqueID
sourceId,
const
DtVector& sourcePoint,
83
DtUniqueID
destId,
const
DtVector& destPoint,
int
losId);
84
85
86
protected
:
87
DtCigiConnection
&
myConnection
;
88
std::map<int, LosData>
myLosIdToDataMap
;
89
};
90
}
91
92
#endif
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)