Class: WaypointIconImageCache
The image cache specific to this instrument. GImageCache
Hierarchy
ImageCache
↳
WaypointIconImageCache
Constructors
constructor
• new WaypointIconImageCache(): WaypointIconImageCache
Returns
Inherited from
ImageCache.constructor
Methods
addToCache
▸ addToCache(key
, url
): void
Loads the image from the url and adds it to the cache.
Parameters
Name | Type | Description |
---|---|---|
key | string | The image key to access it later. |
url | string | The url to load the image from. |
Returns
void
Static
Inherited from
ImageCache.addToCache
Defined in
sdk/graphics/img/ImageCache.ts:22
get
▸ get(key
): HTMLImageElement
Gets a cached image element.
Parameters
Name | Type | Description |
---|---|---|
key | string | The key of the cached image. |
Returns
HTMLImageElement
The cached image element.
Static
Inherited from
ImageCache.get
Defined in
sdk/graphics/img/ImageCache.ts:36
getAirportIcon
▸ getAirportIcon(fac
): HTMLImageElement
Maps the airport type to the right icon.
Parameters
Name | Type | Description |
---|---|---|
fac | AirportFacility | The airport facility to get the icon for. |
Returns
HTMLImageElement
The image element used for this type of airport.
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/WaypointIconImageCache.ts:39
getVorIcon
▸ getVorIcon(type
): HTMLImageElement
Maps the vor type to the right icon.
Parameters
Name | Type | Description |
---|---|---|
type | VorType | The vor type enum to get the icon for. |
Returns
HTMLImageElement
The image elements used for this type of vor.
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/WaypointIconImageCache.ts:71
init
▸ init(): void
Initializes the icons used in this instrument.
Returns
void
Static
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/WaypointIconImageCache.ts:13