mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 11:20:05 +00:00 
			
		
		
		
	Display expired data as soon as it's reloaded
This commit is contained in:
		
							parent
							
								
									16044efbf3
								
							
						
					
					
						commit
						df2474c383
					
				
					 12 changed files with 114 additions and 80 deletions
				
			
		|  | @ -27,25 +27,18 @@ class Level3RadialViewImpl | |||
| { | ||||
| public: | ||||
|    explicit Level3RadialViewImpl() : | ||||
|        selectedTime_ {}, | ||||
|        latitude_ {}, | ||||
|        longitude_ {}, | ||||
|        range_ {}, | ||||
|        vcp_ {}, | ||||
|        sweepTime_ {} | ||||
|        latitude_ {}, longitude_ {}, range_ {}, vcp_ {}, sweepTime_ {} | ||||
|    { | ||||
|    } | ||||
|    ~Level3RadialViewImpl() = default; | ||||
| 
 | ||||
|    std::chrono::system_clock::time_point selectedTime_; | ||||
|    std::vector<float>        vertices_; | ||||
|    std::vector<std::uint8_t> dataMoments8_; | ||||
| 
 | ||||
|    std::vector<float>   vertices_; | ||||
|    std::vector<uint8_t> dataMoments8_; | ||||
| 
 | ||||
|    float    latitude_; | ||||
|    float    longitude_; | ||||
|    float    range_; | ||||
|    uint16_t vcp_; | ||||
|    float         latitude_; | ||||
|    float         longitude_; | ||||
|    float         range_; | ||||
|    std::uint16_t vcp_; | ||||
| 
 | ||||
|    std::chrono::system_clock::time_point sweepTime_; | ||||
| }; | ||||
|  | @ -92,11 +85,6 @@ std::tuple<const void*, size_t, size_t> Level3RadialView::GetMomentData() const | |||
|    return std::tie(data, dataSize, componentSize); | ||||
| } | ||||
| 
 | ||||
| void Level3RadialView::SelectTime(std::chrono::system_clock::time_point time) | ||||
| { | ||||
|    p->selectedTime_ = time; | ||||
| } | ||||
| 
 | ||||
| void Level3RadialView::ComputeSweep() | ||||
| { | ||||
|    logger_->debug("ComputeSweep()"); | ||||
|  | @ -111,7 +99,7 @@ void Level3RadialView::ComputeSweep() | |||
|    // Retrieve message from Radar Product Manager
 | ||||
|    std::shared_ptr<wsr88d::rpg::Level3Message> message = | ||||
|       radarProductManager->GetLevel3Data(GetRadarProductName(), | ||||
|                                          p->selectedTime_); | ||||
|                                          selected_time()); | ||||
|    if (message == nullptr) | ||||
|    { | ||||
|       logger_->debug("Level 3 data not found"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat