mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:50:06 +00:00
40 lines
886 B
C++
40 lines
886 B
C++
#pragma once
|
|
|
|
#include <scwx/qt/map/draw_layer.hpp>
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace map
|
|
{
|
|
|
|
class RadarSiteLayer : public DrawLayer
|
|
{
|
|
Q_OBJECT
|
|
Q_DISABLE_COPY_MOVE(RadarSiteLayer)
|
|
|
|
public:
|
|
explicit RadarSiteLayer(std::shared_ptr<MapContext> context);
|
|
~RadarSiteLayer();
|
|
|
|
void Initialize() override final;
|
|
void Render(const QMapLibreGL::CustomLayerRenderParameters&) override final;
|
|
void Deinitialize() override final;
|
|
|
|
bool RunMousePicking(const QMapLibreGL::CustomLayerRenderParameters& params,
|
|
const QPointF& mouseLocalPos,
|
|
const QPointF& mouseGlobalPos,
|
|
const glm::vec2& mouseCoords) override final;
|
|
|
|
signals:
|
|
void RadarSiteSelected(const std::string& id);
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> p;
|
|
};
|
|
|
|
} // namespace map
|
|
} // namespace qt
|
|
} // namespace scwx
|