MAK Data Logger API Documentation for DIS
 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-2025 MAK Technologies, Inc
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.
30  {
31  public:
34 
35  DtGriddedDataPdu* getEncoderPdu() { return &myPdu; }
36 
38  };
39 
43  {
44 
45  public:
46 
47  DT_VIRTUAL_CTR(DtLgrDisGriddedDataPublisher,(const DtGriddedDataPdu& pdu,
48  DtLgrDisSimulationManager& simManager))
49 
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 
~DtLgrGriddedDataEncoder()
Definition: lgrDisGriddedData.h:33
Defines IMPORT/EXPORT macros for lgrSim library.
#define DT_DLL_LGRSIM
Definition: lgrSim.h:21
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
The DIS Simulation manager manages the DIS simulation settings.
Definition: lgrDisSimManager.h:45
Contains MAKLogger::DtLgrPublisherInterface class.
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
DtCLONE_ENCODER(DtLgrGriddedDataEncoder)
DtGriddedDataPublisher * myPublisher
Definition: lgrDisGriddedData.h:68
Responsible for defining the interface that Object publishers must have.
Definition: lgrPublisherInterface.h:39
DtLgrGriddedDataEncoder()
Definition: lgrDisGriddedData.h:32
Definition: lgrDisGriddedData.h:29
Dis Gridded Data Publisher.
Definition: lgrDisGriddedData.h:42
Absolute Time, a particular measured instance in time, could be thought of as a set of relative times...
Definition: absoluteTime.h:82
DtGriddedDataPdu * getEncoderPdu()
Definition: lgrDisGriddedData.h:35

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)