21#include <matrix/vlVector.h>
22#include <matrix/vlTaitBryan.h>
234 virtual void setData(
unsigned char* buffer,
int length);
Base class for all RadarFX messages.
Definition rfxMessage.h:35
DtImageRequest()
Default constructor.
DtImageResponse()
Default constructor.
virtual void setRadarOffsetLocation(DtVector offset)
the offset location of the sensor on the hosting entity. Only valid when a hosting entity is defined
virtual std::string imageSavePath()
virtual DtBaseMessage * clone()
clone a message. Caller of function is responsible managing this memory
virtual void setTargetEntityId(const std::string &name)
If the ownship is the target of the sensor, we can use its global simulation name to look it up.
bool myUseAbsoluteOwnship
Definition rfxMmwMessage.h:165
DtVector myOwnshipLocation
Definition rfxMmwMessage.h:174
virtual void setImageSavePath(const std::string &filename)
Requested path for image if it is to be saved by the server If the path does not exist,...
bool myUseObserverForTarget
Definition rfxMmwMessage.h:166
bool myUseEntityAsTarget
Definition rfxMmwMessage.h:167
DtImageSize myImageSize
Definition rfxMmwMessage.h:181
virtual void setImageRotation(DtImageRotation rotate)
Requested rotation of the image.
static DtBaseMessage * decode(unsigned char *buffer, int length)
decode a message. Used by the factory
DtVector myRadarOffsetLocation
Definition rfxMmwMessage.h:177
virtual void setImageSize(const DtImageSize &size)
Requested image pixel size. This may not be the returned size due to image rotation.
bool myUseEntityAsHost
Definition rfxMmwMessage.h:164
virtual DtImageSize imageSize()
virtual std::string imageFilename()
unsigned int myReturnMethod
Definition rfxMmwMessage.h:185
virtual DtTaitBryan radarOffsetOrientation()
virtual bool isUsingEntityForTarget()
virtual void setRadarOffsetOrientation(DtTaitBryan offsetOrientation)
the offset orientation of the sensor from the hosting entite's orientation. Only valid when a hosting...
DtImageFormat myImageFormat
Definition rfxMmwMessage.h:182
virtual void setRadarSystemName(const std::string &name)
The name of the sensor system to use. This must match one of the sensors that the RadarFX server has ...
virtual void setRestoreState(bool restoreState)
Lets the server know that it should restore the display/window/observer state after an image capture ...
bool myIsAgcPowerEnabled
Definition rfxMmwMessage.h:170
virtual unsigned int imageReturnMethod()
virtual DtImageFormat imageFormat()
DtVector myTargetLocation
Definition rfxMmwMessage.h:175
DtImageRotation myImageRotation
Definition rfxMmwMessage.h:184
virtual bool isUsingObserverAsHost()
functions to determine how to place the sensor
virtual void setEnableSky(bool enableSky)
lets the server know if it should render the sky or not with this request.
virtual void setIsAgcPowerEnabled(bool isAgcPowerEnabled)
Whether or not to use AGC for Power.
float myPower
Definition rfxMmwMessage.h:180
bool myEnableSky
Definition rfxMmwMessage.h:169
std::string myImageFilename
Definition rfxMmwMessage.h:190
virtual std::string targetEntityId()
virtual int messageSize()
size of the message
virtual void setOwnshipEntityId(const std::string &name)
If the ownship is hosted by the simulation system, we can use its global simulation name to look it u...
virtual void setOwnshipLocation(DtVector location)
if the ownship is not hosted in the simulation system, we can explicitly state where we want to perfo...
bool myUseObserverAsHost
Definition rfxMmwMessage.h:163
std::string myTargetName
Definition rfxMmwMessage.h:173
virtual ~DtMmwRequest()
Virtual destructor.
virtual DtImageRotation imageRotation()
virtual bool isUsingAbsoluteLocation()
virtual DtVector ownshipLocation()
std::string myImageSavePath
Definition rfxMmwMessage.h:189
virtual void setImageFilename(const std::string &filename)
Requested filename for image if it is to be saved by the server If this is not set,...
virtual bool isUsingLocationForTarget()
bool myRestoreState
Definition rfxMmwMessage.h:187
virtual DtVector radarOffsetLocation()
virtual bool isUsingObserverForTarget()
functions to determine how to place the target
virtual DtVector targetLocation()
std::string myRadarName
Definition rfxMmwMessage.h:179
virtual void useObserverAsHost()
calling this function causes the message to use the current observer's position and orientation for t...
virtual bool isAgcPowerEnabled() const
DtMmwRequest()
Default constructor.
virtual DtImageDataType imageDataType()
bool myUseAbsoluteTarget
Definition rfxMmwMessage.h:168
DtImageDataType myImageDataType
Definition rfxMmwMessage.h:183
virtual void setTargetLocation(DtVector location)
this is the target that we would like to look at. Location format is latitude/longitude/altitude (in ...
virtual bool isUsingEntityAsHost()
virtual std::string ownshipEntityId()
virtual void setPower(float power)
Radar system power setting in Watts.
virtual void serialize(DtStreamWriter &writer)
Serializes the message data to a stream writer.
virtual void setImageDataType(DtImageDataType type)
Requested data type of the returned image data. Only available for RAW/NITF image types.
virtual std::string radarSystemName()
virtual bool restoreState()
virtual void useObserverForTarget()
calling this function causes the message to use the current observer's view to determine the target f...
virtual void setImageFormat(DtImageFormat format)
Requested format of the returned image data.
DtTaitBryan myRadarOffsetOrientation
Definition rfxMmwMessage.h:178
virtual void setImageReturnMethod(unsigned int returnFlags)
Bitfield for image data return types.
std::string myOwnshipName
Definition rfxMmwMessage.h:172
virtual void deserialize(DtStreamReader &reader)
Deserializes message data from a stream reader.
virtual void setImageDataType(DtImageDataType type)
Image data type Only available for RAW/NITF image types.
virtual void setReturnMethod(unsigned int method)
Image return method that is used.
DtImageWarning myWarning
Definition rfxMmwMessage.h:249
virtual int messageSize()
size of the message
virtual DtImageFormat imageFormat()
static DtBaseMessage * decode(unsigned char *buffer, int length)
decode a message. Used by the factory
virtual int dataLength()
Size of data for the returned image.
virtual DtImageError error()
virtual void setData(unsigned char *buffer, int length)
Image data returned by the server. This message class will manage this memory.
virtual void setError(DtImageError error)
Error value if there is one.
DtMmwResponse()
CTOR/DTOR.
virtual std::string filename()
unsigned int myReturnMethod
Definition rfxMmwMessage.h:251
DtImageSize myImageSize
Definition rfxMmwMessage.h:250
virtual void setFilename(const std::string &filename)
filename of saved image if it was saved on the server
virtual void serialize(DtStreamWriter &writer)
Serializes the message data to a stream writer.
std::string myFilename
Definition rfxMmwMessage.h:254
virtual DtBaseMessage * clone()
clone a message. Caller of function is responsible managing this memory
unsigned char * myData
Definition rfxMmwMessage.h:256
DtImageDataType myImageDataType
Definition rfxMmwMessage.h:253
DtImageError myError
Definition rfxMmwMessage.h:248
virtual DtImageDataType imageDataType()
virtual DtImageWarning warning()
virtual void setImageSize(const DtImageSize &size)
Size of the image returned by the server.
virtual void setImageFormat(DtImageFormat format)
Image return format.
DtImageFormat myImageFormat
Definition rfxMmwMessage.h:252
virtual unsigned char * data()
int myDataLength
Definition rfxMmwMessage.h:255
virtual DtImageSize imageSize()
virtual unsigned int returnMethod()
virtual void deserialize(DtStreamReader &reader)
Deserializes message data from a stream reader.
virtual void setWarning(DtImageWarning error)
Warning value if there is one.
Stream reader for decoding values from a byte array in little endian format.
Definition byteStream.h:32
Stream writer for encoding values into a byte array in little endian format.
Definition byteStream.h:159
Defines export macros for the RadarFx Shared library.
#define RFX_DLL_SHARED
Export/import macro for non-Windows platforms (empty)
Definition export.h:25
Definition radarFxConnectorDriver.h:21
DtImageRotation
Image orientation enumeration.
Definition rfxImageMessage.h:43
DtImageFormat
Image format enumeration for radar images.
Definition rfxImageMessage.h:29
DtImageError
Error codes for radar image responses.
Definition rfxImageMessage.h:119
DtImageDataType
Image data type enumeration.
Definition rfxImageMessage.h:61
DtImageWarning
Warning codes for radar image responses.
Definition rfxImageMessage.h:131
Defines common base classes and types for all radar image messages.
Defines the base message class for RadarFX client-server communication.
Image dimensions structure.
Definition rfxImageMessage.h:71