VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfVrvExtensions.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
23 
30 
31 #include <vrvCore/DtEntityState.h>
33 #include <vrfExtObjects/reflectedExtEntity.h>
34 #include <vrfExtObjects/reflectedExtEntityList.h>
35 
36 #include <vlpi/entityType.h>
37 #include <matrix/vlVector.h>
38 
39 namespace makVrv
40 {
41  class DtVrlinkElement;
42 
43  namespace DT_PROTOCOL_NAMESPACE
44  {
45  class DtEntitySimDataProcessor;
46  class DtAggregateElement;
47  }
48 }
49 
50 namespace makVrf
51 {
52  namespace VRF_PROTOCOL_NAMESPACE
53  {
55  {
56  public:
57  static DtAggregateStateInterceptorCreator& instance(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection& sim);
58 
61 
62  virtual DtAggregateStateRepository* create(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateStateListener* listener);
63 
65  };
66 
69  {
70  public:
71 
73  makVrv::DtStateListener& listener, int modelSet);
74 
77 
78  protected:
79 
80  virtual void modelDefinitionCreated(const std::string&);
81 
83  virtual void forceSet(int);
84  };
85 
88 
91  {
92  public:
94 
97 
98  protected:
99  virtual void postUpdate();
100  };
101 
104  {
105  public:
107  : DtVrlinkTacticalGraphicStateListener(connection, id),
109 
112 
113  protected:
114  virtual void postUpdate(DtReflectedControlObject* cObj);
115  };
116 
118  {
119  public:
120 
124 
127 
128  #ifdef DtHLA
129 
130  //functionality.
131  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityStateListener* create(DtHlaObject* object);
132  #endif
133 
134  #ifdef DtDIS
135 
136 
137  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityStateListener* create(const DtEntityIdentifier& id,
138  const DtEntityType& type);
139  #endif
140 
143  };
144 
145 
148  {
149  public:
151 
154  };
155 
157  {
158  public:
159 
163 
166 
167  #ifdef DtHLA
168 
169  //functionality.
170  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateStateListener* create(DtHlaObject* object);
171  #endif
172 
173  #ifdef DtDIS
174 
175 
176  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateStateListener* create(const DtEntityIdentifier& id,
177  const DtEntityType& type);
178  #endif
179 
182  };
183 
185  {
186  public:
188 
191 
193 
195  };
196 
198  {
199  public:
200 
203 
204  virtual DtReflectedEntityList* create(makVrv::DT_PROTOCOL_NAMESPACE::DtEntityExistenceListener&);
205 
206  #if DtHLA
207  virtual DtReflectedEntityList* create(makVrv::DT_PROTOCOL_NAMESPACE::DtEntityExistenceListener&, DtDDMRegionSet&);
208  #endif
209 
210  protected:
212  };
213 
216  {
217  public:
218 
221 
223 
224  #if DtHLA
226  #endif
227 
228  protected:
230  };
231 
235  {
236  public:
237 
240  makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection& c) : DtVrlinkTacticalGraphicStateListenerCreator(c) {};
241 
244 
245  #ifdef DtHLA
246 
247  //functionality.
249  {
250  return new DtVrfVrlinkTacticalGraphicStateListener(mySim, mySim.sceneInterface().createNewUniqueId());
251  }
252  #endif
253 
254  #if DtDIS
255 
256 
258  const DtEntityIdentifier& id, const DtEntityType& type)
259  {
260  return new DtVrfVrlinkTacticalGraphicStateListener(mySim, mySim.sceneInterface().createNewUniqueId());
261  }
262  #endif
263  };
264 
266  {
267  public:
269 
270  #if DtHLA
272  const DtDDMRegionSet& regionsToUse);
273  #endif
274 
276 #if DtHLA
277 
278 
279 
280  virtual DtReflectedEntity* newReflectedObject(DtHlaObject* obj) const;
281 
285  virtual void removeAndDelete(DtReflectedObject* entity, char* msg = NULL);
286  virtual void resolveOrphans();
287 #endif
288 
289  #if DtDIS
290 
291  //Hacked class which allows setting the esr of an newly created reflected
292  //Entity
294  {
295  public:
296  DtVrfVrvReflectedEntity(DtExerciseConn* conn,
297  const DtEntityIdentifier& id,
298  const DtEntityType& type,
300  : DtReflectedExtEntity(conn,id,type)
301  {
302  delete myEntityStateRep;
303  myEntityStateRep = esr;
304  myEntityStateRep->setClock(conn->clock());
305  myEntityStateRep->setGlobalId(id);
306  myEntityStateRep->setDisObjectManager( conn->disObjectManager() );
307  }
308 
309  };
310 
315  virtual DtReflectedEntity* newReflectedEntity(
316  const DtEntityIdentifier& id,
317  const DtEntityType& type) const;
318 
321  virtual void removeAndDelete(DtReflectedObject* obj, char* msg = NULL);
322  #endif
323 
324  //Whenever an entity is added.
325  virtual void objectAdded(DtReflectedObject* ent);
326 
327  protected:
328 
329  typedef std::map<DtReflectedExtEntity*,makVrv::DtEntityStateListener*>
331 
332 
335  };
336 
342  {
343  public:
346  makVrv::DtStateListener& listener, int modelSet);
347 
350 
352  virtual void createModelAgents();
353 
354  protected:
355  virtual bool hasPhysicalFootprint();
356  };
357 
360 
366  {
367  public:
370  makVrv::DtStateListener& listener, int modelSet);
371 
374 
376  virtual void createModelAgents();
377 
378  protected:
379  virtual bool hasPhysicalFootprint();
380  };
381 
384  }
385 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)