VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reflectedLaserLightDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2025 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
15 #include <vl/globalObjectDesignator.h>
16 #include <vl/reflectedObjectDIS.h>
17 #include <vl/objectIdHashKey.h>
18 #include <vlutil/vlMachineTypes.h>
19 
20 class DtExerciseConn;
21 
25 class DtAimableSystemPdu;
26 
29  DtReflectedLaserLight* obj, void* userData);
30 
33 {
34 public:
35 
37  typedef DtLaserLightStateRepository* (*DtStateRepCreator)();
38 
39 public:
40 
42  DtReflectedLaserLight(DtExerciseConn* conn,
43  const DtEntityIdentifier& id);
44 
46  virtual ~DtReflectedLaserLight() override;
47 
48 private:
51 
53  DtReflectedLaserLight& operator=(const DtReflectedLaserLight& orig);
54 public:
55 
58  virtual DtLaserLightStateRepository* laserLightStateRep() const;
59 
61  virtual DtLaserLightStateRepository* llsr() const;
62 
66  virtual DtStateRepository *stateRep() const override;
67 
70  virtual DtLaserLightDecoder* decoder();
71 
73  virtual const DtObjectId& id() const;
74 
77  virtual const DtGlobalObjectDesignator &globalId() const override;
78 
80  virtual DtReflectedLaserLight* next() const;
81  virtual DtReflectedLaserLight* prev() const;
82 
84  virtual DtReflectedLaserLight* wrapNext() const;
85  virtual DtReflectedLaserLight* wrapPrev() const;
86 
88  virtual void addPostUpdateCallback(
89  DtLaserLightCallbackFunction cb, void* userData);
90  virtual void removePostUpdateCallback(
91  DtLaserLightCallbackFunction cb, void* userData);
92 
94  virtual void setHashKey(const DtString& uniqueVal);
95 
98  virtual const DtBaseHashKey &hashKey() const override;
99 
101  virtual DtString idString() const override;
102 
103 
105  virtual void processStateMessage(const DtStateMsg &msg) override;
106 
109  virtual void processLaserLightState(const DtAimableSystemPdu& pdu);
110 
111 public:
112 
114  static void setStateRepCreator(DtStateRepCreator creator);
115  static DtStateRepCreator stateRepCreator(void);
116 
117 protected:
118 
119  static DtStateRepCreator theStateRepCreator;
120  DtStringHashKey myHashKey;
121  DtEntityIdentifier myId;
124 };
125 
126 #endif // DtDIS
Instances of DtAimableSystemPdu are used for DIS network packets which encode the DtAimableSystemStat...
Definition: aimableSystemPduDIS.h:31
static DtStateRepCreator theStateRepCreator
The function called to create state repositories.
Definition: reflectedLaserLightDIS.h:119
Instances of DtReflectedLaserLight are used to represent a simulated HLAobjectRoot.EmbeddedSystem.AimableSystem.LaserLight object reflected across a network.
Definition: reflectedLaserLightDIS.h:32
void(* DtLaserLightCallbackFunction)(DtReflectedLaserLight *obj, void *userData)
Definition: reflectedLaserLightDIS.h:28
Instances of DtLaserLightDecoder encode data from DtLaserLightStateRepository objects to the net stru...
Definition: laserLightDecoderDIS.h:25
DtLaserLightDecoder * myDecoder
Definition: reflectedLaserLightDIS.h:123
DtLaserLightStateRepository * myStateRep
Definition: reflectedLaserLightDIS.h:122
DtStringHashKey myHashKey
Definition: reflectedLaserLightDIS.h:120
DtEntityIdentifier myId
Definition: reflectedLaserLightDIS.h:121
Instances of DtLaserLightStateRepository are used to store state data for HLAobjectRoot.EmbeddedSystem.AimableSystem.LaserLight objects.
Definition: laserLightStateRepository.h:19
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)