MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrDisDesignator.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/designatorEncoderDIS.h>
19 #include <vl/stateEncoder.h>
20 
21 class DtDesignatorPublisher;
22 class DtDesignatorPdu;
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 DtLgrDesignatorEncoder : public DtDesignatorEncoder
30  {
31  public:
32  DtLgrDesignatorEncoder() {};
33  ~DtLgrDesignatorEncoder() {};
34 
35  DtDesignatorPdu* getEncoderPdu() { return &myPdu; }
36 
37  DtCLONE_ENCODER(DtLgrDesignatorEncoder);
38  };
39 
42  class DT_DLL_LGRSIM DtLgrDisDesignatorPublisher : public DtLgrPublisherInterface
43  {
44 
45  public:
46 
47  DT_VIRTUAL_CTR(DtLgrDisDesignatorPublisher, (const DtDesignatorPdu& pdu,
48  DtLgrDisSimulationManager& simManager))
49 
50  virtual ~DtLgrDisDesignatorPublisher();
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  DtDesignatorPublisher* myPublisher;
69  };
70 
71 }
72 
73 #endif
74 
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
Contains MAKLogger::DtLgrPublisherInterface class.
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
class DT_DLL_LGRUTIL DtAbsoluteTime
Definition: absoluteTime.h:22

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)