mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:20:04 +00:00 
			
		
		
		
	Update radar product and elevation selection when active map changes
This commit is contained in:
		
							parent
							
								
									b78011a2d3
								
							
						
					
					
						commit
						337296ac3c
					
				
					 8 changed files with 159 additions and 31 deletions
				
			
		|  | @ -178,6 +178,16 @@ const std::vector<float>& Level2ProductView::vertices() const | |||
|    return p->vertices_; | ||||
| } | ||||
| 
 | ||||
| common::RadarProductGroup Level2ProductView::GetRadarProductGroup() const | ||||
| { | ||||
|    return common::RadarProductGroup::Level2; | ||||
| } | ||||
| 
 | ||||
| std::string Level2ProductView::GetRadarProductName() const | ||||
| { | ||||
|    return common::GetLevel2Name(p->product_); | ||||
| } | ||||
| 
 | ||||
| std::vector<float> Level2ProductView::GetElevationCuts() const | ||||
| { | ||||
|    return p->elevationCuts_; | ||||
|  |  | |||
|  | @ -40,7 +40,9 @@ public: | |||
|    void LoadColorTable(std::shared_ptr<common::ColorTable> colorTable) override; | ||||
|    void SelectElevation(float elevation) override; | ||||
| 
 | ||||
|    std::vector<float>                      GetElevationCuts() const override; | ||||
|    common::RadarProductGroup GetRadarProductGroup() const override; | ||||
|    std::string               GetRadarProductName() const override; | ||||
|    std::vector<float>        GetElevationCuts() const override; | ||||
|    std::tuple<const void*, size_t, size_t> GetMomentData() const override; | ||||
|    std::tuple<const void*, size_t, size_t> GetCfpMomentData() const override; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,7 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/common/color_table.hpp> | ||||
| #include <scwx/common/products.hpp> | ||||
| 
 | ||||
| #include <chrono> | ||||
| #include <memory> | ||||
|  | @ -38,7 +39,9 @@ public: | |||
|    LoadColorTable(std::shared_ptr<common::ColorTable> colorTable) = 0; | ||||
|    virtual void SelectElevation(float elevation); | ||||
| 
 | ||||
|    virtual std::vector<float>                      GetElevationCuts() const; | ||||
|    virtual common::RadarProductGroup GetRadarProductGroup() const = 0; | ||||
|    virtual std::string               GetRadarProductName() const  = 0; | ||||
|    virtual std::vector<float>        GetElevationCuts() const; | ||||
|    virtual std::tuple<const void*, size_t, size_t> GetMomentData() const = 0; | ||||
|    virtual std::tuple<const void*, size_t, size_t> GetCfpMomentData() const; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat