Add layer wrapper and generic layer

This commit is contained in:
Dan Paulat 2021-11-27 11:37:01 -06:00
parent 9ff6eabd2a
commit a010cc55c3
12 changed files with 187 additions and 40 deletions

View file

@ -1,10 +1,9 @@
#pragma once
#include <scwx/qt/gl/gl.hpp>
#include <scwx/qt/map/generic_layer.hpp>
#include <scwx/qt/view/radar_product_view.hpp>
#include <QMapboxGL>
namespace scwx
{
namespace qt
@ -14,19 +13,17 @@ namespace map
class OverlayLayerImpl;
class OverlayLayer : public QObject, public QMapbox::CustomLayerHostInterface
class OverlayLayer : public GenericLayer
{
Q_OBJECT
public:
explicit OverlayLayer(
std::shared_ptr<view::RadarProductView> radarProductView,
gl::OpenGLFunctions& gl);
~OverlayLayer();
void initialize() override final;
void render(const QMapbox::CustomLayerRenderParameters&) override final;
void deinitialize() override final;
void Initialize() override final;
void Render(const QMapbox::CustomLayerRenderParameters&) override final;
void Deinitialize() override final;
public slots:
void UpdateSweepTimeNextFrame();