VR-Vantage 3.1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rfxMmwMessage.h
Go to the documentation of this file.
1 // ******************************************************************************
2 // ** Copyright (c) 2018 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************
5 
9 
10 #pragma once
11 
12 #include "export.h"
13 #include "rfxMessage.h"
15 #include <matrix/vlVector.h>
16 #include <matrix/vlTaitBryan.h>
17 
18 #include <string>
19 
20 namespace makRadarFx
21 {
22 
25 {
26  public:
28  DtMmwRequest();
29  virtual ~DtMmwRequest();
30 
34  virtual void useObserverAsHost();
35 
38  virtual void setOwnshipLocation(DtVector location);
39  virtual DtVector ownshipLocation();
40 
43  virtual void setOwnshipEntityId(const std::string& name);
44  virtual std::string ownshipEntityId();
45 
47  virtual bool isUsingObserverAsHost();
48  virtual bool isUsingEntityAsHost();
49  virtual bool isUsingAbsoluteLocation();
50 
53  virtual void useObserverForTarget();
54 
57  virtual void setTargetEntityId(const std::string& name);
58  virtual std::string targetEntityId();
59 
62  virtual void setTargetLocation(DtVector location);
63  virtual DtVector targetLocation();
64 
66  virtual bool isUsingObserverForTarget();
67  virtual bool isUsingEntityForTarget();
68  virtual bool isUsingLocationForTarget();
69 
72  virtual void setRadarOffsetLocation(DtVector offset);
73  virtual DtVector radarOffsetLocation();
74 
77  virtual void setRadarOffsetOrientation(DtTaitBryan offsetOrientation);
78  virtual DtTaitBryan radarOffsetOrientation();
79 
81  virtual void setRadarSystemName(const std::string& name);
82  virtual std::string radarSystemName();
83 
85  virtual void setIsAgcPowerEnabled(bool isAgcPowerEnabled);
86  virtual bool isAgcPowerEnabled() const;
87 
89  virtual void setPower(float power);
90  virtual float power();
91 
93  virtual void setImageSize(const DtImageSize& size);
94  virtual DtImageSize imageSize();
95 
97  virtual void setImageFormat(DtImageFormat format);
98  virtual DtImageFormat imageFormat();
99 
101  virtual void setImageDataType(DtImageDataType type);
102  virtual DtImageDataType imageDataType();
103 
105  virtual void setImageRotation(DtImageRotation rotate);
106  virtual DtImageRotation imageRotation();
107 
109  virtual void setImageReturnMethod(unsigned int returnFlags);
110  virtual unsigned int imageReturnMethod();
111 
114  virtual void setImageSavePath(const std::string& filename);
115  virtual std::string imageSavePath();
116 
121  virtual void setImageFilename(const std::string& filename);
122  virtual std::string imageFilename();
123 
126  virtual void setRestoreState(bool restoreState);
127  virtual bool restoreState();
128 
130  virtual void setEnableSky(bool enableSky);
131  virtual bool enableSky();
132 
134  virtual int messageSize();
136  static DtBaseMessage* decode(unsigned char* buffer, int length);
138  virtual DtBaseMessage* clone();
139 
140 
141  protected:
142  virtual void serialize(DtStreamWriter& writer);
143  virtual void deserialize(DtStreamReader& reader);
144 
145 
154 
155  std::string myOwnshipName;
156  std::string myTargetName;
159 
162  std::string myRadarName;
163  float myPower;
168  unsigned int myReturnMethod;
169 
171 
172  std::string myImageSavePath;
173  std::string myImageFilename;
174 
175 };
176 
177 
180 {
181  public:
183  DtMmwResponse();
184  virtual ~DtMmwResponse();
185 
187  virtual void setError(DtImageError error);
188  virtual DtImageError error();
189 
191  virtual void setWarning(DtImageWarning error);
192  virtual DtImageWarning warning();
193 
195  virtual void setReturnMethod(unsigned int method);
196  virtual unsigned int returnMethod();
197 
199  virtual void setImageFormat(DtImageFormat format);
200  virtual DtImageFormat imageFormat();
201 
203  virtual void setImageSize(const DtImageSize& size);
204  virtual DtImageSize imageSize();
205 
207  virtual void setImageDataType(DtImageDataType type);
208  virtual DtImageDataType imageDataType();
209 
211  virtual void setFilename(const std::string& filename);
212  virtual std::string filename();
213 
215  virtual int dataLength();
216 
218  virtual void setData(unsigned char* buffer, int length);
219  virtual unsigned char* data();
220 
222  virtual int messageSize();
224  static DtBaseMessage* decode(unsigned char* buffer, int length);
226  virtual DtBaseMessage* clone();
227 
228  protected:
229  virtual void serialize(DtStreamWriter& writer);
230  virtual void deserialize(DtStreamReader& reader);
231 
235  unsigned int myReturnMethod;
238  std::string myFilename;
240  unsigned char* myData;
241 };
242 }
243 
DtImageRequest defines a request for an image from the RadarFX Server.
Definition: rfxImageMessage.h:37
bool myUseAbsoluteOwnship
Definition: rfxMmwMessage.h:148
DtImageDataType myImageDataType
Definition: rfxMmwMessage.h:237
DtImageDataType myImageDataType
Definition: rfxMmwMessage.h:166
bool myUseAbsoluteTarget
Definition: rfxMmwMessage.h:151
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: rfxMessage.h:25
std::string myRadarName
Definition: rfxMmwMessage.h:162
DtImageRotation
Definition: rfxImageMessage.h:23
DtVector myRadarOffsetLocation
Definition: rfxMmwMessage.h:160
std::string myFilename
Definition: rfxMmwMessage.h:238
DtSarResponse is the returned image data by the server.
Definition: rfxImageMessage.h:53
std::string myImageSavePath
Definition: rfxMmwMessage.h:172
DtImageDataType
Definition: rfxImageMessage.h:25
bool myIsAgcPowerEnabled
Definition: rfxMmwMessage.h:153
Instances of DtStreamWriter encode values into a byte array this writes the data to the stream in lit...
Definition: byteStream.h:74
DtImageError
Definition: rfxImageMessage.h:49
std::string myOwnshipName
Definition: rfxMmwMessage.h:155
bool myUseEntityAsTarget
Definition: rfxMmwMessage.h:150
unsigned int myReturnMethod
Definition: rfxMmwMessage.h:235
DtImageRotation myImageRotation
Definition: rfxMmwMessage.h:167
bool myUseEntityAsHost
Definition: rfxMmwMessage.h:147
DtImageFormat
Definition: rfxImageMessage.h:22
DtImageWarning myWarning
Definition: rfxMmwMessage.h:233
std::string myImageFilename
Definition: rfxMmwMessage.h:173
DtImageError myError
Definition: rfxMmwMessage.h:232
unsigned char * myData
Definition: rfxMmwMessage.h:240
static std::string data()
Definition: exprtk.hpp:38889
#define RFX_DLL_SHARED
Definition: include/radarFxShared/export.h:15
bool myEnableSky
Definition: rfxMmwMessage.h:152
DtImageFormat myImageFormat
Definition: rfxMmwMessage.h:165
bool myRestoreState
Definition: rfxMmwMessage.h:170
Defines the base class for all messages that can be sent between the server and the client...
float myPower
Definition: rfxMmwMessage.h:163
DtImageFormat myImageFormat
Definition: rfxMmwMessage.h:236
DtVector myOwnshipLocation
Definition: rfxMmwMessage.h:157
DtImageWarning
Definition: rfxImageMessage.h:50
DtImageSize myImageSize
Definition: rfxMmwMessage.h:164
DtImageSize myImageSize
Definition: rfxMmwMessage.h:234
bool myUseObserverForTarget
Definition: rfxMmwMessage.h:149
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices.
unsigned int myReturnMethod
Definition: rfxMmwMessage.h:168
bool myUseObserverAsHost
Definition: rfxMmwMessage.h:146
DtVector myTargetLocation
Definition: rfxMmwMessage.h:158
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27
std::string myTargetName
Definition: rfxMmwMessage.h:156
DtMmwResponse is the returned image data by the server.
Definition: rfxMmwMessage.h:179
DtMmwRequest defines a request for an image from the RadarFX Server.
Definition: rfxMmwMessage.h:24
Definition: rfxImageMessage.h:27
int myDataLength
Definition: rfxMmwMessage.h:239
DtTaitBryan myRadarOffsetOrientation
Definition: rfxMmwMessage.h:161


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)