|
VR-Engage
2.2
|
This class encapsulates a request for a Synthetic Aperture Radar (SAR) image from the RadarFX server. It contains parameters that specify the sensor platform position, target location, radar system settings, and image format settings. SAR images provide a top-down radar view of terrain and objects.
#include <rfxSarMessage.h>
Public Member Functions | |
| DtSarRequest () | |
| virtual | ~DtSarRequest () |
| virtual void | useObserverAsHost () |
| virtual void | setOwnshipLocation (DtVector location) |
| virtual DtVector | ownshipLocation () |
| virtual void | setOwnshipEntityId (const std::string &name) |
| virtual std::string | ownshipEntityId () |
| virtual void | useObserverForTarget () |
| virtual void | setTargetEntityId (const std::string &name) |
| virtual std::string | targetEntityId () |
| virtual void | setTargetLocation (DtVector location) |
| virtual DtVector | targetLocation () |
| virtual void | setRadarOffsetLocation (DtVector offset) |
| virtual DtVector | radarOffsetLocation () |
| virtual void | setRadarOffsetOrientation (DtTaitBryan offsetOrientation) |
| virtual DtTaitBryan | radarOffsetOrientation () |
| virtual void | setRadarSystemName (const std::string &name) |
| virtual std::string | radarSystemName () |
| virtual void | setCrossrange (float width) |
| virtual float | crossrange () |
| virtual void | setDownrange (float height) |
| virtual float | downrange () |
| virtual void | setIsAgcPowerEnabled (bool isAgcPowerEnabled) |
| virtual bool | isAgcPowerEnabled () const |
| virtual void | setPower (float power) |
| virtual float | power () |
| virtual void | setImageSize (const DtImageSize &size) |
| virtual DtImageSize | imageSize () |
| virtual void | setImageFormat (DtImageFormat format) |
| virtual DtImageFormat | imageFormat () |
| virtual void | setImageDataType (DtImageDataType type) |
| virtual DtImageDataType | imageDataType () |
| virtual void | setImageRotation (DtImageRotation rotate) |
| virtual DtImageRotation | imageRotation () |
| virtual void | setImageReturnMethod (unsigned int returnFlags) |
| virtual unsigned int | imageReturnMethod () |
| virtual void | setImageSavePath (const std::string &filename) |
| virtual std::string | imageSavePath () |
| virtual void | setImageFilename (const std::string &filename) |
| virtual std::string | imageFilename () |
| virtual void | setRestoreState (bool restoreState) |
| virtual bool | restoreState () |
| void | setOwnshipSpeed (float speed) |
| float | ownshipSpeed () |
| virtual int | messageSize () |
| virtual DtBaseMessage * | clone () |
Radar Platform Placement Mode Queries | |
Methods to determine how the radar platform is being positioned | |
| virtual bool | isUsingObserverAsHost () |
| virtual bool | isUsingEntityAsHost () |
| virtual bool | isUsingAbsoluteLocation () |
Target Placement Mode Queries | |
Methods to determine how the target is being positioned | |
| virtual bool | isUsingObserverForTarget () |
| virtual bool | isUsingEntityForTarget () |
| virtual bool | isUsingLocationForTarget () |
Public Member Functions inherited from makRadarFx::DtImageRequest | |
| DtImageRequest () | |
| virtual | ~DtImageRequest () |
Static Public Member Functions | |
| static DtBaseMessage * | decode (unsigned char *buffer, int length) |
Protected Member Functions | |
| virtual void | serialize (DtStreamWriter &writer) |
| virtual void | deserialize (DtStreamReader &reader) |
Protected Attributes | |
| bool | myUseObserverAsHost |
| bool | myUseEntityAsHost |
| bool | myUseAbsoluteOwnship |
| bool | myUseObserverForTarget |
| bool | myUseEntityAsTarget |
| bool | myUseAbsoluteTarget |
| bool | myIsAgcPowerEnabled |
| std::string | myOwnshipName |
| std::string | myTargetName |
| DtVector | myOwnshipLocation |
| DtVector | myTargetLocation |
| DtVector | myRadarOffsetLocation |
| DtTaitBryan | myRadarOffsetOrientation |
| std::string | myRadarName |
| float | myCrossrange |
| float | myDownrange |
| float | myPower |
| DtImageSize | myImageSize |
| DtImageFormat | myImageFormat |
| DtImageDataType | myImageDataType |
| DtImageRotation | myImageRotation |
| unsigned int | myReturnMethod |
| bool | myRestoreState |
| float | myOwnshipSpeed |
| std::string | myImageSavePath |
| std::string | myImageFilename |
| makRadarFx::DtSarRequest::DtSarRequest | ( | ) |
Default constructor.
Initializes a new SAR image request message with default settings
|
virtual |
Virtual destructor.
|
virtual |
Uses the current observer's position and orientation for the radar platform.
When called, this function configures the request to use the current observer's position and orientation as the radar platform location. The client does not need to set an ownship location or orientation if using this method to position the sensor.
|
virtual |
Sets an absolute position for the radar platform.
| location | Vector containing the radar platform position (latitude, longitude, altitude) |
If the radar platform is not hosted in the simulation system, this method allows explicit specification of the platform position for the SAR imagery.
|
virtual |
Gets the absolute radar platform position.
Returns the currently set absolute position for the radar platform.
|
virtual |
Sets an entity ID to use for the radar platform position.
| name | String identifier of the entity to use as the radar platform |
If the radar platform is hosted by the simulation system, this method allows specification of the entity by its global simulation name or ID.
|
virtual |
Gets the entity ID used for the radar platform position.
Returns the entity identifier that will be used to locate the radar platform.
|
virtual |
Checks if using the observer position for the radar platform.
|
virtual |
Checks if using an entity as the radar platform.
|
virtual |
Checks if using an absolute position for the radar platform.
|
virtual |
Uses the current observer's view direction to determine the target location.
When called, this function configures the request to use the current observer's view direction to determine the target location for the SAR image. The system will cast a ray along the view direction to find the intersection with terrain.
|
virtual |
Sets an entity ID to use as the target location.
| name | String identifier of the entity to use as the target |
Specifies an entity by its global simulation name or ID to use as the target location for the SAR image. The center of the image will be positioned at this entity's location.
|
virtual |
Gets the entity ID used as the target location.
Returns the entity identifier that will be used to locate the target.
|
virtual |
Sets an absolute position for the target location.
| location | Vector containing the target position (latitude, longitude, altitude) |
Specifies the absolute coordinates for the target location of the SAR image. Location format is latitude/longitude/altitude (in degrees/meters). The altitude component is optional and will be determined by terrain height if not specified.
|
virtual |
Gets the absolute target position.
Returns the currently set target position for the SAR image.
|
virtual |
Checks if using the observer view for the target position.
|
virtual |
Checks if using an entity as the target.
|
virtual |
Checks if using an absolute position for the target.
|
virtual |
Sets the offset location of the radar sensor on the hosting entity.
| offset | Vector containing the offset position in entity-relative coordinates |
Specifies the position offset of the radar sensor relative to the hosting entity's reference point. This is only valid when a hosting entity is defined using setOwnshipEntityId().
|
virtual |
Gets the radar sensor offset location.
Returns the currently set position offset of the radar sensor relative to the hosting entity's reference point.
|
virtual |
Sets the offset orientation of the radar sensor on the hosting entity.
| offsetOrientation | Tait-Bryan angles representing the orientation offset |
Specifies the orientation offset of the radar sensor relative to the hosting entity's reference orientation. This is only valid when a hosting entity is defined using setOwnshipEntityId().
|
virtual |
Gets the radar sensor offset orientation.
Returns the currently set orientation offset of the radar sensor relative to the hosting entity's reference orientation.
|
virtual |
Sets the radar system name to use for the SAR image.
| name | String identifier of the radar system configuration |
Specifies the name of the radar system configuration to use for generating the SAR image. This must match one of the predefined radar systems that the RadarFX server has configured. Different radar systems have different capabilities and characteristics.
|
virtual |
Gets the radar system name.
Returns the currently set radar system name.
|
virtual |
Sets the crossrange size for the SAR image.
| width | Size of the crossrange in meters |
Sets the width (crossrange dimension) of the target area for the SAR image in meters. This controls the horizontal field of view of the radar image.
|
virtual |
Gets the crossrange size.
Returns the currently set width (crossrange dimension) of the target area.
|
virtual |
Sets the downrange size for the SAR image.
| height | Size of the downrange in meters |
Sets the height (downrange dimension) of the target area for the SAR image in meters. This controls the vertical field of view of the radar image.
|
virtual |
Gets the downrange size.
Returns the currently set height (downrange dimension) of the target area.
|
virtual |
Enables or disables Automatic Gain Control (AGC) for radar power.
| isAgcPowerEnabled | True to enable AGC, false to disable |
When enabled, Automatic Gain Control will dynamically adjust the radar power level to optimize the image quality based on the scene content. When disabled, the power level is fixed at the value set by setPower().
References isAgcPowerEnabled().
|
virtual |
Checks if Automatic Gain Control is enabled.
Returns the current state of the Automatic Gain Control setting.
Referenced by setIsAgcPowerEnabled().
|
virtual |
Sets the radar system power level.
| power | Radar transmitter power in Watts |
Sets the power level of the radar transmitter in Watts. Higher power levels generally result in better signal-to-noise ratio but may cause saturation for strong reflectors. This setting is only used when AGC is disabled.
References power().
|
virtual |
Gets the radar system power level.
Returns the currently set power level of the radar transmitter.
Referenced by setPower().
|
virtual |
Sets the requested image dimensions.
| size | The desired image dimensions in pixels |
Sets the desired dimensions of the SAR image in pixels. The actual dimensions of the returned image may differ due to image rotation or other processing requirements.
|
virtual |
Gets the requested image dimensions.
Returns the currently set dimensions for the SAR image.
|
virtual |
Sets the requested image format.
| format | The desired image format enumeration value |
Sets the format to use for the returned SAR image data. Different formats have different characteristics in terms of compression, metadata support, and compatibility with various applications.
|
virtual |
Gets the requested image format.
Returns the currently set format for the SAR image.
|
virtual |
Sets the requested image data type.
| type | The desired image data type enumeration value |
Sets the data type to use for the pixel values in the returned SAR image. This setting is only applicable for RAW and NITF image formats. Different data types provide different dynamic range and precision.
|
virtual |
Gets the requested image data type.
Returns the currently set data type for the SAR image pixels.
|
virtual |
Sets the requested image orientation.
| rotate | The desired image orientation enumeration value |
Sets the orientation to use for the returned SAR image. The orientation determines whether north is at the top of the image (NORTH_UP) or the platform's direction of travel is at the top (TRACK_UP).
|
virtual |
Gets the requested image orientation.
Returns the currently set orientation for the SAR image.
|
virtual |
Sets the requested image delivery method.
| returnFlags | Bitfield of DtImageReturnMethod values |
Sets how the SAR image data should be delivered. This can be set to return the image data directly in the message (STREAM), save the image to a file and return the file path (FILESYSTEM), or both. Use bitwise OR to combine multiple flags.
|
virtual |
Gets the requested image delivery method.
Returns the currently set delivery method for the SAR image.
|
virtual |
Sets the directory path for saving the image on the server.
| filename | Path to the directory where the image should be saved |
Sets the directory path where the image should be saved on the server when using the FILESYSTEM return method. If the specified directory does not exist, the server will attempt to create it.
|
virtual |
Gets the image save directory path.
Returns the currently set directory path for saving the image.
|
virtual |
Sets the base filename for saving the image on the server.
| filename | Base name to use for the saved image file |
Sets the base filename to use when saving the image on the server when using the FILESYSTEM return method. If not set, a timestamp will be used as the filename. If set, the specified name will be used as a prefix, followed by a timestamp. The file extension will be determined automatically based on the selected image format.
|
virtual |
Gets the image base filename.
Returns the currently set base filename for saving the image.
|
virtual |
Controls whether the server restores its state after image capture.
| restoreState | True to restore state, false otherwise |
When set to true, this instructs the server to restore the display, window, and observer state after the SAR image capture process is completed. This is useful when the server needs to temporarily modify its state for image generation but should return to its previous state afterward.
References restoreState().
|
virtual |
Checks if state restoration is enabled.
Returns whether the server will restore its state after image capture.
Referenced by setRestoreState().
| void makRadarFx::DtSarRequest::setOwnshipSpeed | ( | float | speed | ) |
Sets the platform speed for the SAR image request.
| speed | Speed of the platform in meters per second |
Sets the speed of the platform (ownship) for the SAR image request. This affects the SAR processing parameters and can impact the quality of the resulting image. Only used when not using an entity as the host.
| float makRadarFx::DtSarRequest::ownshipSpeed | ( | ) |
Gets the platform speed.
Returns the currently set speed of the platform (ownship).
|
virtual |
size of the message
Reimplemented from makRadarFx::DtBaseMessage.
|
static |
decode a message. Used by the factory
|
virtual |
clone a message. Caller of function is responsible managing this memory
Implements makRadarFx::DtBaseMessage.
|
protectedvirtual |
Serializes the message data to a stream writer.
| writer | Reference to the stream writer to write the data to |
Writes the message data to the provided stream writer. Derived classes should call the base class implementation before adding their own fields.
Reimplemented from makRadarFx::DtBaseMessage.
|
protectedvirtual |
Deserializes message data from a stream reader.
| reader | Reference to the stream reader to read the data from |
Reads the message data from the provided stream reader. Derived classes should call the base class implementation before reading their own fields.
Reimplemented from makRadarFx::DtBaseMessage.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |