VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfEnvironmentObjectDataStateProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <vrfGuiCore/DtVrfObjectDataStateObjectAgent.hpp>
15 
20 #include <vrvCore/DtSimEntryObjectAgent.hpp>
21 
22 namespace makVrv
23 {
24  namespace DT_PROTOCOL_NAMESPACE
25  {
26  class DtStateListenerInterface;
27  }
28 }
29 
30 namespace makVrf
31 {
32  namespace VRF_PROTOCOL_NAMESPACE
33  {
36  {
37  public:
38 
41 
44 
47  int sessionId, int messageVersion);
48 
51 
53  void postDrainInput();
54 
56  void setObjectUpdateRate(makVrv::DtUniqueID uniqueId, makVrv::DtSimEntryUpdater::UpdateRate rate);
57 
59  void forceObjectUpdate(makVrv::DtUniqueID uniqueId);
60 
63 
66 
69  makVrv::DtSimStateObjectAgent& objectDriver);
70 
71  boost::signal<void (makVrv::DtUniqueID, DtVrfObjectDataState&) > signal_stateUpdated;
72 
73  protected:
74 
76  static void postDrainInput(void* usr);
77 
78  protected:
79 
80  //A Listener and a driver which will be updated with it.
82  {
83  public:
84 
86  DtVrfObjectDataStateObjectAgent& driver,
88 
90 
92 
93  //Are the updaters equal
94  bool operator==(const VrfEnvironmentObjectDataStateUpdater& orig) const;
95 
97  void update(double timeT);
98 
99  protected:
100 
102  DtVrfObjectDataStateObjectAgent* myObjectAgent;
104  };
105 
106  typedef std::vector<makVrv::DtUniqueID> EnvironmentIdList;
107 
109  {
111  DtVrfObjectDataStateObjectAgent* myAgent;
113  };
114 
115  typedef std::map<makVrv::DtUniqueID,EnvironmentSimDataInstance > EnvironmentAgentMap;
116 
118  typedef std::map<makVrv::DtSimEntryUpdater::UpdateRate,EnvironmentUpdaterGroup>
120 
121  protected:
122 
124 
127  DtTimedSection myTimer;
128  makVrv::DtSimEntryObjectAgent* mySimEntryAgent;
129 
133 
136 
137  typedef std::map<makVrv::DtUniqueID, DtVrfObjectDataState> StateMap;
139  };
140  }
141 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)