mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:20:05 +00:00 
			
		
		
		
	Add indicator of what level is currently being updated with level 2 chunks.
This commit is contained in:
		
							parent
							
								
									6ca76b9eca
								
							
						
					
					
						commit
						0bda6296c0
					
				
					 9 changed files with 114 additions and 4 deletions
				
			
		|  | @ -656,6 +656,12 @@ std::vector<float> MapWidget::GetElevationCuts() const | |||
|    } | ||||
| } | ||||
| 
 | ||||
| float MapWidget::GetIncomingLevel2Elevation() const | ||||
| { | ||||
|    return p->radarProductManager_->incoming_level_2_elevation(); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| common::Level2Product | ||||
| MapWidgetImpl::GetLevel2ProductOrDefault(const std::string& productName) const | ||||
| { | ||||
|  | @ -1796,6 +1802,14 @@ void MapWidgetImpl::RadarProductManagerConnect() | |||
| { | ||||
|    if (radarProductManager_ != nullptr) | ||||
|    { | ||||
|       connect(radarProductManager_.get(), | ||||
|               &manager::RadarProductManager::IncomingLevel2ElevationChanged, | ||||
|               this, | ||||
|               [this](float incomingElevation) | ||||
|               { | ||||
|                  Q_EMIT widget_->IncomingLevel2ElevationChanged( | ||||
|                     incomingElevation); | ||||
|               }); | ||||
|       connect(radarProductManager_.get(), | ||||
|               &manager::RadarProductManager::Level3ProductsChanged, | ||||
|               this, | ||||
|  | @ -1916,6 +1930,10 @@ void MapWidgetImpl::RadarProductManagerDisconnect() | |||
|                  &manager::RadarProductManager::NewDataAvailable, | ||||
|                  this, | ||||
|                  nullptr); | ||||
|       disconnect(radarProductManager_.get(), | ||||
|                  &manager::RadarProductManager::IncomingLevel2ElevationChanged, | ||||
|                  this, | ||||
|                  nullptr); | ||||
|    } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak