MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrDisGriddedData.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2016 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 
15 #include <lgrSim/lgrSim.h>
16 #include "lgrPublisherInterface.h"
18 #include <vl/griddedDataEncoderDIS.h>
19 #include <vl/stateEncoder.h>
20 
21 class DtGriddedDataPublisher;
22 class DtGriddedDataPdu;
23 
24 namespace MAKLogger
25 {
26  class DtLgrDisSimulationManager;
27 
28  //VR-Link workaround - derived encoder class to gain access to protected "myPdu" member variable.
29  class DtLgrGriddedDataEncoder : public DtGriddedDataEncoder
30  {
31  public:
32  DtLgrGriddedDataEncoder() {};
33  ~DtLgrGriddedDataEncoder() {};
34 
35  DtGriddedDataPdu* getEncoderPdu() { return &myPdu; }
36 
37  DtCLONE_ENCODER(DtLgrGriddedDataEncoder);
38  };
39 
42  class DT_DLL_LGRSIM DtLgrDisGriddedDataPublisher : public DtLgrPublisherInterface
43  {
44 
45  public:
46 
47  DT_VIRTUAL_CTR(DtLgrDisGriddedDataPublisher,(const DtGriddedDataPdu& pdu,
48  DtLgrDisSimulationManager& simManager))
49 
50  virtual ~DtLgrDisGriddedDataPublisher();
51 
52  virtual void update(const DtPdu& pdu, const DtAbsoluteTime& updateTime, bool isTimeFromPast,
53  bool isStateUpdate, double scaling, bool isStatic, bool sendFlag);
54  virtual void sendUpdateAtScaleChangePoint(double oldScale, double newScale,
55  bool wasStatic, bool isStatic);
56  virtual void tick(double scaling, bool isStatic);
57 
58  protected:
59 
61  virtual const DtStateMsg& lastState() const;
62 
64  virtual void tickVrlPublisher();
65 
66  protected:
67 
68  DtGriddedDataPublisher* myPublisher;
69  };
70 
71 }
72 
73 #endif
74 

Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)