mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:30:05 +00:00 
			
		
		
		
	Connecting signals and slots for radar updates
This commit is contained in:
		
							parent
							
								
									c06230ed6c
								
							
						
					
					
						commit
						817a59f741
					
				
					 6 changed files with 137 additions and 61 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat