|
VR-Engage
2.2
|
This class represents the data gathered by an RWR about a particular emitter (radar) detected in the environment. It provides information about the contact's position, signal characteristics, and emitter identification. This is a readable/writable class that can store and read itself from a file. Note that entity IDs are not persisted, as they change between scenario runs.
#include <rwRwrContactInfo.h>
Public Member Functions | |
| DtRwRwrContactInfo () | |
| DtRwRwrContactInfo (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| DtRwRwrContactInfo (const DtSymbolString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| DtRwRwrContactInfo (const DtRwRwrContactInfo &orig, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| virtual | ~DtRwRwrContactInfo () override |
| DtRwRwrContactInfo & | operator= (const DtRwRwrContactInfo &orig) |
| virtual void | setContactAzimuth (double azimuth) |
| virtual double | contactAzimuth () const |
| virtual void | setContactElevation (double elevation) |
| virtual double | contactElevation () const |
| virtual void | setContactRange (double range) |
| virtual double | contactRange () const |
| virtual void | setContactRadarMode (int mode) |
| virtual int | contactRadarMode () const |
| virtual void | setContactPower (double power) |
| virtual double | contactPower () const |
| virtual void | setEmitterSystemId (const DtString &id) |
| virtual DtString | emitterSystemId () const |
| DtRwTemplatedUUIDList & | targets () |
| virtual DtRwRwrContactInfo * | clone () const |
| bool | operator== (const DtRwRwrContactInfo &other) const |
| bool | operator!= (const DtRwRwrContactInfo &rhs) |
| virtual char * | encode (char *buffer) const |
| virtual const char * | decode (const char *buffer) |
| virtual int | getSize () const |
Protected Attributes | |
| DtRwReal | myContactAzimuth |
| DtRwReal | myContactElevation |
| DtRwReal | myContactRange |
| DtRwInt | myRadarMode |
| DtRwReal | mySignalPower |
| DtRwString | myEmitterSystemId |
| DtRwTemplatedUUIDList | myTargets |
| DtRwRwrContactInfo::DtRwRwrContactInfo | ( | ) |
Default constructor.
Initializes an RWR contact info object with default values.
Referenced by clone(), DtRwRwrContactInfo(), operator!=(), operator=(), and operator==().
| DtRwRwrContactInfo::DtRwRwrContactInfo | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Constructor with name.
| name | The name of the RWR contact |
| parentRegistry | Optional reader-writer registry for serialization |
| DtRwRwrContactInfo::DtRwRwrContactInfo | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Constructor with symbol name.
| name | The symbol name of the RWR contact |
| parentRegistry | Optional reader-writer registry for serialization |
| DtRwRwrContactInfo::DtRwRwrContactInfo | ( | const DtRwRwrContactInfo & | orig, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Copy constructor.
| orig | The RWR contact info to copy from |
| parentRegistry | Optional reader-writer registry for serialization |
References DtRwRwrContactInfo().
|
overridevirtual |
Virtual destructor.
| DtRwRwrContactInfo & DtRwRwrContactInfo::operator= | ( | const DtRwRwrContactInfo & | orig | ) |
Assignment operator.
| orig | The RWR contact info to copy from |
References DtRwRwrContactInfo().
|
virtual |
Sets the contact's azimuth relative to the platform's heading.
| azimuth | The azimuth angle in degrees |
Sets the azimuth angle (in degrees) of the contact relative to the platform's heading. Negative azimuth values indicate the contact is towards the left.
|
virtual |
Gets the contact's azimuth.
|
virtual |
Sets the contact's elevation angle.
| elevation | The elevation angle in degrees |
Sets the elevation angle (in degrees) of the contact relative to the platform.
|
virtual |
Gets the contact's elevation angle.
|
virtual |
Sets the range to the contact.
| range | The range in meters |
Sets the straight-line distance to the contact in meters.
|
virtual |
Gets the range to the contact.
|
virtual |
Sets the radar mode of the contact.
| mode | The radar mode identifier |
Sets the operational mode of the radar emitter that this contact represents.
|
virtual |
Gets the radar mode of the contact.
|
virtual |
Sets the received signal power.
| power | The signal power in Watts |
Sets the power of the signal received from this contact, measured in Watts.
|
virtual |
Gets the received signal power.
|
virtual |
Sets the emitter system identifier.
| id | The emitter system identifier string |
Sets the identifier for the emitter system type of this contact.
|
virtual |
Gets the emitter system identifier.
| DtRwTemplatedUUIDList & DtRwRwrContactInfo::targets | ( | ) |
Gets the list of target UUIDs associated with this contact.
Returns a reference to the list of entity UUIDs targeted by this emitter.
|
virtual |
Creates a deep copy of this object.
Returns a dynamically allocated copy of this RWR contact info.
References DtRwRwrContactInfo().
| bool DtRwRwrContactInfo::operator== | ( | const DtRwRwrContactInfo & | other | ) | const |
Equality comparison operator.
| other | The RWR contact info to compare with |
References DtRwRwrContactInfo().
|
inline |
Inequality comparison operator.
| rhs | The RWR contact info to compare with |
References DtRwRwrContactInfo().
|
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.
|
protected |
Azimuth angle to the contact relative to platform heading (degrees)
|
protected |
Elevation angle to the contact relative to platform (degrees)
|
protected |
Range to the contact (meters)
|
protected |
Operational mode of the radar emitter.
|
protected |
Received signal power (Watts)
|
protected |
Identifier for the emitter system type.
|
protected |
List of entity UUIDs targeted by this emitter.