FSUIPC Client DLL
.NET interface for FSUIPC
|
A class holding all the information about an Airport More...
Inherits IDataStoreObject.
Public Member Functions | |
override string | ToString () |
Gets a string showing the ICAO code and name of the airport More... | |
void | CalculateTaxiwayIntersections () |
Populates the taxiway intersection data for this Airport. Only works if you have set the AiportsDatabase.LoadTaxiways property to true. More... | |
void | LoadComponents (AirportComponents Components) |
Loads the specified component data for this airport. (e.g. Runways, Taxiways etc). More... | |
void | LoadComponents (byte ClassInstance, AirportComponents Components) |
Loads the specified component data for this airport. (e.g. Runways, Taxiways etc). More... | |
void | RemoveComponents (AirportComponents Components) |
Removes the specified component data for this airport. (e.g. Runways, Taxiways etc). More... | |
void | SetReferenceLocation (AirportComponents Components) |
Sets the reference location (from where distance and bearing information is calculated) to the current player position. More... | |
void | SetReferenceLocation (byte ClassInstance, AirportComponents Components) |
Sets the reference location (from where distance and bearing information is calculated) to the current player position. More... | |
void | SetReferenceLocation (FsAirport Airport, AirportComponents Components) |
Sets the location from where distance and bearing information is calculated. More... | |
void | SetReferenceLocation (string ICAO, AirportComponents Components) |
Sets the location from where distance and bearing information is calculated. More... | |
void | SetReferenceLocation (byte ClassInstance, string ICAO, AirportComponents Components) |
Sets the location from where distance and bearing information is calculated. More... | |
void | SetReferenceLocation (FsLatitude NewLatitude, FsLongitude NewLongitude, double MagVar, AirportComponents Components) |
Sets the location from where distance and bearing information is calculated. More... | |
Properties | |
string | ICAO [get, set] |
The ICAO code of this airport More... | |
string | Name [get, set] |
The name of this airport More... | |
string | Country [get, set] |
The country this airport is in More... | |
string | State [get, set] |
The state of the USA this airport is in. This is blank for airports outside the USA. More... | |
string | City [get, set] |
The name of the city this airports serves More... | |
string | SceneryFilePath [get, set] |
The path to the scenery (.BGL) file that defines this airport More... | |
string | SceneryName [get, set] |
The name of the scenery that defines this airport. More... | |
FsLatLonPoint | Location [get, set] |
The Latitude and Longitude of this airport (usually somewhere near the centre). More... | |
double | AltitudeFeet [get, set] |
The altitude of this airport in Feet More... | |
double | AltitudeMetres [get] |
The altitude of this airport in Metres More... | |
double | MagVar [get, set] |
The magnetic variation at this airport More... | |
double | DistanceNauticalMiles [get] |
The distance to this airport in Nautical Miles. More... | |
double | DistanceKilometres [get, set] |
The distance to this airport in Kilometres. More... | |
double | BearingToTrue [get, set] |
The bearing in degrees TRUE to this airport. More... | |
double | BearingToMagnetic [get, set] |
The bearing in degrees MAGNETIC to this airport. More... | |
bool | IsPlayerAtAirport [get, set] |
True if the player's aircraft is currently within the bounds of the airport More... | |
AIPlaneInfoCollection | AITrafficArrivals = new AIPlaneInfoCollection() [get] |
A list of AIPlaneInfo representing the AI Traffic Planes that are currently assigned to arrive at this airport. More... | |
AIPlaneInfoCollection | AITrafficDepartures = new AIPlaneInfoCollection() [get] |
A list of AIPlaneInfo representing the AI Traffic Planes that are currently assigned to depart from this airport. More... | |
AIPlaneInfoCollection | AITrafficAtThisAirport = new AIPlaneInfoCollection() [get] |
A list of AIPlaneInfo representing the AI Traffic Planes currently on the ground at this airport. More... | |
FsRunwayCollection | Runways = new FsRunwayCollection() [get, set] |
A list of all runways at this airport More... | |
FsTaxiwayCollection | Taxiways = new FsTaxiwayCollection() [get, set] |
A list of all taxiways at this airport More... | |
FsGatesCollection | Gates = new FsGatesCollection() [get, set] |
A list of all gates at this airport More... | |
FsHelipadsCollection | Helipads = new FsHelipadsCollection() [get, set] |
A list of all helipads at this airport More... | |
FsAirportComFrequencyCollection | COMFrequencies = new FsAirportComFrequencyCollection() [get, set] |
A list of all COM Frequencies used at this airport More... | |
FsLatLonQuadrilateral | Bounds [get] |
An FsLatLonQuadrilateral representing the estimated boundary of the airport. More... | |
A class holding all the information about an Airport
|
inline |
Populates the taxiway intersection data for this Airport. Only works if you have set the AiportsDatabase.LoadTaxiways property to true.
|
inline |
Loads the specified component data for this airport. (e.g. Runways, Taxiways etc).
If a component is already loaded it will not be loaded again
Components | The components to load. Combine flags using the bitwise or operator. ( '|' in C#, 'or' in VB.NET ) |
|
inline |
Loads the specified component data for this airport. (e.g. Runways, Taxiways etc).
If a component is already loaded it will not be loaded again
Components | The components to load. Combine flags using the bitwise or operator. ( '|' in C#, 'or' in VB.NET ) |
ClassInstance | The class instance of a WideClient.exe to connect to |
|
inline |
Removes the specified component data for this airport. (e.g. Runways, Taxiways etc).
Components | The components to remove. Combine flags using the bitwise or operator. ( '|' in C#, 'or' in VB.NET ) |
|
inline |
Sets the reference location (from where distance and bearing information is calculated) to the current player position.
Requires an open connection to FSUIPC
Note that no components will be loaded by this method. The components passed in only control what components are processed.
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the reference location (from where distance and bearing information is calculated) to the current player position.
Requires an open connection to FSUIPC
Note that no components will be loaded by this method. The components passed in only control what components are processed.
ClassInstance | The ID of a specific class instance of WideClient |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the location from where distance and bearing information is calculated.
Airport | The Airport to use as the reference location. |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the location from where distance and bearing information is calculated.
Note that no components will be loaded by this method. The components passed in only control what components are processed.
ICAO | The ICAO code of the airport to use as the reference location. |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the location from where distance and bearing information is calculated.
Note that no components will be loaded by this method. The components passed in only control what components are processed.
ICAO | The ICAO code of the airport to use as the reference location. |
ClassInstance | The class instance of WideClient to connect to. |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the location from where distance and bearing information is calculated.
Note that no components will be loaded by this method. The components passed in only control what components are processed.
NewLatitude | The Latitude of the reference location |
NewLongitude | The Longitude of the reference location |
MagVar | The Magnetic Variation at the reference location |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Gets a string showing the ICAO code and name of the airport
|
get |
A list of AIPlaneInfo representing the AI Traffic Planes that are currently assigned to arrive at this airport.
NOTE: This is only filled in if the AITraffic information has been refreshed.
|
get |
A list of AIPlaneInfo representing the AI Traffic Planes currently on the ground at this airport.
NOTE: This is only filled in if the AITraffic information has been refreshed.
|
get |
A list of AIPlaneInfo representing the AI Traffic Planes that are currently assigned to depart from this airport.
NOTE: This is only filled in if the AITraffic information has been refreshed.
|
getset |
The altitude of this airport in Feet
|
get |
The altitude of this airport in Metres
|
getset |
The bearing in degrees MAGNETIC to this airport.
NOTE: this is only filled in if a reference position has been set
|
getset |
The bearing in degrees TRUE to this airport.
NOTE: this is only filled in if a reference position has been set
|
get |
An FsLatLonQuadrilateral representing the estimated boundary of the airport.
This is more accurate if you are loading the taxiways. If not the boundary is estimated using only the runways, gates and helipads.
|
getset |
The name of the city this airports serves
|
getset |
A list of all COM Frequencies used at this airport
|
getset |
The country this airport is in
|
getset |
The distance to this airport in Kilometres.
NOTE: this is only filled in if a reference position has been set
|
get |
The distance to this airport in Nautical Miles.
NOTE: this is only filled in if a reference position has been set
|
getset |
A list of all gates at this airport
|
getset |
A list of all helipads at this airport
|
getset |
The ICAO code of this airport
|
getset |
True if the player's aircraft is currently within the bounds of the airport
NOTE: this is only filled in if the reference position has been set to the current player position
To test if the player is at the airport without using SetReferenceLocation, use .Bounds.ContainsPoint()
|
getset |
The Latitude and Longitude of this airport (usually somewhere near the centre).
|
getset |
The magnetic variation at this airport
|
getset |
The name of this airport
|
getset |
A list of all runways at this airport
|
getset |
The path to the scenery (.BGL) file that defines this airport
|
getset |
The name of the scenery that defines this airport.
|
getset |
The state of the USA this airport is in. This is blank for airports outside the USA.
|
getset |
A list of all taxiways at this airport