mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <scwx/qt/map/draw_layer.hpp>
|
|
|
|
namespace scwx::qt::map
|
|
{
|
|
|
|
class OverlayLayer : public DrawLayer
|
|
{
|
|
Q_DISABLE_COPY_MOVE(OverlayLayer)
|
|
|
|
public:
|
|
explicit OverlayLayer(const std::shared_ptr<gl::GlContext>& glContext);
|
|
~OverlayLayer();
|
|
|
|
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;
|
|
|
|
public slots:
|
|
void UpdateSweepTimeNextFrame();
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> p;
|
|
};
|
|
|
|
} // namespace scwx::qt::map
|