MAK Data Logger API Documentation for DIS
ddmSimOutput.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #if DtHLA
10 
11 #pragma once
12 
13 #include <hlaSimOutput.h>
14 #include <vl/geodeticRegion.h>
15 
16 #include "sampleDdm.h"
17 
18 
19 namespace MAKLogger
20 {
21 
22  class DT_DLL_SAMPLE_DDM DtLgrHlaDdmSimOutput : public DtLgrHlaSimOutput
23  {
24  public:
25 
26  // Constructor
27  DtLgrHlaDdmSimOutput(DtLgrHlaSimulationManager& manager);
28 
29  // Destructor
30  virtual ~DtLgrHlaDdmSimOutput();
31 
34  virtual unsigned int getInteractionRegionSetFromData(const DtConstLgrHlaMessage& info,
35  const DtInteraction* interaction, DtDDMRegionSet& regionSet);
36 
43  virtual bool getPublisherRegionSetFromData(const DtPacket& info,
44  DtDDMRegionSet& regionSet);
45 
47  virtual void initializeHandles();
48 
49  public:
50 
51  // Creator
52  static DtLgrHlaSimOutput* create(DtLgrHlaSimulationManager& manager);
53 
57  static void setRegionBounds(DtDDMRegionSP region, DtGeodeticCoord& geodeticLocation);
58 
59  protected:
60 
62  virtual DtDDMRegionSP createRegion();
63 
65  virtual void decodeLocationFromVector(const char* const netData, DtGeodeticCoord& geodeticLocation);
66 
68  virtual void decodeLocationFromSpatial(const char* const netData, DtGeodeticCoord& geodeticLocation);
69 
73  virtual bool getLocation(const DtLgrHandleValueReferenceMap* handleValueMap,
74  const DtLgrHlaHandle& handleToFind, DtGeodeticCoord& geodeticLocation, bool decodeAsVector=true);
75 
76  protected:
77 
78  DtLgrHlaHandle myBaseEntityClassHandle;
79  DtLgrHlaHandle myEntityLocationHandle;
80  DtLgrHlaHandle myWeaponFireClassHandle;
81  DtLgrHlaHandle myWeaponFireLocationHandle;
82  DtLgrHlaHandle myDetonationClassHandle;
83  DtLgrHlaHandle myDetonationLocationHandle;
84  DtDDMRegionSP myWeaponFireRegion;
85  DtDDMRegionSP myDetonationRegion;
86  long myLatitude;
87  long myLongitude;
88 
89  };
90 
91 }
92 
93 #endif // DtHLA

Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)