Rename existing AlertLayer to AlertLayerOld, prepare AlertLayer skeleton

This commit is contained in:
Dan Paulat 2024-06-30 00:21:10 -05:00
parent 2e1b537c87
commit 044e6d6885
6 changed files with 587 additions and 462 deletions

View file

@ -1,7 +1,7 @@
#pragma once
#include <scwx/awips/phenomenon.hpp>
#include <scwx/qt/map/map_context.hpp>
#include <scwx/qt/map/draw_layer.hpp>
#include <memory>
#include <string>
@ -14,19 +14,30 @@ namespace qt
namespace map
{
class AlertLayerImpl;
class AlertLayer
class AlertLayer : public DrawLayer
{
Q_DISABLE_COPY_MOVE(AlertLayer)
public:
explicit AlertLayer(std::shared_ptr<MapContext> context);
explicit AlertLayer(std::shared_ptr<MapContext> context,
scwx::awips::Phenomenon phenomenon);
~AlertLayer();
std::vector<std::string> AddLayers(awips::Phenomenon phenomenon,
const std::string& before = {});
void Initialize() override final;
void Render(const QMapLibre::CustomLayerRenderParameters&) override final;
void Deinitialize() override final;
bool RunMousePicking(
const QMapLibre::CustomLayerRenderParameters& params,
const QPointF& mouseLocalPos,
const QPointF& mouseGlobalPos,
const glm::vec2& mouseCoords,
const common::Coordinate& mouseGeoCoords,
std::shared_ptr<types::EventHandler>& eventHandler) override final;
private:
std::unique_ptr<AlertLayerImpl> p;
class Impl;
std::unique_ptr<Impl> p;
};
} // namespace map