mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:30:05 +00:00
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <scwx/qt/map/draw_layer.hpp>
|
|
|
|
namespace scwx::qt::map
|
|
{
|
|
|
|
class RadarSiteLayer : public DrawLayer
|
|
{
|
|
Q_OBJECT
|
|
Q_DISABLE_COPY_MOVE(RadarSiteLayer)
|
|
|
|
public:
|
|
explicit RadarSiteLayer(const std::shared_ptr<gl::GlContext>& glContext);
|
|
~RadarSiteLayer();
|
|
|
|
void Initialize(const std::shared_ptr<MapContext>& mapContext) final;
|
|
void Render(const std::shared_ptr<MapContext>& mapContext,
|
|
const QMapLibre::CustomLayerRenderParameters&) final;
|
|
void Deinitialize() final;
|
|
|
|
bool
|
|
RunMousePicking(const std::shared_ptr<MapContext>& mapContext,
|
|
const QMapLibre::CustomLayerRenderParameters& params,
|
|
const QPointF& mouseLocalPos,
|
|
const QPointF& mouseGlobalPos,
|
|
const glm::vec2& mouseCoords,
|
|
const common::Coordinate& mouseGeoCoords,
|
|
std::shared_ptr<types::EventHandler>& eventHandler) final;
|
|
|
|
signals:
|
|
void RadarSiteSelected(const std::string& id);
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> p;
|
|
};
|
|
|
|
} // namespace scwx::qt::map
|