VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtHatHotResponder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCigi/vrvCigi.h>
13 #include <vrvCore/DtUniqueID.h>
15 
16 #include <map>
17 
18 #include <matrix/vlVector.h>
19 
20 #include <boost/signal.hpp>
21 
22 class CigiHatHotReqV3_2;
23 
24 namespace makVrv
25 {
26  class DtCigiEntityVisualizer;
27  class DtCigiConnection;
28 
34  {
35  public:
36  struct HatHotData
37  {
42  bool hatRequest;
43  };
44 
46 
48  virtual ~DtHatHotResponder();
49 
51  virtual void addPeriodicHatHotRequest(DtUniqueID entityId,
52  const DtVector& loc, int frequency, int hatHotId, bool hatRequest);
53 
55  virtual void processHatHotRequests();
56 
58  boost::signal<void (DtUniqueID, const DtVector&, unsigned int, bool, unsigned int)>
60 
61  protected:
64 
67  void processHatHotRequest(const CigiHatHotReqV3_2& hatHotReq);
68 
71  virtual void sendHatHotRequest(DtUniqueID entityId, const DtVector& loc,
72  int hatHotId, bool hatRequest);
73 
74  protected:
75  std::map<int, HatHotData> myHatHotRequests;
77  };
78 
81  {
82  public:
85 
87  virtual ~DtHatHotResponderCreator();
88 
90  static DtHatHotResponderCreator& instance( DtDe& de );
91 
93  static DtHatHotResponderCreator& instance( DtCigiConnection& con );
94 
96  static void copyInstance(DtCigiConnection& con, DtDe& de);
97 
99  virtual DtHatHotResponder* create( DtCigiConnection& connection ) const;
100  };
101 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)