|
VR-Engage
2.2
|
DtSarSettingsRecord stores all configuration settings related to Synthetic Aperture Radar (SAR) imagery. It provides storage for ownship and target positions, image parameters, server settings, and other SAR-specific options. This class is used for persisting settings and transferring them between components.
#include <sarSettingsRecord.h>
Public Types | |
| enum | OwnshipMode { OwnshipModeEntity , OwnshipModeObserver , OwnshipModeAbsolute } |
| enum | TargetMode { TargetModeEntity , TargetModeObserver , TargetModeAbsolute , TargetModeMouseClick , TargetModeSensor } |
Public Member Functions | |
| DtSarSettingsRecord () | |
| DtSarSettingsRecord (const DtSarSettingsRecord &orig) | |
| DtSarSettingsRecord & | operator= (const DtSarSettingsRecord &orig) |
| virtual | ~DtSarSettingsRecord () |
| virtual void | setOwnshipMode (int val) |
| virtual int | ownshipMode () const |
| virtual void | setOwnshipEntityName (const std::string &val) |
| virtual const std::string & | ownshipEntityName () const |
| virtual void | setOwnshipObserverName (const std::string &val) |
| virtual const std::string & | ownshipObserverName () const |
| virtual void | setOwnshipAbsoluteLat (double val) |
| virtual double | ownshipAbsoluteLat () const |
| virtual void | setOwnshipAbsoluteLon (double val) |
| virtual double | ownshipAbsoluteLon () const |
| virtual void | setOwnshipAbsoluteAlt (double val) |
| virtual double | ownshipAbsoluteAlt () const |
| virtual void | setTargetMode (int val) |
| virtual int | targetMode () const |
| virtual void | setTargetEntityName (const std::string &val) |
| virtual const std::string & | targetEntityName () const |
| virtual void | setTargetObserverName (const std::string &val) |
| virtual const std::string & | targetObserverName () const |
| virtual void | setTargetSensorName (const std::string &val) |
| virtual const std::string & | targetSensorName () const |
| virtual void | setTargetAbsoluteLat (double val) |
| virtual double | targetAbsoluteLat () const |
| virtual void | setTargetAbsoluteLon (double val) |
| virtual double | targetAbsoluteLon () const |
| virtual void | setTargetAbsoluteAlt (double val) |
| virtual double | targetAbsoluteAlt () const |
| virtual void | setImageSizeX (int val) |
| virtual int | imageSizeX () const |
| virtual void | setImageSizeY (int val) |
| virtual int | imageSizeY () const |
| virtual void | setImageRotation (int val) |
| virtual int | imageRotation () const |
| virtual void | setImageFormat (int val) |
| virtual int | imageFormat () const |
| virtual void | setImageDataType (int val) |
| virtual int | imageDataType () const |
| virtual void | setSensorToUse (const std::string &val) |
| virtual const std::string & | sensorToUse () const |
| virtual void | setSaveOnServer (bool val) |
| virtual bool | saveOnServer () const |
| virtual void | setServerSavePath (const std::string &val) |
| virtual const std::string & | serverSavePath () const |
| virtual void | setPower (double val) |
| virtual double | power () const |
| virtual void | setIsAgcPowerEnabled (bool isAgcPowerEnabled) |
| virtual bool | isAgcPowerEnabled () const |
| virtual void | setCrossrange (double val) |
| virtual double | crossrange () const |
| virtual void | setDownrange (double val) |
| virtual double | downrange () const |
| void | setOwnshipSpeed (float speed) |
| float | ownshipSpeed () const |
| virtual void | setServerIp (const std::string &val) |
| virtual const std::string & | serverIp () const |
| virtual void | setServerPort (int val) |
| virtual int | serverPort () const |
| virtual void | setOpenSarResponseWindow (bool val) |
| virtual bool | openSarResponseWindow () const |
Protected Member Functions | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int version) |
Protected Attributes | |
| int | myOwnshipMode |
| std::string | myOwnshipEntityName |
| std::string | myOwnshipObserverName |
| double | myOwnshipAbsoluteLat |
| double | myOwnshipAbsoluteLon |
| double | myOwnshipAbsoluteAlt |
| int | myTargetMode |
| std::string | myTargetEntityName |
| std::string | myTargetObserverName |
| std::string | myTargetSensorName |
| double | myTargetAbsoluteLat |
| double | myTargetAbsoluteLon |
| double | myTargetAbsoluteAlt |
| int | myImageSizeX |
| int | myImageSizeY |
| int | myImageRotation |
| int | myImageFormat |
| int | myImageDataType |
| std::string | mySensorToUse |
| bool | mySaveOnServer |
| std::string | myServerSavePath |
| bool | myIsAgcPowerEnabled |
| double | myPower |
| double | myDownrange |
| double | myCrossrange |
| float | myOwnshipSpeed |
| std::string | myServerIp |
| int | myServerPort |
| bool | myOpenSarResponseWindow |
Friends | |
| class | boost::serialization::access |
Enumeration for target positioning modes.
| makVre::DtSarSettingsRecord::DtSarSettingsRecord | ( | ) |
Default constructor.
Initializes all settings to their default values
Referenced by DtSarSettingsRecord(), and operator=().
| makVre::DtSarSettingsRecord::DtSarSettingsRecord | ( | const DtSarSettingsRecord & | orig | ) |
Copy constructor.
| orig | Source record to copy from |
Creates a new record that is a copy of the original
References DtSarSettingsRecord().
|
virtual |
Virtual destructor.
| DtSarSettingsRecord & makVre::DtSarSettingsRecord::operator= | ( | const DtSarSettingsRecord & | orig | ) |
Assignment operator.
| orig | Source record to assign from |
Copies all settings from the original record
References DtSarSettingsRecord().
|
virtual |
Sets the ownship mode.
| val | Mode value (typically 0=Entity, 1=Observer, 2=Absolute Position) |
|
virtual |
Gets the current ownship mode.
|
virtual |
Sets the ownship entity name.
| val | Entity name for the ownship |
|
virtual |
Gets the current ownship entity name.
|
virtual |
Sets the ownship observer name.
| val | Observer name for the ownship |
|
virtual |
Gets the current ownship observer name.
|
virtual |
Sets the ownship absolute latitude.
| val | Latitude value |
|
virtual |
Gets the current ownship absolute latitude.
|
virtual |
Sets the ownship absolute longitude.
| val | Longitude value |
|
virtual |
Gets the current ownship absolute longitude.
|
virtual |
Sets the ownship absolute altitude.
| val | Altitude value |
|
virtual |
Gets the current ownship absolute altitude.
|
virtual |
Sets the target mode.
| val | Mode value (typically 0=Entity, 1=Observer, 2=Absolute Position, 3=MouseClick, 4=Sensor) |
|
virtual |
Gets the current target mode.
|
virtual |
Sets the target entity name.
| val | Entity name for the target |
|
virtual |
Gets the current target entity name.
|
virtual |
Sets the target observer name.
| val | Observer name for the target |
|
virtual |
Gets the current target observer name.
|
virtual |
Sets the target sensor name.
| val | Sensor name for the target |
|
virtual |
Gets the current target sensor name.
|
virtual |
Sets the target absolute latitude.
| val | Latitude value |
|
virtual |
Gets the current target absolute latitude.
|
virtual |
Sets the target absolute longitude.
| val | Longitude value |
|
virtual |
Gets the current target absolute longitude.
|
virtual |
Sets the target absolute altitude.
| val | Altitude value |
|
virtual |
Gets the current target absolute altitude.
|
virtual |
Sets the image X dimension (width)
| val | Width in pixels |
|
virtual |
Gets the current image X dimension.
|
virtual |
Sets the image Y dimension (height)
| val | Height in pixels |
|
virtual |
Gets the current image Y dimension.
|
virtual |
Sets the image rotation.
| val | Rotation angle in degrees |
|
virtual |
Gets the current image rotation.
|
virtual |
Sets the image format.
| val | Image format index |
|
virtual |
Gets the current image format.
|
virtual |
Sets the image data type.
| val | Image data type index |
|
virtual |
Gets the current image data type.
|
virtual |
Sets the sensor to use for SAR imagery.
| val | Sensor name |
|
virtual |
Gets the current sensor used for SAR imagery.
|
virtual |
Sets whether to save SAR images on the server.
| val | True to save on server, false otherwise |
|
virtual |
Gets whether SAR images are saved on the server.
|
virtual |
Sets the path where images are saved on the server.
| val | Server save path |
|
virtual |
Gets the current server save path.
|
virtual |
Sets the radar power level.
| val | Power level value |
|
virtual |
Gets the current radar power level.
|
virtual |
Sets whether Automatic Gain Control is enabled for power.
| isAgcPowerEnabled | True to enable AGC, false otherwise |
References isAgcPowerEnabled().
|
virtual |
Gets whether Automatic Gain Control is enabled for power.
Referenced by setIsAgcPowerEnabled().
|
virtual |
Sets the crossrange distance.
| val | Crossrange value in meters |
|
virtual |
Gets the current crossrange distance.
|
virtual |
Sets the downrange distance.
| val | Downrange value in meters |
|
virtual |
Gets the current downrange distance.
| void makVre::DtSarSettingsRecord::setOwnshipSpeed | ( | float | speed | ) |
Sets the ownship speed.
| speed | Speed value in meters per second |
Speed of the observer when the SAR image is requested
| float makVre::DtSarSettingsRecord::ownshipSpeed | ( | ) | const |
Gets the current ownship speed.
|
virtual |
Sets the RadarFx server IP address.
| val | IP address string |
|
virtual |
Gets the current RadarFx server IP address.
|
virtual |
Sets the RadarFx server port.
| val | Port number |
|
virtual |
Gets the current RadarFx server port.
|
virtual |
Sets whether to automatically open the SAR response window.
| val | True to open window, false otherwise |
|
virtual |
Gets whether the SAR response window opens automatically.
|
inlineprotected |
Serializes the settings record to/from an archive.
| Archive | Type of archive (input or output) |
| ar | Reference to the archive |
| version | Version number for the serialization format |
When the Archive corresponds to an output archive, the & operator is defined similar to <<. Likewise, when the Archive is a type of input archive, the & operator is defined similar to >>.
References myCrossrange, myDownrange, myImageDataType, myImageFormat, myImageRotation, myImageSizeX, myImageSizeY, myIsAgcPowerEnabled, myOpenSarResponseWindow, myOwnshipAbsoluteAlt, myOwnshipAbsoluteLat, myOwnshipAbsoluteLon, myOwnshipEntityName, myOwnshipMode, myOwnshipObserverName, myOwnshipSpeed, myPower, mySaveOnServer, mySensorToUse, myServerIp, myServerPort, myServerSavePath, myTargetAbsoluteAlt, myTargetAbsoluteLat, myTargetAbsoluteLon, myTargetEntityName, myTargetMode, myTargetObserverName, and myTargetSensorName.
|
friend |
Grants access to boost serialization.
|
protected |
Ownship positioning mode 1=simulated entity location 2=observer location 3=geodetic (deg) location.
Referenced by serialize().
|
protected |
Name of the entity to use for ownship positioning.
Referenced by serialize().
|
protected |
Name of the observer to use for ownship positioning.
Referenced by serialize().
|
protected |
Absolute latitude for ownship positioning (degrees)
Referenced by serialize().
|
protected |
Absolute longitude for ownship positioning (degrees)
Referenced by serialize().
|
protected |
Absolute altitude for ownship positioning (meters)
Referenced by serialize().
|
protected |
Target positioning mode 1=simulated entity location 2=observer location 3=geodetic (deg) location 4=mouse click location 5=sensor location.
Referenced by serialize().
|
protected |
Name of the entity to use for target positioning.
Referenced by serialize().
|
protected |
Name of the observer to use for target positioning.
Referenced by serialize().
|
protected |
Name of the sensor to use for target positioning.
Referenced by serialize().
|
protected |
Absolute latitude for target positioning (degrees)
Referenced by serialize().
|
protected |
Absolute longitude for target positioning (degrees)
Referenced by serialize().
|
protected |
Absolute altitude for target positioning (meters)
Referenced by serialize().
|
protected |
Image width in pixels.
Referenced by serialize().
|
protected |
Image height in pixels.
Referenced by serialize().
|
protected |
Image rotation in degrees.
Referenced by serialize().
|
protected |
Image format index.
Referenced by serialize().
|
protected |
Image data type index.
Referenced by serialize().
|
protected |
Name of the sensor to use for imaging.
Referenced by serialize().
|
protected |
Flag indicating if images should be saved on the server.
Referenced by serialize().
|
protected |
Path where images are saved on the server.
Referenced by serialize().
|
protected |
Flag indicating if Automatic Gain Control is enabled for power.
Referenced by serialize().
|
protected |
Radar power level.
Referenced by serialize().
|
protected |
|
protected |
Crossrange distance in meters.
Distance perpendicular to aircraft heading
Referenced by serialize().
|
protected |
Ownship speed in meters per second when SAR image is requested.
Referenced by serialize().
|
protected |
RadarFx server IP address.
Referenced by serialize().
|
protected |
RadarFx server port number.
Referenced by serialize().
|
protected |
Flag indicating if SAR response window should automatically open.
Referenced by serialize().