![]() |
VR-Forces Developer's Guide
|
Class definition for one track created from ADSB messages, i.e. the identifying information and time-stamped position data for one aircraft (i.e. unique ICAO Address).
Protected Attributes | |
| int | myIcaoAddress |
| double | myMaxSpeedFlown |
| double | myMaxAltitudeFlown |
| double | myMaxFlightDistance |
| DtAdsbPathPointMap | myPath |
| std::string | myAircraftType |
| std::string | myTailNumber |
| double | mySquawkChangedTimestamp |
| DtAdsbTrack::DtAdsbTrack | ( | ) |
| DtAdsbTrack::~DtAdsbTrack | ( | ) |
|
virtual |
Find the bounding box of the aircraft path. Fills in myMaxN-S-E-W in the class and the flag myCrosses180Line. Note that if the path goes across the +-180 longitude line, the west coordinate will be > the east coordinate value. Also records the start and end times of the path.
|
virtual |
Fills in the task from the network buffer. Content size is not used.
Fills in the network buffer with the task contents. Buffer must be allocated by the caller, with size netRepSize.
| void DtAdsbTrack::setIcaoAddress | ( | const int | icaoAddr | ) |
An ICAO address.
| int DtAdsbTrack::icaoAddress | ( | ) | const |
| void DtAdsbTrack::setAircraftType | ( | const std::string | ) |
ICAO type.
| std::string DtAdsbTrack::aircraftType | ( | ) | const |
| void DtAdsbTrack::setTailNumber | ( | const std::string | ) |
| std::string DtAdsbTrack::tailNumber | ( | ) | const |
| void DtAdsbTrack::setMaxSpeedFlown | ( | const double | s | ) |
The maximum speed flown over all of the processed data.
| double DtAdsbTrack::maxSpeedFlown | ( | ) | const |
| void DtAdsbTrack::checkAndSetMaxSpeed | ( | const double | s | ) |
Test the speed s against the max so far, and if greater, set max to s.
| void DtAdsbTrack::setMaxAltitudeFlown | ( | const double | a | ) |
The maximum altitude flown over all the processed data.
| double DtAdsbTrack::maxAltitudeFlown | ( | ) | const |
| void DtAdsbTrack::checkAndSetMaxAltitude | ( | const double | a | ) |
Test the altitude a against the max so far, and if greater, set max to a.
| void DtAdsbTrack::setMaxFlightDistance | ( | const double | d | ) |
The maximum distance flown over all the processed data.
| double DtAdsbTrack::maxFlightDistance | ( | ) | const |
| void DtAdsbTrack::checkAndsetMaxFlightDistance | ( | const double | d | ) |
Test the distance against the max so far, and if greater, set max to d.
| DtAdsbPathPointMap::iterator DtAdsbTrack::addPathPoint | ( | const DtAdsb::DtPathPoint & | point | ) |
Add the given point to the path for this track. Note that this invalidates the derived data (maxNSEW and start/endTime).
| const DtAdsbPathPointMap& DtAdsbTrack::path | ( | ) | const |
Get the points in the track path.
| DtAdsbPathPointMap& DtAdsbTrack::path | ( | ) |
| void DtAdsbTrack::setSquawkChangedTimestamp | ( | const double | t | ) |
The timestamp when mySquawkCode changes in a future path point.
| double DtAdsbTrack::squawkChangedTimestamp | ( | ) | const |
Determine if mySquawkChangedTimestamp elapsed.
|
protected |
Integer representation of 6-hex-digit value in file.
|
protected |
The maximum speed this aircraft flew in the processed data.
|
protected |
The maximum altitude this aircraft flew in the processed data.
|
protected |
The maximum distance this aircraft flew in the processed data.
|
protected |
The key is the timestamp.
|
protected |
ICAO type.
|
protected |
|
protected |
The timestamp when mySquawkCode changes in a future path point.