![]() |
VR-Link API Documentation for DIS
|
Instances of DtEmitterSystemStateEncoder are used to take state information from a DtEmitterSystemRepository and place it into an electromagnetic emissions PDU. More...
Inheritance diagram for DtEmitterSystemStateEncoder:
Collaboration diagram for DtEmitterSystemStateEncoder:Public Member Functions | |
| DtEmitterSystemStateEncoder () | |
| Default constructor. | |
| virtual | ~DtEmitterSystemStateEncoder () |
| Destructor. | |
| DtEmitterSystemStateEncoder (const DtEmitterSystemStateEncoder &orig) | |
| Copy constructor. | |
| DtEmitterSystemStateEncoder & | operator= (const DtEmitterSystemStateEncoder &orig) |
| Assignment operator. | |
| virtual DtElectromagneticEmissionPdu * | stateMsg (const DtEmitterSystemRepository &stateRep, const DtEmitterSystemRepository &asSeenByRemote) |
| Constructs a PDU from the state repository. | |
| virtual void | setAzimuthThreshold (double threshold) |
| Set the azimuth threshold. | |
| virtual double | azimuthThreshold () const |
| Returns the azimuth threshold (in radians). | |
| virtual void | setElevationThreshold (double threshold) |
| Set the elevation threshold. | |
| virtual double | elevationThreshold () const |
| Returns the elevation threshold (in radians). | |
Protected Member Functions | |
| virtual bool | sendNeeded (const DtEmitterSystemRepository &stateRep, const DtEmitterSystemRepository &asSeenByRemote) |
| Determine if a state message needs to be sent. | |
| virtual void | fillOut (const DtEmitterSystemRepository &stateRep, const DtEmitterSystemRepository &asSeenByRemote, DtElectromagneticEmissionPdu *pdu) |
| Fill out a state message which reflects a state repository. | |
Protected Attributes | |
| DtElectromagneticEmissionPdu | myAsPdu |
| double | myAzimuthThreshold |
| double | myElevationThreshold |
Instances of DtEmitterSystemStateEncoder are used to take state information from a DtEmitterSystemRepository and place it into an electromagnetic emissions PDU.
Default constructor.
| virtual DtEmitterSystemStateEncoder::~DtEmitterSystemStateEncoder | ( | ) | [virtual] |
Destructor.
| DtEmitterSystemStateEncoder::DtEmitterSystemStateEncoder | ( | const DtEmitterSystemStateEncoder & | orig | ) |
Copy constructor.
| virtual double DtEmitterSystemStateEncoder::azimuthThreshold | ( | ) | const [virtual] |
Returns the azimuth threshold (in radians).
| virtual double DtEmitterSystemStateEncoder::elevationThreshold | ( | ) | const [virtual] |
Returns the elevation threshold (in radians).
| virtual void DtEmitterSystemStateEncoder::fillOut | ( | const DtEmitterSystemRepository & | stateRep, |
| const DtEmitterSystemRepository & | asSeenByRemote, | ||
| DtElectromagneticEmissionPdu * | pdu | ||
| ) | [protected, virtual] |
Fill out a state message which reflects a state repository.
| DtEmitterSystemStateEncoder& DtEmitterSystemStateEncoder::operator= | ( | const DtEmitterSystemStateEncoder & | orig | ) |
Assignment operator.
| virtual bool DtEmitterSystemStateEncoder::sendNeeded | ( | const DtEmitterSystemRepository & | stateRep, |
| const DtEmitterSystemRepository & | asSeenByRemote | ||
| ) | [protected, virtual] |
Determine if a state message needs to be sent.
| virtual void DtEmitterSystemStateEncoder::setAzimuthThreshold | ( | double | threshold | ) | [virtual] |
Set the azimuth threshold.
Defaulted to 1 degree. threshold Threshold in radians.
| virtual void DtEmitterSystemStateEncoder::setElevationThreshold | ( | double | threshold | ) | [virtual] |
Set the elevation threshold.
Defaulted to 1 degree. threshold Threshold in radians.
| virtual DtElectromagneticEmissionPdu* DtEmitterSystemStateEncoder::stateMsg | ( | const DtEmitterSystemRepository & | stateRep, |
| const DtEmitterSystemRepository & | asSeenByRemote | ||
| ) | [virtual] |
Constructs a PDU from the state repository.
stateMsg determines whether an Electromagnetic Emission PDU needs to be sent and constructs one of it does.
double DtEmitterSystemStateEncoder::myAzimuthThreshold [protected] |
double DtEmitterSystemStateEncoder::myElevationThreshold [protected] |