|
VR-Engage
2.2
|
This class represents the current operational state of a radar system, including its mode, scan patterns, and antenna parameters. It is a readable/writable class that can store itself and read itself from a file. This enables persistent storage of radar configuration between scenario runs.
#include <rwRadarStateInfo.h>
Public Member Functions | |
| DtRwRadarStateInfo () | |
| DtRwRadarStateInfo (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| DtRwRadarStateInfo (const DtSymbolString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| DtRwRadarStateInfo (const DtRwRadarStateInfo &orig, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| virtual | ~DtRwRadarStateInfo () override |
| DtRwRadarStateInfo & | operator= (const DtRwRadarStateInfo &orig) |
| virtual void | setMode (const DtString &val) |
| virtual DtString | mode () const |
| virtual void | setSubmode (const DtString &val) |
| virtual DtString | submode () const |
| virtual void | setAntennaCenterAzimuth (double val) |
| virtual double | antennaCenterAzimuth () const |
| virtual void | setAntennaCenterElevation (double val) |
| virtual double | antennaCenterElevation () const |
| virtual void | setAntennaMinElevation (double val) |
| virtual double | antennaMinElevation () const |
| virtual void | setAntennaMaxElevation (double val) |
| virtual double | antennaMaxElevation () const |
| virtual void | setAntennaGateSize (double val) |
| virtual double | antennaGateSize () const |
| virtual void | setAntennaCurrentAzimuth (double val) |
| virtual double | antennaCurrentAzimuth () const |
| virtual void | setAntennaCurrentElevation (double val) |
| virtual double | antennaCurrentElevation () const |
| virtual void | setAntennaCurrentAzimuthRate (double val) |
| virtual double | antennaCurrentAzimuthRate () const |
| virtual void | setBarCount (int val) |
| virtual int | barCount () const |
| virtual DtRwRadarStateInfo * | clone () const |
| bool | operator== (const DtRwRadarStateInfo &other) const |
| bool | operator!= (const DtRwRadarStateInfo &rhs) |
| virtual char * | encode (char *buffer) const |
| virtual const char * | decode (const char *buffer) |
| virtual int | getSize () const |
Protected Attributes | |
| DtRwString | myMode |
| DtRwString | mySubmode |
| DtRwReal | myAntennaCenterAzimuth |
| DtRwReal | myAntennaCenterElevation |
| DtRwReal | myAntennaMinElevation |
| DtRwReal | myAntennaMaxElevation |
| DtRwReal | myAntennaGateSize |
| DtRwReal | myAntennaCurrentAzimuth |
| DtRwReal | myAntennaCurrentElevation |
| DtRwReal | myAntennaCurrentAzimuthRate |
| DtRwInt | myBarCount |
| DtRwRadarStateInfo::DtRwRadarStateInfo | ( | ) |
Default constructor.
Initializes a radar state info object with default values.
Referenced by clone(), DtRwRadarStateInfo(), operator!=(), operator=(), and operator==().
| DtRwRadarStateInfo::DtRwRadarStateInfo | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Constructor with name.
| name | The name of the radar state |
| parentRegistry | Optional reader-writer registry for serialization |
| DtRwRadarStateInfo::DtRwRadarStateInfo | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Constructor with symbol name.
| name | The symbol name of the radar state |
| parentRegistry | Optional reader-writer registry for serialization |
| DtRwRadarStateInfo::DtRwRadarStateInfo | ( | const DtRwRadarStateInfo & | orig, |
| DtReaderWriterRegistry *const | parentRegistry = NULL ) |
Copy constructor.
| orig | The radar state info to copy from |
| parentRegistry | Optional reader-writer registry for serialization |
References DtRwRadarStateInfo().
|
overridevirtual |
Virtual destructor.
| DtRwRadarStateInfo & DtRwRadarStateInfo::operator= | ( | const DtRwRadarStateInfo & | orig | ) |
Assignment operator.
| orig | The radar state info to copy from |
References DtRwRadarStateInfo().
|
virtual |
Sets the radar's operating mode.
| val | The mode string to set (e.g., "Search", "Track", "Standby") |
Sets the primary operational mode of the radar system.
|
virtual |
Gets the radar's operating mode.
|
virtual |
Sets the radar's operating submode.
| val | The submode string to set |
Sets the submode within the current operational mode.
|
virtual |
Gets the radar's operating submode.
|
virtual |
Sets the antenna center azimuth angle.
| val | The center azimuth angle in degrees |
Sets the center of the radar's azimuth scan pattern.
|
virtual |
Gets the antenna center azimuth angle.
|
virtual |
Sets the antenna center elevation angle.
| val | The center elevation angle in degrees |
Sets the center of the radar's elevation scan pattern.
|
virtual |
Gets the antenna center elevation angle.
|
virtual |
Sets the antenna minimum elevation angle.
| val | The minimum elevation angle in degrees |
Sets the lower limit of the radar's elevation scan pattern.
|
virtual |
Gets the antenna minimum elevation angle.
|
virtual |
Sets the antenna maximum elevation angle.
| val | The maximum elevation angle in degrees |
Sets the upper limit of the radar's elevation scan pattern.
|
virtual |
Gets the antenna maximum elevation angle.
|
virtual |
Sets the antenna gate size.
| val | The gate size in degrees |
Sets the angular size of the radar's detection gate.
|
virtual |
Gets the antenna gate size.
|
virtual |
Sets the antenna current azimuth angle.
| val | The current azimuth angle in degrees |
Sets the current instantaneous azimuth angle of the radar beam.
|
virtual |
Gets the antenna current azimuth angle.
|
virtual |
Sets the antenna current elevation angle.
| val | The current elevation angle in degrees |
Sets the current instantaneous elevation angle of the radar beam.
|
virtual |
Gets the antenna current elevation angle.
|
virtual |
Sets the antenna current azimuth scan rate.
| val | The current azimuth scan rate in degrees per second |
Sets the rate at which the radar beam is currently sweeping in azimuth.
|
virtual |
Gets the antenna current azimuth scan rate.
|
virtual |
Sets the number of scan bars.
| val | The number of scan bars |
Sets the number of horizontal scan bars in the radar's scan pattern.
|
virtual |
Gets the number of scan bars.
|
virtual |
Creates a deep copy of this object.
Returns a dynamically allocated copy of this radar state info.
References DtRwRadarStateInfo().
| bool DtRwRadarStateInfo::operator== | ( | const DtRwRadarStateInfo & | other | ) | const |
Equality comparison operator.
| other | The radar state info to compare with |
References DtRwRadarStateInfo().
|
inline |
Inequality comparison operator.
| rhs | The radar state info to compare with |
References DtRwRadarStateInfo().
|
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 |
Primary mode of radar operation (e.g., "Search", "Track")
|
protected |
Submode of radar operation within the primary mode.
|
protected |
Center azimuth angle of the radar scan pattern (degrees)
|
protected |
Center elevation angle of the radar scan pattern (degrees)
|
protected |
Minimum elevation angle of the radar scan pattern (degrees)
|
protected |
Maximum elevation angle of the radar scan pattern (degrees)
|
protected |
Angular size of the radar detection gate (degrees)
|
protected |
Current instantaneous azimuth angle of the radar beam (degrees)
|
protected |
Current instantaneous elevation angle of the radar beam (degrees)
|
protected |
Current rate of azimuth scanning (degrees/second)
|
protected |
Number of horizontal scan bars in the radar scan pattern.