VR-Vantage 3.1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rfxSarMessage.h
Go to the documentation of this file.
1 // ******************************************************************************
2 // ** Copyright (c) 2020 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  DtSarRequest();
29  virtual ~DtSarRequest();
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 setCrossrange(float width);
86  virtual float crossrange();
87 
89  virtual void setDownrange(float height);
90  virtual float downrange();
91 
93  virtual void setIsAgcPowerEnabled(bool isAgcPowerEnabled);
94  virtual bool isAgcPowerEnabled() const;
95 
97  virtual void setPower(float power);
98  virtual float power();
99 
101  virtual void setImageSize(const DtImageSize& size);
102  virtual DtImageSize imageSize();
103 
105  virtual void setImageFormat(DtImageFormat format);
106  virtual DtImageFormat imageFormat();
107 
109  virtual void setImageDataType(DtImageDataType type);
110  virtual DtImageDataType imageDataType();
111 
113  virtual void setImageRotation(DtImageRotation rotate);
114  virtual DtImageRotation imageRotation();
115 
117  virtual void setImageReturnMethod(unsigned int returnFlags);
118  virtual unsigned int imageReturnMethod();
119 
122  virtual void setImageSavePath(const std::string& filename);
123  virtual std::string imageSavePath();
124 
129  virtual void setImageFilename(const std::string& filename);
130  virtual std::string imageFilename();
131 
134  virtual void setRestoreState(bool restoreState);
135  virtual bool restoreState();
136 
138  void setOwnshipSpeed(float speed);
139  float ownshipSpeed();
140 
142  virtual int messageSize();
144  static DtBaseMessage* decode(unsigned char* buffer, int length);
146  virtual DtBaseMessage* clone();
147 
148 
149  protected:
150  virtual void serialize(DtStreamWriter& writer);
151  virtual void deserialize(DtStreamReader& reader);
152 
153 
161 
162  std::string myOwnshipName;
163  std::string myTargetName;
166 
169  std::string myRadarName;
171  float myDownrange;
172  float myPower;
177  unsigned int myReturnMethod;
178 
180 
182 
183  std::string myImageSavePath;
184  std::string myImageFilename;
185 
186 };
187 
188 
191 {
192  public:
194  DtSarResponse();
195  virtual ~DtSarResponse();
196 
198  virtual void setError(DtImageError error);
199  virtual DtImageError error();
200 
202  virtual void setWarning(DtImageWarning error);
203  virtual DtImageWarning warning();
204 
206  virtual void setReturnMethod(unsigned int method);
207  virtual unsigned int returnMethod();
208 
210  virtual void setImageFormat(DtImageFormat format);
211  virtual DtImageFormat imageFormat();
212 
214  virtual void setImageSize(const DtImageSize& size);
215  virtual DtImageSize imageSize();
216 
218  virtual void setImageDataType(DtImageDataType type);
219  virtual DtImageDataType imageDataType();
220 
222  virtual void setFilename(const std::string& filename);
223  virtual std::string filename();
224 
226  virtual int dataLength();
227 
229  virtual void setData(unsigned char* buffer, int length);
230  virtual unsigned char* data();
231 
233  virtual void setOwnshipLocation(DtVector location);
234  virtual DtVector ownshipLocation();
235 
237  virtual void setOwnshipOrientation(DtTaitBryan orientation);
238  virtual DtTaitBryan ownshipOrientation();
239 
241  virtual void setSystemTime(double time);
242  virtual double systemTime();
243 
245  virtual void setCenterPosition(double lat, double lon, double alt);
246  virtual void getCenterPosition(double& lat, double& lon, double& alt);
247 
249  virtual void setSensorViewDirection(double azimuth, double elevation);
250  virtual void getSensorViewDirection(double& azimuth, double& elevation);
251 
253  virtual int messageSize();
255  static DtBaseMessage* decode(unsigned char* buffer, int length);
257  virtual DtBaseMessage* clone();
258 
259  protected:
260  virtual void serialize(DtStreamWriter& writer);
261  virtual void deserialize(DtStreamReader& reader);
262 
266  unsigned int myReturnMethod;
269  std::string myFilename;
271  unsigned char* myData;
272 
274  DtTaitBryan myOwnshipOrientation;
275  double mySystemTime;
276  double myCenterLat;
277  double myCenterLon;
278  double myCenterAlt;
281 };
282 }
283 
DtImageRequest defines a request for an image from the RadarFX Server.
Definition: rfxImageMessage.h:37
DtImageDataType myImageDataType
Definition: rfxSarMessage.h:268
float myCrossrange
Definition: rfxSarMessage.h:170
bool myUseEntityAsHost
Definition: rfxSarMessage.h:155
bool myUseAbsoluteOwnship
Definition: rfxSarMessage.h:156
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: rfxMessage.h:25
std::string myImageSavePath
Definition: rfxSarMessage.h:183
DtImageRotation
Definition: rfxImageMessage.h:23
float myOwnshipSpeed
Definition: rfxSarMessage.h:181
DtSarResponse is the returned image data by the server.
Definition: rfxImageMessage.h:53
DtSarResponse is the returned image data by the server.
Definition: rfxSarMessage.h:190
bool myUseEntityAsTarget
Definition: rfxSarMessage.h:158
double myCenterLon
Definition: rfxSarMessage.h:277
DtImageDataType
Definition: rfxImageMessage.h:25
DtImageRotation myImageRotation
Definition: rfxSarMessage.h:176
float myDownrange
Definition: rfxSarMessage.h:171
DtImageError myError
Definition: rfxSarMessage.h:263
bool myRestoreState
Definition: rfxSarMessage.h:179
bool myUseObserverAsHost
Definition: rfxSarMessage.h:154
unsigned int myReturnMethod
Definition: rfxSarMessage.h:266
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
DtImageFormat myImageFormat
Definition: rfxSarMessage.h:267
std::string myRadarName
Definition: rfxSarMessage.h:169
bool myIsAgcPowerEnabled
Definition: rfxSarMessage.h:160
DtImageFormat
Definition: rfxImageMessage.h:22
DtImageDataType myImageDataType
Definition: rfxSarMessage.h:175
std::string myOwnshipName
Definition: rfxSarMessage.h:162
bool myUseAbsoluteTarget
Definition: rfxSarMessage.h:159
double mySystemTime
Definition: rfxSarMessage.h:275
DtImageFormat myImageFormat
Definition: rfxSarMessage.h:174
static std::string data()
Definition: exprtk.hpp:38889
DtImageSize myImageSize
Definition: rfxSarMessage.h:173
DtVector myOwnshipLocation
Definition: rfxSarMessage.h:273
std::string myImageFilename
Definition: rfxSarMessage.h:184
double myCenterAlt
Definition: rfxSarMessage.h:278
#define RFX_DLL_SHARED
Definition: include/radarFxShared/export.h:15
DtVector myTargetLocation
Definition: rfxSarMessage.h:165
DtVector myRadarOffsetLocation
Definition: rfxSarMessage.h:167
Defines the base class for all messages that can be sent between the server and the client...
DtVector myOwnshipLocation
Definition: rfxSarMessage.h:164
DtImageSize myImageSize
Definition: rfxSarMessage.h:265
bool myUseObserverForTarget
Definition: rfxSarMessage.h:157
DtImageWarning
Definition: rfxImageMessage.h:50
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.
std::string myFilename
Definition: rfxSarMessage.h:269
std::string myTargetName
Definition: rfxSarMessage.h:163
DtSarRequest defines a request for an image from the RadarFX Server.
Definition: rfxSarMessage.h:24
DtTaitBryan myRadarOffsetOrientation
Definition: rfxSarMessage.h:168
double mySensorDirectionElevation
Definition: rfxSarMessage.h:280
double myCenterLat
Definition: rfxSarMessage.h:276
DtTaitBryan myOwnshipOrientation
Definition: rfxSarMessage.h:274
int myDataLength
Definition: rfxSarMessage.h:270
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27
float myPower
Definition: rfxSarMessage.h:172
DtImageWarning myWarning
Definition: rfxSarMessage.h:264
unsigned char * myData
Definition: rfxSarMessage.h:271
unsigned int myReturnMethod
Definition: rfxSarMessage.h:177
Definition: rfxImageMessage.h:27
double mySensorDirectionAzimuth
Definition: rfxSarMessage.h:279


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