IPolarPlotter Interface |
Namespace: VirtualRadar.Interface.Listener
The IPolarPlotter type exposes the following members.
Name | Description | |
---|---|---|
Latitude |
Gets the latitude from which distances will be calculated.
| |
Longitude |
Gets the longitude from which distances will be calculated.
| |
RoundToDegrees |
Gets the number of degrees that bearings are rounded to.
|
Name | Description | |
---|---|---|
AddCheckedCoordinate |
Adds a coordinate to all applicable slices. The coordinate is guaranteed to have been considered ProbablyRight
by an instance of IAircraftSanityChecker.
| |
AddCoordinate |
Adds a coordinate to all applicable slices. The coordinate will be checked by an instance of IAircraftSanityChecker.
| |
ClearPolarPlots |
Removes all existing polar plots.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
Initialise(Double, Double) |
Initialises the plotter with a standard set of slices and bearing rounding.
| |
Initialise(Double, Double, Int32, Int32, Int32, Int32) |
Initialises the plotter with custom slice dimensions.
| |
LoadFrom |
Overwrites the RoundToDegrees and slices with the values from the saved polar plot passed across.
| |
TakeSnapshot |
Returns a copy of all of the slices as-at the current point in time.
|
Polar plots are recorded over a series of slices, where each slice is a range of altitudes between two values in feet. The Initialise call tells the plotter the dimensions of the slices and the location to measure distances and angles from.
The plotter calculates the distance and bearing to the aircraft and then rounds the bearing to the nearest X degrees. If X is 1 then you will get 360 bearings stored for each slice, if X is 5 then you will get (360 / 5) 72 points stored for each slice. Once the rounded bearing has been calculated the plotter looks to see whether the distance it's calculated is further out than the one that already exists for the bearing - if it is then that distance and point is recorded, otherwise it is discarded.
All altitudes and positions are passed through an implementation of a IAircraftSanityChecker and only those values that are confirmed as ProbablyRight are used for the plot.
Implementations must be thread safe.