VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aimableSystemPduDIS.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 
17 #include <vlutil/vlMachineTypes.h>
18 #include <vl/exerciseConn.h>
19 #include <vl/stateMsg.h>
20 
21 class DtAimableSystemPdu;
22 
25 typedef void (*AimableSystemCb)(DtAimableSystemPdu* pdu, void* usr);
26 
32 {
33 public:
34 
36  DtAimableSystemPdu(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37  DtAimableSystemPdu(const DtNetPacket* initial,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER,
39  DtPduFactory* pduFactory = 0);
40 
43 
45  virtual ~DtAimableSystemPdu() override;
46 
48  DtAimableSystemPdu& operator=(const DtAimableSystemPdu& orig);
49 
50 public:
51 
52  // Embedded System methods:
53 
55  virtual void setRelativeLocation(const DtVector32& val);
56  virtual const DtVector32 relativeLocation() const;
57 
59  virtual void setHost(const DtGlobalObjectDesignator& val);
60  virtual DtGlobalObjectDesignator host() const;
61 
62  // Aimable System methods:
63 
65  virtual void setId(const DtString& val);
66  virtual const DtString id() const;
67 
69  virtual void setAimableSystemType(DtAimableSystemType val);
70  virtual DtAimableSystemType aimableSystemType() const;
71 
73  virtual void setTrackingMode(DtAimableSystemTrackingMode val);
74  virtual DtAimableSystemTrackingMode trackingMode() const;
75 
77  virtual void setRelativeOrientation(const DtTaitBryan& val);
78  virtual const DtTaitBryan relativeOrientation() const;
79 
81  virtual void setTargetedEntity(const DtGlobalObjectDesignator& val);
82  virtual DtGlobalObjectDesignator targetedEntity() const;
83 
85  virtual void setTargetedLocation(const DtVector& val);
86  virtual const DtVector targetedLocation() const;
87 
89  virtual void setTargetRelativeLocation(const DtVector32&);
90  virtual const DtVector32 targetRelativeLocation() const;
91 
93  virtual void setPowerOn(bool val);
94  virtual bool powerOn() const;
95 
97  virtual void setFinalUpdate(bool val);
98 
100  virtual bool finalUpdate() const;
101 
105  virtual DtU8 version() const;
106 
107  // SFOV Methods:
108 
110  virtual void setRadius(DtFloat64 val);
111  virtual DtFloat64 radius() const;
112 
114  virtual void setMinimumAzimuthAngle(DtFloat64 val);
115  virtual DtFloat64 minimumAzimuthAngle() const;
116 
118  virtual void setMaximumAzimuthAngle(DtFloat64 val);
119  virtual DtFloat64 maximumAzimuthAngle() const;
120 
122  virtual void setMinimumElevationAngle(DtFloat64 val);
123  virtual DtFloat64 minimumElevationAngle() const;
124 
126  virtual void setMaximumElevationAngle(DtFloat64 val);
127  virtual DtFloat64 maximumElevationAngle() const;
128 
130  virtual void setMaximumZoomLevel(DtFloat64 val);
131  virtual DtFloat64 maximumZoomLevel() const;
132 
134  virtual void setZoomLevel(DtFloat64 val);
135  virtual DtFloat64 zoomLevel() const;
136 
138  virtual void setXHalfAngle(DtFloat64 val);
139  virtual DtFloat64 xHalfAngle() const;
140 
142  virtual void setYHalfAngle(DtFloat64 val);
143  virtual DtFloat64 yHalfAngle() const;
144 
147  virtual void setColor(DtU32 val);
148  virtual DtU32 color() const;
149 
150  // Search Light Methods:
151 
153  virtual void setRange(DtFloat32 val);
154  virtual DtFloat32 range() const;
155 
157  virtual void setLightType(DtU32 val);
158  virtual DtU32 lightType() const;
159 
161  virtual void setIntensity(DtFloat32 val);
162  virtual DtFloat32 intensity() const;
163 
165  virtual void setConeAngle(DtFloat32 val);
166  virtual DtFloat32 coneAngle() const;
167 
168  // Laser Light Methods:
169 
171  virtual void setWavelength(DtFloat32 val);
172  virtual DtFloat32 wavelength() const;
173 
175  virtual void setSpread(DtFloat32 val);
176  virtual DtFloat32 spread() const;
177 
179  virtual void setSignal(DtU32 val);
180  virtual DtU32 signal() const;
181 
182 public:
183 
186  static DtPdu* create(const DtNetPacket* initial,
187  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER,
188  DtPduFactory* pduFactory = 0);
189 
192  static void addCallback(DtExerciseConn* conn,
193  AimableSystemCb cb, void* usr);
194  static void removeCallback(DtExerciseConn* conn,
195  AimableSystemCb cb, void* usr);
196 
197  // Returns an entity identifier for this PDU class which
198  // can be used by reflected objects and reflected object lists.
199  DtEntityIdentifier pduEntityIdentifier() const;
200 
201  // Returns a unique Key for this PDU class to be used with
202  // reflected objects and reflected lists. Because the Entity ID
203  // may not be unique, this should be a combination of the minimal
204  // number of attributes required for uniqueness.
205  DtString uniqueKey() const;
206 
207 protected:
208 
209  // Returns the number of bytes in the fixed length portion of this PDU
210  // This is the initial size of the PDU before any variable datums are added
211  virtual unsigned int fixedBytesSize() const;
212 
213  // A pointer to the first byte of variable datums. If there are no variable
214  // datums this points to the first byte out-of-bounds. This address should
215  // only be used if you know the PDU has been resized correctly.
216  virtual char* firstVarDatumStart() const;
217 
218  static DtPduKind internalGetPduKindImpl()
219  {
220  return DtAimableSystemPduKind;
221  }
222 
223  virtual DtPduKind internalGetPduKind() const override
224  {
225  return internalGetPduKindImpl();
226  }
227 
228 };
229 
230 #endif // DtDIS
Instances of DtAimableSystemPdu are used for DIS network packets which encode the DtAimableSystemStat...
Definition: aimableSystemPduDIS.h:31
DtAimableSystemTrackingMode
Definition: aimableSystemEnums.h:49
DtAimableSystemType
Definition: aimableSystemEnums.h:11
void(* AimableSystemCb)(DtAimableSystemPdu *pdu, void *usr)
DtAimableSystemPdu callback function signature.
Definition: aimableSystemPduDIS.h:25
float DtFloat32
Definition: vrvControlStructTypes.h:35
double DtFloat64
Definition: vrvControlStructTypes.h:36
const DtPduKind DtAimableSystemPduKind
Definition: disEnumsExtensions.h:125
static DtPduKind internalGetPduKindImpl()
Definition: aimableSystemPduDIS.h:218
virtual DtPduKind internalGetPduKind() const override
Definition: aimableSystemPduDIS.h:223
#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)