![]() |
VR-Forces Developer's Guide
|
Abstract interface class to the ADSB data service. This service provides access to Automatic Dependent Surveillance - Broadcast (ADS-B) data, which is used to track and monitor real world aircraft. This data can be used to create and simulate clutter entities in a simulation.

Classes | |
| class | DtAdsbDataJob |
Public Types | |
| using | DtIcaoAddress = int |
| using | DtIcaoAddrSet = std::set< DtIcaoAddress > |
Private Member Functions | |
| DtAdsbDataServiceInterface (const DtAdsbDataServiceInterface &) | |
| DtAdsbDataServiceInterface & | operator= (const DtAdsbDataServiceInterface &) |
| using DtAdsbDataServiceInterface::DtIcaoAddrSet = std::set<DtIcaoAddress> |
|
inline |
|
inlinevirtual |
|
private |
Copy constructor not implemented.
|
pure virtual |
Returns true if ADSB data is being loaded. Tracks should not be accessed when this is true. Track job ticks will do nothing while this is true.
Implemented in DtAdsbDataManager.
|
pure virtual |
Indicates that there was an error during the reading of data files, and the data manager cannot provide data.
Implemented in DtAdsbDataManager.
|
pure virtual |
Starts a query for all tracks in the specified area. The last point in a track before the current sim time must be in the area for the track to be considered in the area.
If unownedOnly is true (the default) then only unowned tracks are returned. areaVertices are in geocentric coordinates.
Implemented in DtAdsbDataManager.
|
pure virtual |
Starts a query for all tracks in the specified area. A track must cross the area between the given sim times for the track to be considered in the area. Note that if the startSimTime is before the current sim time, the Data Service may no longer have that path data available.
If unownedOnly is true (the default) then only unowned tracks are returned. areaVertices are in geocentric coordinates.
Implemented in DtAdsbDataManager.
|
pure virtual |
Returns information for the track with the specified address, or an empty pointer if it could not be found. Will always return an empty pointer if there is a file load in progress or there was a load error. (The caller of this function should check that result.get() != nullPtr before using the result.)
Implemented in DtAdsbDataManager.
|
pure virtual |
Request ownership of the specified given tracks.
| trackIds | is the set of track IDs that the requester would like to own. |
| lastSimTime | is the last time of interest for these tracks. This time is used to determine what data to read from files, if the data is not already in memory. |
Implemented in DtAdsbDataManager.
|
pure virtual |
Release ownership of the specified tracks.
Implemented in DtAdsbDataManager.
Converts a sim time to ADSB data time. Needed to understand how sim time relates to the timestamps in the ADSB track data.
Implemented in DtAdsbDataManager.
|
pure virtual |
Provides a string for the "adsb time" in a path point time stamp. This is useful in finding points in the source ADSB data for debugging.
Implemented in DtAdsbDataManager.
|
pure virtual |
Converts the ADSB data time to sim time. Needed to understand how sim time relates to the timestamps in the ADSB track data.
Implemented in DtAdsbDataManager.
|
pure virtual |
Returns the sim time for the last point of ADSB data available.
Implemented in DtAdsbDataManager.
|
pure virtual |
Find the first point in the track's path that occurs after (or at) the specified sim time. If no points meet this criteria, an empty pointer is returned. (The caller of this function should check that result.get() != nullPtr before using the result.)
Implemented in DtAdsbDataManager.
|
pure virtual |
Find the last point in the track's path that occurs before (or at) the specified sim time. If no points meet this criteria, an empty pointer is returned. (The caller of this function should check that result.get() != nullPtr before using the result.)
Implemented in DtAdsbDataManager.
|
pure virtual |
Makes a new point handle that refers to the same path point as p. The original or new handle can later be changed (e.g., with the ++ operator) without affecting the other handle.
Implemented in DtAdsbDataManager.
|
pure virtual |
Find the first point in the track's path that occurs after the specified sim time that contains a new squawk code and update the track's mySquawkChangedTimestamp value. If no points meet this criteria, the track's mySquawkChangedTimestamp value is set to infinity, indicating there is no new squawk code in the path points thus far.
Implemented in DtAdsbDataManager.
|
pure virtual |
Returns barometric altitude adjustment. This is a distance in meters that is added to the pressure altitude data in ADSB to determine an altitude in the simulation. Ideally this function would use the measured sea level pressure at the (2D) location at the given time compared to the Standard Atmosphere to calculate the offset. The default function just returns a constant, however.
Implemented in DtAdsbDataManager.
|
pure virtual |
Marks ADSB data to be reset. This is called in the cgf module when a scenario is rewound, rolled back, or closed.
Since as a scenario plays, ADSB data is incrementally deleted from memory, a scenario rewind in general requires that data files be re-read. Therefore this function clears and resets everything in the ADSB data manager so that it reads all files again.
Implemented in DtAdsbDataManager.
|
private |
Assignment operator not implemented.