|
VR-Engage
2.2
|
This class provides detailed information about radar contacts for use with Radar Scope and EWAWS (Electronic Warfare and Avionics Weapon Systems) extended radar functionality. It contains all relevant positional, signal, and identification information needed for radar simulation and display.
#include <rwRadarContactInfo.h>
Public Member Functions | |
| DtRwRadarContactInfo () | |
| DtRwRadarContactInfo (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| DtRwRadarContactInfo (const DtSymbolString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| DtRwRadarContactInfo (const DtRwRadarContactInfo &orig, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| virtual | ~DtRwRadarContactInfo () override |
| DtRwRadarContactInfo & | operator= (const DtRwRadarContactInfo &orig) |
| virtual bool | isDesignated () const |
| virtual void | setIsDesignated (bool val) |
| virtual int | targetPriority () const |
| virtual void | setTargetPriority (int val) |
| virtual int | trackId () const |
| virtual void | setTrackId (int val) |
| virtual std::string | contactLabel () const |
| virtual void | setContactLabel (std::string val) |
| virtual double | azimuth () const |
| virtual void | setAzimuth (double val) |
| virtual double | elevation () const |
| virtual void | setElevation (double val) |
| virtual double | range () const |
| virtual void | setRange (double val) |
| virtual double | altitude () const |
| virtual void | setAltitude (double val) |
| virtual double | closureRate () const |
| virtual void | setClosureRate (double val) |
| virtual double | signalStrength () const |
| virtual void | setSignalStrength (double val) |
| virtual double | targetAspectAngle () const |
| virtual void | setTargetAspectAngle (double val) |
| virtual double | machNumber () const |
| virtual void | setMachNumber (double val) |
| virtual char * | encode (char *buffer) const |
| virtual const char * | decode (const char *buffer) |
| virtual int | getSize () const |
| virtual DtRwRadarContactInfo * | clone () const override |
| bool | operator== (const DtRwRadarContactInfo &other) const |
Protected Attributes | |
| DtRwBoolean | myIsDesignated |
| DtRwInt | myTargetPriority |
| DtRwInt | myTrackId |
| DtRwString | myContactLabel |
| DtRwReal | myAzimuth |
| DtRwReal | myElevation |
| DtRwReal | myRange |
| DtRwReal | myAltitude |
| DtRwReal | myClosureRate |
| DtRwReal | mySignalStrength |
| DtRwReal | myTargetAspectAngle |
| DtRwReal | myMachNumber |
| DtRwRadarContactInfo::DtRwRadarContactInfo | ( | ) |
Default constructor.
Initializes a radar contact info object with default values.
Referenced by clone(), DtRwRadarContactInfo(), operator=(), and operator==().
| DtRwRadarContactInfo::DtRwRadarContactInfo | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Constructor with name.
| name | The name of the radar contact |
| parentRegistry | Optional reader-writer registry for serialization |
| DtRwRadarContactInfo::DtRwRadarContactInfo | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Constructor with symbol name.
| name | The symbol name of the radar contact |
| parentRegistry | Optional reader-writer registry for serialization |
| DtRwRadarContactInfo::DtRwRadarContactInfo | ( | const DtRwRadarContactInfo & | orig, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Copy constructor.
| orig | The radar contact info to copy from |
| parentRegistry | Optional reader-writer registry for serialization |
References DtRwRadarContactInfo().
|
overridevirtual |
Virtual destructor.
| DtRwRadarContactInfo & DtRwRadarContactInfo::operator= | ( | const DtRwRadarContactInfo & | orig | ) |
Assignment operator.
| orig | The radar contact info to copy from |
References DtRwRadarContactInfo().
|
virtual |
Checks if this contact is designated by the radar scope.
|
virtual |
Sets whether this contact is designated.
| val | True to designate the contact, false otherwise |
|
virtual |
Gets the target's priority in the radar scope.
Higher values typically indicate higher priority targets.
|
virtual |
Sets the target's priority in the radar scope.
| val | The priority value to set |
|
virtual |
Gets the radar track ID.
This is a unique identifier for the radar track.
|
virtual |
Sets the radar track ID.
| val | The track ID value to set |
|
virtual |
Gets the contact's label.
This is typically a string representation of the entity type, e.g., "29" for a MiG-29 contact.
|
virtual |
Sets the contact's label.
| val | The contact label to set |
|
virtual |
Gets the contact's azimuth in degrees.
Contact azimuth (degrees) relative to the platform's heading. Negative azimuth is towards the left.
|
virtual |
Sets the contact's azimuth.
| val | The azimuth angle in degrees |
|
virtual |
Gets the contact's elevation in degrees.
Contact elevation (degrees) relative to the platform's pitch.
|
virtual |
Sets the contact's elevation.
| val | The elevation angle in degrees |
|
virtual |
Gets the range to the contact in meters.
Straight-line distance from the platform to the contact.
|
virtual |
Sets the range to the contact.
| val | The range in meters |
|
virtual |
Gets the contact's altitude in meters.
Altitude of the contact above mean sea level.
|
virtual |
Sets the contact's altitude.
| val | The altitude in meters |
|
virtual |
Gets the closure rate to the contact in meters per second.
Closure rate of the target in meters per second. Positive values mean that the distance is decreasing. Negative values mean that the distance is increasing.
|
virtual |
Sets the closure rate to the contact.
| val | The closure rate in m/s |
|
virtual |
Gets the signal strength in Watts.
Detection signal power in Watts. Higher values indicate stronger radar returns.
|
virtual |
Sets the signal strength.
| val | The signal strength in Watts |
|
virtual |
Gets the target aspect angle in degrees.
Aspect angle of the target relative to the contact's heading. Return value is in [-180,180] range. If the return value is negative, then the radar-carrying platform has a left aspect (i.e., on the left hemisphere of the target).
|
virtual |
Sets the target aspect angle.
| val | The aspect angle in degrees |
|
virtual |
Gets the contact's speed in Mach number.
Speed of the contact measured in Mach numbers.
|
virtual |
Sets the contact's speed in Mach number.
| val | The speed in Mach number |
|
virtual |
Encodes this object to a buffer.
| buffer | The buffer to encode into |
|
virtual |
Decodes this object from a buffer.
| buffer | The buffer to decode from |
|
virtual |
Gets the size of the encoded data in bytes.
|
overridevirtual |
Creates a deep copy of this object.
Returns a dynamically allocated copy of this radar contact info.
References DtRwRadarContactInfo().
| bool DtRwRadarContactInfo::operator== | ( | const DtRwRadarContactInfo & | other | ) | const |
Equality comparison operator.
| other | The radar contact info to compare with |
References DtRwRadarContactInfo().
|
protected |
Flag indicating if this contact is designated by the radar scope.
|
protected |
The target's priority in the radar scope, if designated.
|
protected |
Radar Track ID for unique identification.
|
protected |
The label of the contact's entity type (e.g., "29" for a MiG-29)
|
protected |
Angle to contact relative to observer's heading (degrees)
|
protected |
Angle to contact relative to observer's pitch (degrees)
|
protected |
Range to contact (meters)
|
protected |
Altitude of contact (meters)
|
protected |
Closure rate between observer and target (meters/second)
|
protected |
Detection signal strength (watts)
|
protected |
Angle to observer relative to contact's heading (degrees)
|
protected |
Speed of contact in Mach number.