VR-Vantage 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rfxIsarMessage.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 
16 #include <matrix/vlVector.h>
17 #include <matrix/vlTaitBryan.h>
18 
19 #include <string>
20 
21 namespace makRadarFx
22 {
23 
26 {
27  public:
29  DtIsarRequest();
30  virtual ~DtIsarRequest();
31 
35  virtual void useObserverAsHost();
36 
39  virtual void setOwnshipLocation(DtVector location);
40  virtual DtVector ownshipLocation();
41 
44  virtual void setOwnshipEntityId(const std::string& name);
45  virtual std::string ownshipEntityId();
46 
48  virtual bool isUsingObserverAsHost();
49  virtual bool isUsingEntityAsHost();
50  virtual bool isUsingAbsoluteLocation();
51 
54  virtual void useObserverForTarget();
55 
58  virtual void setTargetEntityId(const std::string& name);
59  virtual std::string targetEntityId();
60 
63  virtual void setTargetLocation(DtVector location);
64  virtual DtVector targetLocation();
65 
67  virtual bool isUsingObserverForTarget();
68  virtual bool isUsingEntityForTarget();
69  virtual bool isUsingLocationForTarget();
70 
73  virtual void setRadarOffsetLocation(DtVector offset);
74  virtual DtVector radarOffsetLocation();
75 
78  virtual void setRadarOffsetOrientation(DtTaitBryan offsetOrientation);
79  virtual DtTaitBryan radarOffsetOrientation();
80 
82  virtual void setRadarSystemName(const std::string& name);
83  virtual std::string radarSystemName();
84 
86  virtual void setPower(float power);
87  virtual float power();
88 
90  virtual void setImageSize(const DtImageSize& size);
91  virtual DtImageSize imageSize();
92 
94  virtual void setImageDataType(DtImageDataType type);
95  virtual DtImageDataType imageDataType();
96 
98  virtual void setImageFormat(DtImageFormat format);
99  virtual DtImageFormat imageFormat();
100 
102  virtual void setImageReturnMethod(unsigned int returnFlags);
103  virtual unsigned int imageReturnMethod();
104 
107  virtual void setImageSavePath(const std::string& filename);
108  virtual std::string imageSavePath();
109 
114  virtual void setImageFilename(const std::string& filename);
115  virtual std::string imageFilename();
116 
117 
119  virtual int messageSize();
121  static DtBaseMessage* decode(unsigned char* buffer, int length);
123  virtual DtBaseMessage* clone();
124 
125  protected:
126  virtual void serialize(DtStreamWriter& writer);
127  virtual void deserialize(DtStreamReader& reader);
128 
129 
136 
137  std::string myOwnshipName;
138  std::string myTargetName;
141 
144  std::string myRadarName;
145  float myPower;
149  unsigned int myReturnMethod;
150  std::string myImageSavePath;
151  std::string myImageFilename;
152 };
153 
154 
157 {
158  public:
159 
161  DtIsarResponse();
162  virtual ~DtIsarResponse();
163 
165  virtual void setError(DtImageError error);
166  virtual DtImageError error();
167 
169  virtual void setWarning(DtImageWarning error);
170  virtual DtImageWarning warning();
171 
173  virtual void setReturnMethod(unsigned int method);
174  virtual unsigned int returnMethod();
175 
177  virtual void setImageFormat(DtImageFormat format);
178  virtual DtImageFormat imageFormat();
179 
181  virtual void setImageSize(const DtImageSize& size);
182  virtual DtImageSize imageSize();
183 
185  virtual void setImageDataType(DtImageDataType type);
186  virtual DtImageDataType imageDataType();
187 
189  virtual void setFilename(const std::string& filename);
190  virtual std::string filename();
191 
193  virtual int dataLength();
194 
196  virtual void setData(unsigned char* buffer, int length);
197  virtual unsigned char* data();
198 
200  virtual int messageSize();
202  static DtBaseMessage* decode(unsigned char* buffer, int length);
204  virtual DtBaseMessage* clone();
205 
206  protected:
207  virtual void serialize(DtStreamWriter& writer);
208  virtual void deserialize(DtStreamReader& reader);
209 
213  unsigned int myReturnMethod;
216  std::string myFilename;
218  unsigned char* myData;
219 };
220 }
221 
DtImageRequest defines a request for an image from the RadarFX Server.
Definition: rfxImageMessage.h:37
bool myUseEntityAsHost
Definition: rfxIsarMessage.h:131
bool myUseEntityAsTarget
Definition: rfxIsarMessage.h:134
unsigned char * myData
Definition: rfxIsarMessage.h:218
std::string myTargetName
Definition: rfxIsarMessage.h:138
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: rfxMessage.h:25
DtSarResponse is the returned image data by the server.
Definition: rfxImageMessage.h:53
DtImageDataType
Definition: rfxImageMessage.h:25
std::string myFilename
Definition: rfxIsarMessage.h:216
DtImageFormat myImageFormat
Definition: rfxIsarMessage.h:147
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
DtVector myRadarOffsetLocation
Definition: rfxIsarMessage.h:142
DtVector myOwnshipLocation
Definition: rfxIsarMessage.h:139
DtImageFormat myImageFormat
Definition: rfxIsarMessage.h:214
DtImageFormat
Definition: rfxImageMessage.h:22
DtVector myTargetLocation
Definition: rfxIsarMessage.h:140
std::string myRadarName
Definition: rfxIsarMessage.h:144
DtIsarResponse is the returned image data by the server.
Definition: rfxIsarMessage.h:156
DtTaitBryan myRadarOffsetOrientation
Definition: rfxIsarMessage.h:143
static std::string data()
Definition: exprtk.hpp:38889
bool myUseAbsoluteOwnship
Definition: rfxIsarMessage.h:132
DtImageError myError
Definition: rfxIsarMessage.h:210
int myDataLength
Definition: rfxIsarMessage.h:217
#define RFX_DLL_SHARED
Definition: include/radarFxShared/export.h:15
unsigned int myReturnMethod
Definition: rfxIsarMessage.h:213
DtIsarRequest defines a request for an image from the RadarFX Server.
Definition: rfxIsarMessage.h:25
std::string myImageFilename
Definition: rfxIsarMessage.h:151
DtImageDataType myImageDataType
Definition: rfxIsarMessage.h:215
bool myUseObserverAsHost
Definition: rfxIsarMessage.h:130
DtImageSize myImageSize
Definition: rfxIsarMessage.h:146
DtImageSize myImageSize
Definition: rfxIsarMessage.h:212
Defines the base class for all messages that can be sent between the server and the client...
DtImageWarning
Definition: rfxImageMessage.h:50
std::string myImageSavePath
Definition: rfxIsarMessage.h:150
bool myUseAbsoluteTarget
Definition: rfxIsarMessage.h:135
float myPower
Definition: rfxIsarMessage.h:145
unsigned int myReturnMethod
Definition: rfxIsarMessage.h:149
std::string myOwnshipName
Definition: rfxIsarMessage.h:137
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27
DtImageDataType myImageDataType
Definition: rfxIsarMessage.h:148
bool myUseObserverForTarget
Definition: rfxIsarMessage.h:133
Definition: rfxImageMessage.h:27
DtImageWarning myWarning
Definition: rfxIsarMessage.h:211


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