Browse Source

introduce the radar screen to receive aircraft information

Sven Czarnian 3 years ago
parent
commit
c7ab3bd551
3 changed files with 66 additions and 0 deletions
  1. 2 0
      src/CMakeLists.txt
  2. 23 0
      src/RadarScreen.cpp
  3. 41 0
      src/RadarScreen.h

+ 2 - 0
src/CMakeLists.txt

@@ -11,6 +11,8 @@ SET(SOURCE_FILES
     ArrivalMANagerMain.cpp
     PlugIn.cpp
     PlugIn.h
+    RadarScreen.cpp
+    RadarScreen.h
     stdafx.cpp
     stdafx.h
 )

+ 23 - 0
src/RadarScreen.cpp

@@ -0,0 +1,23 @@
+/*
+ * Author:
+ *   Sven Czarnian <devel@svcz.de>
+ * Brief:
+ *   Implements the RADAR display of EuroScope
+ * Copyright:
+ *   2021 Sven Czarnian
+ * License:
+ *   GNU General Public License v3 (GPLv3)
+ */
+
+#include "stdafx.h"
+
+#include "RadarScreen.h"
+
+using namespace aman;
+
+RadarScreen::RadarScreen() :
+        EuroScopePlugIn::CRadarScreen() { }
+
+RadarScreen::~RadarScreen() { }
+
+void RadarScreen::OnAsrContentToBeClosed() { }

+ 41 - 0
src/RadarScreen.h

@@ -0,0 +1,41 @@
+/*
+ * @brief Defines the EuroScope RADAR screen
+ * @file src/RadarScreen.h
+ * @author Sven Czarnian <devel@svcz.de>
+ * @copyright Copyright 2021 Sven Czarnian
+ * @license This project is published under the GNU General Public License v3 (GPLv3)
+ */
+
+#pragma once
+
+#pragma warning(push, 0)
+#include <EuroScopePlugIn.h>
+#pragma warning(pop)
+
+namespace aman {
+    /**
+     * @brief Defines the RADAR screen
+     * @ingroup euroscope
+     */
+    class RadarScreen : public EuroScopePlugIn::CRadarScreen {
+    public:
+        /**
+         * @brief Creates a new RADAR screen
+         */
+        RadarScreen();
+        /**
+         * @brief Destroys the internal structure
+         */
+        virtual ~RadarScreen();
+
+        RadarScreen(const RadarScreen&) = delete;
+        RadarScreen(RadarScreen&&) = delete;
+        RadarScreen& operator=(const RadarScreen&) = delete;
+        RadarScreen& operator=(RadarScreen&&) = delete;
+
+        /**
+         * @brief Called as soon as the ASR file is closed
+         */
+        void OnAsrContentToBeClosed() override;
+    };
+}