Add overlay layer with time

This commit is contained in:
Dan Paulat 2021-08-08 08:25:32 -05:00
parent 5a97d99a34
commit d2d6cabf06
8 changed files with 292 additions and 1 deletions

View file

@ -0,0 +1,39 @@
#pragma once
#include <scwx/qt/gl/gl.hpp>
#include <scwx/qt/view/radar_view.hpp>
#include <QMapboxGL>
namespace scwx
{
namespace qt
{
namespace map
{
class OverlayLayerImpl;
class OverlayLayer : public QObject, public QMapbox::CustomLayerHostInterface
{
Q_OBJECT
public:
explicit OverlayLayer(std::shared_ptr<view::RadarView> radarView,
gl::OpenGLFunctions& gl);
~OverlayLayer();
void initialize() override final;
void render(const QMapbox::CustomLayerRenderParameters&) override final;
void deinitialize() override final;
public slots:
void ReceivePlotUpdate();
private:
std::unique_ptr<OverlayLayerImpl> p;
};
} // namespace map
} // namespace qt
} // namespace scwx