VR-Vantage 3.0.3 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) 2016 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 setPower(float power);
94  virtual float power();
95 
97  virtual void setImageSize(const DtImageSize& size);
98  virtual DtImageSize imageSize();
99 
101  virtual void setImageFormat(DtImageFormat format);
102  virtual DtImageFormat imageFormat();
103 
105  virtual void setImageDataType(DtImageDataType type);
106  virtual DtImageDataType imageDataType();
107 
109  virtual void setImageRotation(DtImageRotation rotate);
110  virtual DtImageRotation imageRotation();
111 
113  virtual void setImageReturnMethod(unsigned int returnFlags);
114  virtual unsigned int imageReturnMethod();
115 
118  virtual void setImageSavePath(const std::string& filename);
119  virtual std::string imageSavePath();
120 
125  virtual void setImageFilename(const std::string& filename);
126  virtual std::string imageFilename();
127 
128 
130  virtual int messageSize();
132  static DtBaseMessage* decode(unsigned char* buffer, int length);
134  virtual DtBaseMessage* clone();
135 
136  protected:
137  virtual void serialize(DtStreamWriter& writer);
138  virtual void deserialize(DtStreamReader& reader);
139 
140 
147 
148  std::string myOwnshipName;
149  std::string myTargetName;
152 
155  std::string myRadarName;
157  float myDownrange;
158  float myPower;
163  unsigned int myReturnMethod;
164  std::string myImageSavePath;
165  std::string myImageFilename;
166 };
167 
168 
171 {
172  public:
174  DtSarResponse();
175  virtual ~DtSarResponse();
176 
178  virtual void setError(DtImageError error);
179  virtual DtImageError error();
180 
182  virtual void setWarning(DtImageWarning error);
183  virtual DtImageWarning warning();
184 
186  virtual void setReturnMethod(unsigned int method);
187  virtual unsigned int returnMethod();
188 
190  virtual void setImageFormat(DtImageFormat format);
191  virtual DtImageFormat imageFormat();
192 
194  virtual void setImageSize(const DtImageSize& size);
195  virtual DtImageSize imageSize();
196 
198  virtual void setImageDataType(DtImageDataType type);
199  virtual DtImageDataType imageDataType();
200 
202  virtual void setFilename(const std::string& filename);
203  virtual std::string filename();
204 
206  virtual int dataLength();
207 
209  virtual void setData(unsigned char* buffer, int length);
210  virtual unsigned char* data();
211 
213  virtual int messageSize();
215  static DtBaseMessage* decode(unsigned char* buffer, int length);
217  virtual DtBaseMessage* clone();
218 
219  protected:
220  virtual void serialize(DtStreamWriter& writer);
221  virtual void deserialize(DtStreamReader& reader);
222 
226  unsigned int myReturnMethod;
229  std::string myFilename;
231  unsigned char* myData;
232 };
233 }
234 
DtImageRequest defines a request for an image from the RadarFX Server.
Definition: rfxImageMessage.h:37
DtImageDataType myImageDataType
Definition: rfxSarMessage.h:228
float myCrossrange
Definition: rfxSarMessage.h:156
bool myUseEntityAsHost
Definition: rfxSarMessage.h:142
bool myUseAbsoluteOwnship
Definition: rfxSarMessage.h:143
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:164
DtImageRotation
Definition: rfxImageMessage.h:23
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:170
bool myUseEntityAsTarget
Definition: rfxSarMessage.h:145
DtImageDataType
Definition: rfxImageMessage.h:25
DtImageRotation myImageRotation
Definition: rfxSarMessage.h:162
float myDownrange
Definition: rfxSarMessage.h:157
DtImageError myError
Definition: rfxSarMessage.h:223
bool myUseObserverAsHost
Definition: rfxSarMessage.h:141
unsigned int myReturnMethod
Definition: rfxSarMessage.h:226
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:227
std::string myRadarName
Definition: rfxSarMessage.h:155
DtImageFormat
Definition: rfxImageMessage.h:22
DtImageDataType myImageDataType
Definition: rfxSarMessage.h:161
std::string myOwnshipName
Definition: rfxSarMessage.h:148
bool myUseAbsoluteTarget
Definition: rfxSarMessage.h:146
DtImageFormat myImageFormat
Definition: rfxSarMessage.h:160
static std::string data()
Definition: exprtk.hpp:38889
DtImageSize myImageSize
Definition: rfxSarMessage.h:159
std::string myImageFilename
Definition: rfxSarMessage.h:165
#define RFX_DLL_SHARED
Definition: include/radarFxShared/export.h:15
DtVector myTargetLocation
Definition: rfxSarMessage.h:151
DtVector myRadarOffsetLocation
Definition: rfxSarMessage.h:153
Defines the base class for all messages that can be sent between the server and the client...
DtVector myOwnshipLocation
Definition: rfxSarMessage.h:150
DtImageSize myImageSize
Definition: rfxSarMessage.h:225
bool myUseObserverForTarget
Definition: rfxSarMessage.h:144
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:229
std::string myTargetName
Definition: rfxSarMessage.h:149
DtSarRequest defines a request for an image from the RadarFX Server.
Definition: rfxSarMessage.h:24
DtTaitBryan myRadarOffsetOrientation
Definition: rfxSarMessage.h:154
int myDataLength
Definition: rfxSarMessage.h:230
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:158
DtImageWarning myWarning
Definition: rfxSarMessage.h:224
unsigned char * myData
Definition: rfxSarMessage.h:231
unsigned int myReturnMethod
Definition: rfxSarMessage.h:163
Definition: rfxImageMessage.h:27


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