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

Detailed Description

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>

Inheritance diagram for DtRwRadarContactInfo:
[legend]

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
 
DtRwRadarContactInfooperator= (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 DtRwRadarContactInfoclone () 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
 

Constructor & Destructor Documentation

◆ DtRwRadarContactInfo() [1/4]

DtRwRadarContactInfo::DtRwRadarContactInfo ( )

Default constructor.

Initializes a radar contact info object with default values.

Referenced by clone(), DtRwRadarContactInfo(), operator=(), and operator==().

◆ DtRwRadarContactInfo() [2/4]

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

Constructor with name.

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

◆ DtRwRadarContactInfo() [3/4]

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

Constructor with symbol name.

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

◆ DtRwRadarContactInfo() [4/4]

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

Copy constructor.

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

References DtRwRadarContactInfo().

◆ ~DtRwRadarContactInfo()

virtual DtRwRadarContactInfo::~DtRwRadarContactInfo ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ operator=()

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

Assignment operator.

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

References DtRwRadarContactInfo().

◆ isDesignated()

virtual bool DtRwRadarContactInfo::isDesignated ( ) const
virtual

Checks if this contact is designated by the radar scope.

Returns
True if the contact is designated, false otherwise

◆ setIsDesignated()

virtual void DtRwRadarContactInfo::setIsDesignated ( bool val)
virtual

Sets whether this contact is designated.

Parameters
valTrue to designate the contact, false otherwise

◆ targetPriority()

virtual int DtRwRadarContactInfo::targetPriority ( ) const
virtual

Gets the target's priority in the radar scope.

Returns
The target priority value

Higher values typically indicate higher priority targets.

◆ setTargetPriority()

virtual void DtRwRadarContactInfo::setTargetPriority ( int val)
virtual

Sets the target's priority in the radar scope.

Parameters
valThe priority value to set

◆ trackId()

virtual int DtRwRadarContactInfo::trackId ( ) const
virtual

Gets the radar track ID.

Returns
The track ID value

This is a unique identifier for the radar track.

◆ setTrackId()

virtual void DtRwRadarContactInfo::setTrackId ( int val)
virtual

Sets the radar track ID.

Parameters
valThe track ID value to set

◆ contactLabel()

virtual std::string DtRwRadarContactInfo::contactLabel ( ) const
virtual

Gets the contact's label.

Returns
The contact label string

This is typically a string representation of the entity type, e.g., "29" for a MiG-29 contact.

◆ setContactLabel()

virtual void DtRwRadarContactInfo::setContactLabel ( std::string val)
virtual

Sets the contact's label.

Parameters
valThe contact label to set

◆ azimuth()

virtual double DtRwRadarContactInfo::azimuth ( ) const
virtual

Gets the contact's azimuth in degrees.

Returns
The azimuth angle in degrees

Contact azimuth (degrees) relative to the platform's heading. Negative azimuth is towards the left.

◆ setAzimuth()

virtual void DtRwRadarContactInfo::setAzimuth ( double val)
virtual

Sets the contact's azimuth.

Parameters
valThe azimuth angle in degrees

◆ elevation()

virtual double DtRwRadarContactInfo::elevation ( ) const
virtual

Gets the contact's elevation in degrees.

Returns
The elevation angle in degrees

Contact elevation (degrees) relative to the platform's pitch.

◆ setElevation()

virtual void DtRwRadarContactInfo::setElevation ( double val)
virtual

Sets the contact's elevation.

Parameters
valThe elevation angle in degrees

◆ range()

virtual double DtRwRadarContactInfo::range ( ) const
virtual

Gets the range to the contact in meters.

Returns
The range in meters

Straight-line distance from the platform to the contact.

◆ setRange()

virtual void DtRwRadarContactInfo::setRange ( double val)
virtual

Sets the range to the contact.

Parameters
valThe range in meters

◆ altitude()

virtual double DtRwRadarContactInfo::altitude ( ) const
virtual

Gets the contact's altitude in meters.

Returns
The altitude in meters

Altitude of the contact above mean sea level.

◆ setAltitude()

virtual void DtRwRadarContactInfo::setAltitude ( double val)
virtual

Sets the contact's altitude.

Parameters
valThe altitude in meters

◆ closureRate()

virtual double DtRwRadarContactInfo::closureRate ( ) const
virtual

Gets the closure rate to the contact in meters per second.

Returns
The closure rate in m/s

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.

◆ setClosureRate()

virtual void DtRwRadarContactInfo::setClosureRate ( double val)
virtual

Sets the closure rate to the contact.

Parameters
valThe closure rate in m/s

◆ signalStrength()

virtual double DtRwRadarContactInfo::signalStrength ( ) const
virtual

Gets the signal strength in Watts.

Returns
The signal strength in Watts

Detection signal power in Watts. Higher values indicate stronger radar returns.

◆ setSignalStrength()

virtual void DtRwRadarContactInfo::setSignalStrength ( double val)
virtual

Sets the signal strength.

Parameters
valThe signal strength in Watts

◆ targetAspectAngle()

virtual double DtRwRadarContactInfo::targetAspectAngle ( ) const
virtual

Gets the target aspect angle in degrees.

Returns
The 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).

◆ setTargetAspectAngle()

virtual void DtRwRadarContactInfo::setTargetAspectAngle ( double val)
virtual

Sets the target aspect angle.

Parameters
valThe aspect angle in degrees

◆ machNumber()

virtual double DtRwRadarContactInfo::machNumber ( ) const
virtual

Gets the contact's speed in Mach number.

Returns
The speed in Mach number

Speed of the contact measured in Mach numbers.

◆ setMachNumber()

virtual void DtRwRadarContactInfo::setMachNumber ( double val)
virtual

Sets the contact's speed in Mach number.

Parameters
valThe speed in Mach number

◆ encode()

virtual char * DtRwRadarContactInfo::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 * DtRwRadarContactInfo::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 DtRwRadarContactInfo::getSize ( ) const
virtual

Gets the size of the encoded data in bytes.

Returns
The size in bytes

◆ clone()

virtual DtRwRadarContactInfo * DtRwRadarContactInfo::clone ( ) const
overridevirtual

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 contact info.

References DtRwRadarContactInfo().

◆ operator==()

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

Equality comparison operator.

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

References DtRwRadarContactInfo().

Member Data Documentation

◆ myIsDesignated

DtRwBoolean DtRwRadarContactInfo::myIsDesignated
protected

Flag indicating if this contact is designated by the radar scope.

◆ myTargetPriority

DtRwInt DtRwRadarContactInfo::myTargetPriority
protected

The target's priority in the radar scope, if designated.

◆ myTrackId

DtRwInt DtRwRadarContactInfo::myTrackId
protected

Radar Track ID for unique identification.

◆ myContactLabel

DtRwString DtRwRadarContactInfo::myContactLabel
protected

The label of the contact's entity type (e.g., "29" for a MiG-29)

◆ myAzimuth

DtRwReal DtRwRadarContactInfo::myAzimuth
protected

Angle to contact relative to observer's heading (degrees)

◆ myElevation

DtRwReal DtRwRadarContactInfo::myElevation
protected

Angle to contact relative to observer's pitch (degrees)

◆ myRange

DtRwReal DtRwRadarContactInfo::myRange
protected

Range to contact (meters)

◆ myAltitude

DtRwReal DtRwRadarContactInfo::myAltitude
protected

Altitude of contact (meters)

◆ myClosureRate

DtRwReal DtRwRadarContactInfo::myClosureRate
protected

Closure rate between observer and target (meters/second)

◆ mySignalStrength

DtRwReal DtRwRadarContactInfo::mySignalStrength
protected

Detection signal strength (watts)

◆ myTargetAspectAngle

DtRwReal DtRwRadarContactInfo::myTargetAspectAngle
protected

Angle to observer relative to contact's heading (degrees)

◆ myMachNumber

DtRwReal DtRwRadarContactInfo::myMachNumber
protected

Speed of contact in Mach number.


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