mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:00:04 +00:00
Smooth transition between level 3 tilts
This commit is contained in:
parent
690f60f3e3
commit
889fe698e6
8 changed files with 53 additions and 23 deletions
|
|
@ -27,9 +27,7 @@ class Level3RasterViewImpl
|
|||
{
|
||||
public:
|
||||
explicit Level3RasterViewImpl(
|
||||
const std::string& product,
|
||||
std::shared_ptr<manager::RadarProductManager> radarProductManager) :
|
||||
product_ {product},
|
||||
radarProductManager_ {radarProductManager},
|
||||
selectedTime_ {},
|
||||
latitude_ {},
|
||||
|
|
@ -41,7 +39,6 @@ public:
|
|||
}
|
||||
~Level3RasterViewImpl() = default;
|
||||
|
||||
std::string product_;
|
||||
std::shared_ptr<manager::RadarProductManager> radarProductManager_;
|
||||
|
||||
std::chrono::system_clock::time_point selectedTime_;
|
||||
|
|
@ -61,7 +58,7 @@ Level3RasterView::Level3RasterView(
|
|||
const std::string& product,
|
||||
std::shared_ptr<manager::RadarProductManager> radarProductManager) :
|
||||
Level3ProductView(product),
|
||||
p(std::make_unique<Level3RasterViewImpl>(product, radarProductManager))
|
||||
p(std::make_unique<Level3RasterViewImpl>(radarProductManager))
|
||||
{
|
||||
}
|
||||
Level3RasterView::~Level3RasterView() = default;
|
||||
|
|
@ -114,7 +111,8 @@ void Level3RasterView::ComputeSweep()
|
|||
|
||||
// Retrieve message from Radar Product Manager
|
||||
std::shared_ptr<wsr88d::rpg::Level3Message> message =
|
||||
p->radarProductManager_->GetLevel3Data(p->product_, p->selectedTime_);
|
||||
p->radarProductManager_->GetLevel3Data(GetRadarProductName(),
|
||||
p->selectedTime_);
|
||||
if (message == nullptr)
|
||||
{
|
||||
logger_->debug("Level 3 data not found");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue