VR-Forces Development_Version 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 #include <vlutil/vlPerformanceStats.h>
22 
23 namespace makVrv
24 {
25  namespace DT_PROTOCOL_NAMESPACE
26  {
27  class DtStateListenerInterface;
28  }
29 }
30 
31 namespace makVrf
32 {
33  namespace VRF_PROTOCOL_NAMESPACE
34  {
37  {
38  public:
39 
42 
45 
48  int sessionId, int messageVersion);
49 
52 
54  void postDrainInput();
55 
57  void setObjectUpdateRate(makVrv::DtUniqueID uniqueId, makVrv::DtSimEntryUpdater::UpdateRate rate);
58 
60  void forceObjectUpdate(makVrv::DtUniqueID uniqueId);
61 
64 
67 
70  makVrv::DtSimStateObjectAgent& objectDriver);
71 
72  virtual void setupState(
74 
75  boost::signal<void (makVrv::DtUniqueID, DtVrfObjectDataState&) > signal_stateUpdated;
76 
77  protected:
78 
80  static void postDrainInput(void* usr);
81 
82  protected:
83 
84  //A Listener and a driver which will be updated with it.
86  {
87  public:
88 
90  DtVrfObjectDataStateObjectAgent& driver,
92 
94 
96 
97  //Are the updaters equal
98  bool operator==(const VrfEnvironmentObjectDataStateUpdater& orig) const;
99 
101  void update(double timeT);
102 
103  protected:
104 
106  DtVrfObjectDataStateObjectAgent* myObjectAgent;
108  };
109 
110  typedef std::vector<makVrv::DtUniqueID> EnvironmentIdList;
111 
113  {
115  DtVrfObjectDataStateObjectAgent* myAgent;
117  };
118 
119  typedef std::map<makVrv::DtUniqueID,EnvironmentSimDataInstance > EnvironmentAgentMap;
120 
122  typedef std::map<makVrv::DtSimEntryUpdater::UpdateRate,EnvironmentUpdaterGroup>
124 
125  protected:
126 
128 
131  DtTimedSection myTimer;
132  makVrv::DtSimEntryObjectAgent* mySimEntryAgent;
133 
137 
140 
141  typedef std::map<makVrv::DtUniqueID, DtVrfObjectDataState> StateMap;
143  };
144  }
145 }

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)