VR-Forces 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>
11 
12 typedef std::map<unsigned char, QString> ConditionNameToDisplayName;
14 {
16  {DtRwRunwayConditionSetting::DtDry, QObject::tr("Dry")},
17  {DtRwRunwayConditionSetting::DtWet, QObject::tr("Wet")},
18  {DtRwRunwayConditionSetting::DtIce, QObject::tr("Ice")},
19  {DtRwRunwayConditionSetting::DtSnow, QObject::tr("Snow")},
20 };
21 
23 typedef std::map<std::string, std::pair<QString, bool> > LightNameToDisplayName;
24 
25 //common lights group of a runway (see and add new in Runway.ope)
27 {
28  {"RunwayGuard", {QObject::tr("Runway Guard"), false}},
29 };
30 
33 {
34  {"Approach",{QObject::tr("Approach"), false}},
35  {"Edge",{QObject::tr("Edge"), false}},
36  {"CenterLine",{QObject::tr("Center Line"), false}},
37  {"DistanceToGo",{QObject::tr("Distance To Go"), true}},
38  {"TDZ",{QObject::tr("Touch Down Zone"), false}},
39  {"DisplacedThreshold",{QObject::tr("Displaced Threshold"), false}},
40  {"PrethresholdEdgeLight",{QObject::tr("Prethreshold Edge"), false}},
41  {"ThresholdLighting",{QObject::tr("Threshold"), false}},
42  {"RapidExitTaxiwayLight",{QObject::tr("Rapid Exit Taxiway"), false}},
43  {"RunwayExitLight",{QObject::tr("Runway Exit"), false}},
44  {"TaxiwayLeadOnLight",{QObject::tr("Taxiway Lead On"), false}},
45  {"TaxiwayStopBarLight",{QObject::tr("Taxiway Stop Bar"), false}},
46  {"RunwayEndLight",{QObject::tr("Runway End"), false}},
47  {"REILS",{QObject::tr("Runway End Identifier"), false}},
48  {"VSGI",{QObject::tr("VSGI"), false}},
49 };
50 
51 //set of each light groups of areodrome (see and add in the Aerodrome.ope)
53 {
54  {"ApronLight",{QObject::tr("Apron"), false}},
55  {"ApronFloodLight",{QObject::tr("Apron Flood"), true}},
56  {"ClearanceBarLight",{QObject::tr("Clearance Bar"), false}},
57  {"TaxiwayCentreLight",{QObject::tr("Taxiway Centre"), false}},
58  {"TaxiwayEdgeLight",{QObject::tr("Taxiway Edge"), false}},
59  {"TaxiwayIdentifierMarkerBoardLight",{QObject::tr("Taxiway Identifier Marker Board"), true}},
60 };
61 
62 inline QString LightGroupPrettyPrint(const std::string& lightGroup)
63 {
64  LightNameToDisplayName::const_iterator finder = theCommonLights.find(lightGroup);
65 
66  if (finder != theCommonLights.end())
67  return finder->second.first;
68 
69  finder = theSingleLights.find(lightGroup);
70  if (finder != theSingleLights.end())
71  return finder->second.first;
72 
73  finder = theAerodromeLightsGroup.find(lightGroup);
74  if (finder != theAerodromeLightsGroup.end())
75  return finder->second.first;
76 
77  return "";
78 };
std::map< unsigned char, QString > ConditionNameToDisplayName
Definition: aerodromeGuiDatas.h:12
Definition: rwRunwayConditionSetting.h:26
const LightNameToDisplayName theAerodromeLightsGroup
Definition: aerodromeGuiDatas.h:53
Definition: rwRunwayConditionSetting.h:27
QString LightGroupPrettyPrint(const std::string &lightGroup)
Definition: aerodromeGuiDatas.h:62
const LightNameToDisplayName theSingleLights
lights group of a runway in front and rear runway (see and add new in Runway.ope) ...
Definition: aerodromeGuiDatas.h:33
const LightNameToDisplayName theCommonLights
Definition: aerodromeGuiDatas.h:27
Definition: rwRunwayConditionSetting.h:28
const ConditionNameToDisplayName typedef std::map< std::string, std::pair< QString, bool > > LightNameToDisplayName
The if the bool is true, then this is an on/off switch rather than the setting of 0 - 100...
Definition: aerodromeGuiDatas.h:19
Definition: rwRunwayConditionSetting.h:20
Definition: rwRunwayConditionSetting.h:25
const ConditionNameToDisplayName theConditionNameToDisplayName
Definition: aerodromeGuiDatas.h:15

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)