VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
32  {
33  public:
34  struct LosData
35  {
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)>
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:
85  std::map<int, LosData> myLosIdToDataMap;
86  };
87 }
88 
89 #endif

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)