mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:30:05 +00:00 
			
		
		
		
	Fix level 2 display
This commit is contained in:
		
							parent
							
								
									b18491b2a0
								
							
						
					
					
						commit
						1b49e317e4
					
				
					 7 changed files with 96 additions and 18 deletions
				
			
		|  | @ -316,6 +316,21 @@ std::shared_ptr<config::RadarSite> MapWidget::GetRadarSite() const | |||
|    return radarSite; | ||||
| } | ||||
| 
 | ||||
| std::chrono::system_clock::time_point MapWidget::GetSelectedTime() const | ||||
| { | ||||
|    auto radarProductView = p->context_->radar_product_view(); | ||||
|    std::chrono::system_clock::time_point time; | ||||
| 
 | ||||
|    // If there is an active radar product view
 | ||||
|    if (radarProductView != nullptr) | ||||
|    { | ||||
|       // Select the time associated with the active radar product
 | ||||
|       time = radarProductView->GetSelectedTime(); | ||||
|    } | ||||
| 
 | ||||
|    return time; | ||||
| } | ||||
| 
 | ||||
| std::uint16_t MapWidget::GetVcp() const | ||||
| { | ||||
|    auto radarProductView = p->context_->radar_product_view(); | ||||
|  |  | |||
|  | @ -34,15 +34,16 @@ public: | |||
|    explicit MapWidget(const QMapLibreGL::Settings&); | ||||
|    ~MapWidget(); | ||||
| 
 | ||||
|    common::Level3ProductCategoryMap   GetAvailableLevel3Categories(); | ||||
|    float                              GetElevation() const; | ||||
|    std::vector<float>                 GetElevationCuts() const; | ||||
|    std::vector<std::string>           GetLevel3Products(); | ||||
|    std::string                        GetMapStyle() const; | ||||
|    common::RadarProductGroup          GetRadarProductGroup() const; | ||||
|    std::string                        GetRadarProductName() const; | ||||
|    std::shared_ptr<config::RadarSite> GetRadarSite() const; | ||||
|    std::uint16_t                      GetVcp() const; | ||||
|    common::Level3ProductCategoryMap      GetAvailableLevel3Categories(); | ||||
|    float                                 GetElevation() const; | ||||
|    std::vector<float>                    GetElevationCuts() const; | ||||
|    std::vector<std::string>              GetLevel3Products(); | ||||
|    std::string                           GetMapStyle() const; | ||||
|    common::RadarProductGroup             GetRadarProductGroup() const; | ||||
|    std::string                           GetRadarProductName() const; | ||||
|    std::shared_ptr<config::RadarSite>    GetRadarSite() const; | ||||
|    std::chrono::system_clock::time_point GetSelectedTime() const; | ||||
|    std::uint16_t                         GetVcp() const; | ||||
| 
 | ||||
|    void SelectElevation(float elevation); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat