VR-Forces 4.5 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 
16 
18 
29 
34 
37 
40 
41 #include <vrvCore/DtEntityState.h>
45 
46 #include <vlpi/entityType.h>
47 #include <matrix/vlVector.h>
48 
49 namespace makVrv
50 {
51  class DtVrlinkElement;
52  class DtEmbarkationUpdaterAgent;
53 
54  namespace DT_PROTOCOL_NAMESPACE
55  {
56  class DtEntitySimDataProcessor;
57  class DtAggregateElement;
58  class DtVrlinkTacticalGraphicStateListener;
60  }
61 }
62 
63 namespace makVrf
64 {
65  namespace VRF_PROTOCOL_NAMESPACE
66  {
68  {
69  public:
70  static DtAggregateStateInterceptorCreator& instance(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection& sim);
71 
74 
76 
78  };
79 
82  {
83  public:
84 
86  makVrv::DtStateListener& listener, int modelSet);
87 
90 
91  protected:
92 
93  virtual void modelDefinitionCreated(const std::string&);
94 
96  virtual void forceSet(int);
97  };
98 
101 
104  {
105  public:
107  makVrv::DtStateListener& listener, int modelSet);
108 
111 
112  protected:
113  virtual void initialize();
114  virtual bool hide(int i);
115  };
116 
119 
122  {
123  public:
125 
128 
129  protected:
130  virtual void postUpdate();
131  };
132 
135  {
136  public:
138  : DtVrlinkTacticalGraphicStateListener(connection, id),
140 
143 
144  protected:
145  virtual void postUpdate(DtReflectedControlObject* cObj);
146  };
147 
149  {
150  public:
151 
155 
158 
159  #ifdef DtHLA
160 
161  //functionality.
162  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityStateListener* create(DtHlaObject* object);
163  #endif
164 
165  #ifdef DtDIS
166 
167 
168  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityStateListener* create(const DtEntityIdentifier& id,
169  const DtEntityType& type);
170  #endif
171 
174  };
175 
176 
179  {
180  public:
182 
185  };
186 
188  {
189  public:
190 
194 
197 
198  #ifdef DtHLA
199 
200  //functionality.
201  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateStateListener* create(DtHlaObject* object);
202  #endif
203 
204  #ifdef DtDIS
205 
206 
207  virtual makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateStateListener* create(const DtEntityIdentifier& id,
208  const DtEntityType& type);
209  #endif
210 
213  };
214 
217  {
218  public:
219 
222 
224 
225  #if DtHLA
227  #endif
228 
229  protected:
231  };
232 
236  {
237  public:
238 
241  makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection& c) : DtVrlinkTacticalGraphicStateListenerCreator(c) {};
242 
245 
246  #ifdef DtHLA
247 
248  //functionality.
250  {
251  return new DtVrfVrlinkTacticalGraphicStateListener(mySim, mySim.sceneInterface().createNewUniqueId());
252  }
253  #endif
254 
255  #if DtDIS
256 
257 
259  const DtEntityIdentifier& id, const DtEntityType& type)
260  {
261  return new DtVrfVrlinkTacticalGraphicStateListener(mySim, mySim.sceneInterface().createNewUniqueId());
262  }
263  #endif
264  };
265 
274  {
275  public:
277 
278  #if DtHLA
280  const DtDDMRegionSet& regionsToUse);
281  #endif
282 
284 #if DtHLA
285 
286 
287 
288  virtual DtReflectedEntity* newReflectedObject(DtHlaObject* obj) const;
289 
293  virtual void removeAndDelete(DtReflectedObject* entity, char* msg = NULL);
294  virtual void resolveOrphans();
295 #endif
296 
297  #if DtDIS
298 
299  //Hacked class which allows setting the esr of an newly created reflected
300  //Entity
302  {
303  public:
304  DtVrfVrvReflectedEntity(DtExerciseConn* conn,
305  const DtEntityIdentifier& id,
306  const DtEntityType& type,
308  : DtReflectedExtEntity(conn,id,type)
309  {
310  delete myEntityStateRep;
311  myEntityStateRep = esr;
312  myEntityStateRep->setClock(conn->clock());
313  myEntityStateRep->setGlobalId(id);
314  myEntityStateRep->setDisObjectManager( conn->disObjectManager() );
315  }
316 
317  };
318 
323  virtual DtReflectedEntity* newReflectedEntity(
324  const DtEntityIdentifier& id,
325  const DtEntityType& type) const;
326 
329  virtual void removeAndDelete(DtReflectedObject* obj, char* msg = NULL);
330  #endif
331 
332  //Whenever an entity is added.
333  virtual void objectAdded(DtReflectedObject* ent);
334 
335  protected:
336 
337  typedef std::map<DtReflectedExtEntity*,makVrv::DtEntityStateListener*>
339 
340 
343  };
344 
350  {
351  public:
354  makVrv::DtStateListener& listener, int modelSet);
355 
358 
360  virtual void createModelAgents();
361 
362  protected:
363  virtual bool hasPhysicalFootprint();
364  };
365 
368 
374  {
375  public:
378  makVrv::DtStateListener& listener, int modelSet);
379 
382 
384  virtual void createModelAgents();
385 
386  protected:
387  virtual bool hasPhysicalFootprint();
388  };
389 
392 
394  {
395  public:
397 
400 
402 
404  };
405  }
406 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)