VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aerodromeGuiDatas.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <QtCore/QString>
10 
11 typedef std::map<std::string, QString> LightNameToDisplayName;
12 
13 //common lights group of a runway (see and add new in Runway.ope)
15 {
16  {"CenterLine",QObject::tr("Center Line")},
17  {"Edge",QObject::tr("Edge")},
18  {"DistanceToGo",QObject::tr("Distance To Go")}
19 };
20 
23 {
24  {"TDZ",QObject::tr("Touch Down Zone")},
25  {"DisplacedThreshold",QObject::tr("Displaced Threshold")},
26  {"ThresholdLightning",QObject::tr("Threshold Lightning")},
27  {"PAPI",QObject::tr("PAPI")},
28  {"REILS",QObject::tr("Runway End Identifier")}
29 };
30 
31 //set of each light groups of areodrome (see and add in the Aerodrome.ope)
33 {
34  {"RunwayExit", QObject::tr("Runway Exit")},
35  {"TaxiwayIdentifierMarkerBoard",QObject::tr("Taxiway Identifier Marker Board")},
36  {"TaxiwayEdge",QObject::tr("Taxiway Edge")},
37  {"ClearanceBar",QObject::tr("Clearance Bar")},
38  {"TaxiwayCentre",QObject::tr("Taxiway Centre")},
39  {"RunwayGuard",QObject::tr("Runway Guard")},
40  {"TaxiwayStopBar",QObject::tr("Taxiway Stop Bar")},
41  {"TaxiwayLeadOn",QObject::tr("Taxiway Lead On")},
42  {"TaxiwayGuard",QObject::tr("Taxiway Guard")},
43  {"RETIL",QObject::tr("Rapid Exit Taxiway")},
44  {"Apron",QObject::tr("Apron")},
45  {"ApronFlood",QObject::tr("Apron Flood")},
46  {"Obstruction",QObject::tr("Obstruction")}
47 };
48 
49 const std::map<int, QString> runwayConditions
50 {
51  {DtUnknownCondition, QObject::tr("Unknown")},
52  {DtDry, QObject::tr("Dry")},
53  {DtWet, QObject::tr("Wet")},
54  {DtIce, QObject::tr("Ice")},
55  {DtSnow, QObject::tr("Snow")}
56 };
57 
58 inline QString lightGroupPrettyPrint(const std::string& lightGroup)
59 {
60  LightNameToDisplayName::const_iterator finder = commonLights.find(lightGroup);
61 
62  if (finder != commonLights.end())
63  return finder->second;
64 
65  finder = singleLights.find(lightGroup);
66  if (finder != singleLights.end())
67  return finder->second;
68 
69  finder = aerodromeLightsGroup.find(lightGroup);
70  if (finder != aerodromeLightsGroup.end())
71  return finder->second;
72 
73  return "";
74 };
Definition: nonstandardStatePropertyTypes.h:70
Definition: nonstandardStatePropertyTypes.h:72
std::map< std::string, QString > LightNameToDisplayName
Definition: aerodromeGuiDatas.h:11
Definition: nonstandardStatePropertyTypes.h:69
Definition: nonstandardStatePropertyTypes.h:73
QString lightGroupPrettyPrint(const std::string &lightGroup)
Definition: aerodromeGuiDatas.h:58
const LightNameToDisplayName commonLights
Definition: aerodromeGuiDatas.h:16
const std::map< int, QString > runwayConditions
Definition: aerodromeGuiDatas.h:50
const LightNameToDisplayName aerodromeLightsGroup
Definition: aerodromeGuiDatas.h:33
Definition: nonstandardStatePropertyTypes.h:71
const LightNameToDisplayName const LightNameToDisplayName singleLights
lights group of a runway in front and rear runway (see and add new in Runway.ope) ...
Definition: aerodromeGuiDatas.h:23

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)