Connecting signals and slots for radar updates

This commit is contained in:
Dan Paulat 2021-07-30 22:01:18 -05:00
parent c06230ed6c
commit 817a59f741
6 changed files with 137 additions and 61 deletions

View file

@ -12,23 +12,25 @@ namespace qt
class RadarLayerImpl;
class RadarLayer : public QMapbox::CustomLayerHostInterface
class RadarLayer : public QObject, public QMapbox::CustomLayerHostInterface
{
Q_OBJECT
public:
explicit RadarLayer(std::shared_ptr<view::RadarView> radarView, OpenGLFunctions& gl);
explicit RadarLayer(std::shared_ptr<view::RadarView> radarView,
OpenGLFunctions& gl);
~RadarLayer();
RadarLayer(const RadarLayer&) = delete;
RadarLayer& operator=(const RadarLayer&) = delete;
RadarLayer(RadarLayer&&) noexcept;
RadarLayer& operator=(RadarLayer&&) noexcept;
void initialize() override final;
void render(const QMapbox::CustomLayerRenderParameters&) override final;
void deinitialize() override final;
void UpdateColorTable();
void UpdatePlot();
public slots:
void ReceiveColorTableUpdate();
void ReceivePlotUpdate();
private:
std::unique_ptr<RadarLayerImpl> p;