mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 10:40:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
	
		
			740 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
	
		
			740 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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
 | 
