VR-Forces Development_Version 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 
25 
30 
33 
36 
37 #include <vrvCore/DtEntityState.h>
41 
42 #include <vlpi/entityType.h>
43 #include <matrix/vlVector.h>
44 
45 namespace makVrv
46 {
47  class DtVrlinkElement;
48  class DtEmbarkationUpdaterAgent;
49 
50  namespace DT_PROTOCOL_NAMESPACE
51  {
52  class DtEntitySimDataProcessor;
53  class DtAggregateElement;
54  class DtVrlinkTacticalGraphicStateListener;
56  }
57 }
58 
59 namespace makVrf
60 {
61  namespace VRF_PROTOCOL_NAMESPACE
62  {
64  {
65  public:
66  static DtAggregateStateInterceptorCreator& instance(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection& sim);
67 
70 
72 
74  };
75 
78  {
79  public:
80 
82  makVrv::DtStateListener& listener, int modelSet);
83 
86 
87  protected:
88 
89  virtual void modelDefinitionCreated(const std::string&);
90 
92  virtual void forceSet(int);
93  };
94 
97 
100  {
101  public:
103  makVrv::DtStateListener& listener, int modelSet);
104 
107 
108  protected:
109  virtual void initialize();
110  virtual bool hide(int i);
111  };
112 
115 
118  {
119  public:
121 
124 
125  protected:
126  virtual void postUpdate();
127  };
128 
131  {
132  public:
134  : DtVrlinkTacticalGraphicStateListener(connection, id),
136 
139 
140  protected:
141  virtual void postUpdate(DtReflectedControlObject* cObj);
142  };
143 
145  {
146  public:
147 
151 
154 
155  #ifdef DtHLA
156 
157  //functionality.
158  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityStateListener* create(DtHlaObject* object);
159  #endif
160 
161  #ifdef DtDIS
162 
163 
164  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityStateListener* create(const DtEntityIdentifier& id,
165  const DtEntityType& type);
166  #endif
167 
170  };
171 
172 
175  {
176  public:
178 
181  };
182 
184  {
185  public:
186 
190 
193 
194  #ifdef DtHLA
195 
196  //functionality.
197  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateStateListener* create(DtHlaObject* object);
198  #endif
199 
200  #ifdef DtDIS
201 
202 
203  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateStateListener* create(const DtEntityIdentifier& id,
204  const DtEntityType& type);
205  #endif
206 
209  };
210 
212  {
213  public:
215 
218 
220 
222  };
223 
225  {
226  public:
227 
230 
232 
233  #if DtHLA
235  #endif
236 
237  protected:
239  };
240 
243  {
244  public:
245 
248 
250 
251  #if DtHLA
253  #endif
254 
255  protected:
257  };
258 
262  {
263  public:
264 
267  makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection& c) : DtVrlinkTacticalGraphicStateListenerCreator(c) {};
268 
271 
272  #ifdef DtHLA
273 
274  //functionality.
276  {
277  return new DtVrfVrlinkTacticalGraphicStateListener(mySim, mySim.sceneInterface().createNewUniqueId());
278  }
279  #endif
280 
281  #if DtDIS
282 
283 
285  const DtEntityIdentifier& id, const DtEntityType& type)
286  {
287  return new DtVrfVrlinkTacticalGraphicStateListener(mySim, mySim.sceneInterface().createNewUniqueId());
288  }
289  #endif
290  };
291 
293  {
294  public:
296 
297  #if DtHLA
299  const DtDDMRegionSet& regionsToUse);
300  #endif
301 
303 #if DtHLA
304 
305 
306 
307  virtual DtReflectedEntity* newReflectedObject(DtHlaObject* obj) const;
308 
312  virtual void removeAndDelete(DtReflectedObject* entity, char* msg = NULL);
313  virtual void resolveOrphans();
314 #endif
315 
316  #if DtDIS
317 
318  //Hacked class which allows setting the esr of an newly created reflected
319  //Entity
321  {
322  public:
323  DtVrfVrvReflectedEntity(DtExerciseConn* conn,
324  const DtEntityIdentifier& id,
325  const DtEntityType& type,
327  : DtReflectedExtEntity(conn,id,type)
328  {
329  delete myEntityStateRep;
330  myEntityStateRep = esr;
331  myEntityStateRep->setClock(conn->clock());
332  myEntityStateRep->setGlobalId(id);
333  myEntityStateRep->setDisObjectManager( conn->disObjectManager() );
334  }
335 
336  };
337 
342  virtual DtReflectedEntity* newReflectedEntity(
343  const DtEntityIdentifier& id,
344  const DtEntityType& type) const;
345 
348  virtual void removeAndDelete(DtReflectedObject* obj, char* msg = NULL);
349  #endif
350 
351  //Whenever an entity is added.
352  virtual void objectAdded(DtReflectedObject* ent);
353 
354  protected:
355 
356  typedef std::map<DtReflectedExtEntity*,makVrv::DtEntityStateListener*>
358 
359 
362  };
363 
369  {
370  public:
373  makVrv::DtStateListener& listener, int modelSet);
374 
377 
379  virtual void createModelAgents();
380 
381  protected:
382  virtual bool hasPhysicalFootprint();
383  };
384 
387 
393  {
394  public:
397  makVrv::DtStateListener& listener, int modelSet);
398 
401 
403  virtual void createModelAgents();
404 
405  protected:
406  virtual bool hasPhysicalFootprint();
407  };
408 
411  }
412 }

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)