VR-Engage  2.2
Loading...
Searching...
No Matches
DtRwRadarStateInfo Class Reference

Detailed Description

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>

Inheritance diagram for DtRwRadarStateInfo:
[legend]

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
 
DtRwRadarStateInfooperator= (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 DtRwRadarStateInfoclone () 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
 

Constructor & Destructor Documentation

◆ DtRwRadarStateInfo() [1/4]

DtRwRadarStateInfo::DtRwRadarStateInfo ( )

Default constructor.

Initializes a radar state info object with default values.

Referenced by clone(), DtRwRadarStateInfo(), operator!=(), operator=(), and operator==().

◆ DtRwRadarStateInfo() [2/4]

DtRwRadarStateInfo::DtRwRadarStateInfo ( const DtString & name,
DtReaderWriterRegistry *const parentRegistry = NULL )

Constructor with name.

Parameters
nameThe name of the radar state
parentRegistryOptional reader-writer registry for serialization

◆ DtRwRadarStateInfo() [3/4]

DtRwRadarStateInfo::DtRwRadarStateInfo ( const DtSymbolString & name,
DtReaderWriterRegistry *const parentRegistry = NULL )

Constructor with symbol name.

Parameters
nameThe symbol name of the radar state
parentRegistryOptional reader-writer registry for serialization

◆ DtRwRadarStateInfo() [4/4]

DtRwRadarStateInfo::DtRwRadarStateInfo ( const DtRwRadarStateInfo & orig,
DtReaderWriterRegistry *const parentRegistry = NULL )

Copy constructor.

Parameters
origThe radar state info to copy from
parentRegistryOptional reader-writer registry for serialization

References DtRwRadarStateInfo().

◆ ~DtRwRadarStateInfo()

virtual DtRwRadarStateInfo::~DtRwRadarStateInfo ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ operator=()

DtRwRadarStateInfo & DtRwRadarStateInfo::operator= ( const DtRwRadarStateInfo & orig)

Assignment operator.

Parameters
origThe radar state info to copy from
Returns
Reference to this object after assignment

References DtRwRadarStateInfo().

◆ setMode()

virtual void DtRwRadarStateInfo::setMode ( const DtString & val)
virtual

Sets the radar's operating mode.

Parameters
valThe mode string to set (e.g., "Search", "Track", "Standby")

Sets the primary operational mode of the radar system.

◆ mode()

virtual DtString DtRwRadarStateInfo::mode ( ) const
virtual

Gets the radar's operating mode.

Returns
The current radar mode

◆ setSubmode()

virtual void DtRwRadarStateInfo::setSubmode ( const DtString & val)
virtual

Sets the radar's operating submode.

Parameters
valThe submode string to set

Sets the submode within the current operational mode.

◆ submode()

virtual DtString DtRwRadarStateInfo::submode ( ) const
virtual

Gets the radar's operating submode.

Returns
The current radar submode

◆ setAntennaCenterAzimuth()

virtual void DtRwRadarStateInfo::setAntennaCenterAzimuth ( double val)
virtual

Sets the antenna center azimuth angle.

Parameters
valThe center azimuth angle in degrees

Sets the center of the radar's azimuth scan pattern.

◆ antennaCenterAzimuth()

virtual double DtRwRadarStateInfo::antennaCenterAzimuth ( ) const
virtual

Gets the antenna center azimuth angle.

Returns
The center azimuth angle in degrees

◆ setAntennaCenterElevation()

virtual void DtRwRadarStateInfo::setAntennaCenterElevation ( double val)
virtual

Sets the antenna center elevation angle.

Parameters
valThe center elevation angle in degrees

Sets the center of the radar's elevation scan pattern.

◆ antennaCenterElevation()

virtual double DtRwRadarStateInfo::antennaCenterElevation ( ) const
virtual

Gets the antenna center elevation angle.

Returns
The center elevation angle in degrees

◆ setAntennaMinElevation()

virtual void DtRwRadarStateInfo::setAntennaMinElevation ( double val)
virtual

Sets the antenna minimum elevation angle.

Parameters
valThe minimum elevation angle in degrees

Sets the lower limit of the radar's elevation scan pattern.

◆ antennaMinElevation()

virtual double DtRwRadarStateInfo::antennaMinElevation ( ) const
virtual

Gets the antenna minimum elevation angle.

Returns
The minimum elevation angle in degrees

◆ setAntennaMaxElevation()

virtual void DtRwRadarStateInfo::setAntennaMaxElevation ( double val)
virtual

Sets the antenna maximum elevation angle.

Parameters
valThe maximum elevation angle in degrees

Sets the upper limit of the radar's elevation scan pattern.

◆ antennaMaxElevation()

virtual double DtRwRadarStateInfo::antennaMaxElevation ( ) const
virtual

Gets the antenna maximum elevation angle.

Returns
The maximum elevation angle in degrees

◆ setAntennaGateSize()

virtual void DtRwRadarStateInfo::setAntennaGateSize ( double val)
virtual

Sets the antenna gate size.

Parameters
valThe gate size in degrees

Sets the angular size of the radar's detection gate.

◆ antennaGateSize()

virtual double DtRwRadarStateInfo::antennaGateSize ( ) const
virtual

Gets the antenna gate size.

Returns
The gate size in degrees

◆ setAntennaCurrentAzimuth()

virtual void DtRwRadarStateInfo::setAntennaCurrentAzimuth ( double val)
virtual

Sets the antenna current azimuth angle.

Parameters
valThe current azimuth angle in degrees

Sets the current instantaneous azimuth angle of the radar beam.

◆ antennaCurrentAzimuth()

virtual double DtRwRadarStateInfo::antennaCurrentAzimuth ( ) const
virtual

Gets the antenna current azimuth angle.

Returns
The current azimuth angle in degrees

◆ setAntennaCurrentElevation()

virtual void DtRwRadarStateInfo::setAntennaCurrentElevation ( double val)
virtual

Sets the antenna current elevation angle.

Parameters
valThe current elevation angle in degrees

Sets the current instantaneous elevation angle of the radar beam.

◆ antennaCurrentElevation()

virtual double DtRwRadarStateInfo::antennaCurrentElevation ( ) const
virtual

Gets the antenna current elevation angle.

Returns
The current elevation angle in degrees

◆ setAntennaCurrentAzimuthRate()

virtual void DtRwRadarStateInfo::setAntennaCurrentAzimuthRate ( double val)
virtual

Sets the antenna current azimuth scan rate.

Parameters
valThe current azimuth scan rate in degrees per second

Sets the rate at which the radar beam is currently sweeping in azimuth.

◆ antennaCurrentAzimuthRate()

virtual double DtRwRadarStateInfo::antennaCurrentAzimuthRate ( ) const
virtual

Gets the antenna current azimuth scan rate.

Returns
The current azimuth scan rate in degrees per second

◆ setBarCount()

virtual void DtRwRadarStateInfo::setBarCount ( int val)
virtual

Sets the number of scan bars.

Parameters
valThe number of scan bars

Sets the number of horizontal scan bars in the radar's scan pattern.

◆ barCount()

virtual int DtRwRadarStateInfo::barCount ( ) const
virtual

Gets the number of scan bars.

Returns
The number of scan bars

◆ clone()

virtual DtRwRadarStateInfo * DtRwRadarStateInfo::clone ( ) const
virtual

Creates a deep copy of this object.

Returns
Pointer to a newly created clone of this class

Returns a dynamically allocated copy of this radar state info.

References DtRwRadarStateInfo().

◆ operator==()

bool DtRwRadarStateInfo::operator== ( const DtRwRadarStateInfo & other) const

Equality comparison operator.

Parameters
otherThe radar state info to compare with
Returns
True if the objects are equal, false otherwise

References DtRwRadarStateInfo().

◆ operator!=()

bool DtRwRadarStateInfo::operator!= ( const DtRwRadarStateInfo & rhs)
inline

Inequality comparison operator.

Parameters
rhsThe radar state info to compare with
Returns
True if the objects are not equal, false otherwise

References DtRwRadarStateInfo().

◆ encode()

virtual char * DtRwRadarStateInfo::encode ( char * buffer) const
virtual

Encodes this object to a buffer.

Parameters
bufferThe buffer to encode into
Returns
Pointer to the buffer after the encoded data

◆ decode()

virtual const char * DtRwRadarStateInfo::decode ( const char * buffer)
virtual

Decodes this object from a buffer.

Parameters
bufferThe buffer to decode from
Returns
Pointer to the buffer after the decoded data

◆ getSize()

virtual int DtRwRadarStateInfo::getSize ( ) const
virtual

Gets the size of the encoded data in bytes.

Returns
The size in bytes

Member Data Documentation

◆ myMode

DtRwString DtRwRadarStateInfo::myMode
protected

Primary mode of radar operation (e.g., "Search", "Track")

◆ mySubmode

DtRwString DtRwRadarStateInfo::mySubmode
protected

Submode of radar operation within the primary mode.

◆ myAntennaCenterAzimuth

DtRwReal DtRwRadarStateInfo::myAntennaCenterAzimuth
protected

Center azimuth angle of the radar scan pattern (degrees)

◆ myAntennaCenterElevation

DtRwReal DtRwRadarStateInfo::myAntennaCenterElevation
protected

Center elevation angle of the radar scan pattern (degrees)

◆ myAntennaMinElevation

DtRwReal DtRwRadarStateInfo::myAntennaMinElevation
protected

Minimum elevation angle of the radar scan pattern (degrees)

◆ myAntennaMaxElevation

DtRwReal DtRwRadarStateInfo::myAntennaMaxElevation
protected

Maximum elevation angle of the radar scan pattern (degrees)

◆ myAntennaGateSize

DtRwReal DtRwRadarStateInfo::myAntennaGateSize
protected

Angular size of the radar detection gate (degrees)

◆ myAntennaCurrentAzimuth

DtRwReal DtRwRadarStateInfo::myAntennaCurrentAzimuth
protected

Current instantaneous azimuth angle of the radar beam (degrees)

◆ myAntennaCurrentElevation

DtRwReal DtRwRadarStateInfo::myAntennaCurrentElevation
protected

Current instantaneous elevation angle of the radar beam (degrees)

◆ myAntennaCurrentAzimuthRate

DtRwReal DtRwRadarStateInfo::myAntennaCurrentAzimuthRate
protected

Current rate of azimuth scanning (degrees/second)

◆ myBarCount

DtRwInt DtRwRadarStateInfo::myBarCount
protected

Number of horizontal scan bars in the radar scan pattern.


The documentation for this class was generated from the following file: