mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:10:06 +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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ public:
|
|||
GetAvailableLevel3Categories();
|
||||
[[nodiscard]] std::optional<float> GetElevation() const;
|
||||
[[nodiscard]] std::vector<float> GetElevationCuts() const;
|
||||
[[nodiscard]] float GetIncomingLevel2Elevation() const;
|
||||
[[nodiscard]] std::vector<std::string> GetLevel3Products();
|
||||
[[nodiscard]] std::string GetMapStyle() const;
|
||||
[[nodiscard]] common::RadarProductGroup GetRadarProductGroup() const;
|
||||
|
|
@ -184,6 +185,7 @@ signals:
|
|||
void RadarSweepUpdated();
|
||||
void RadarSweepNotUpdated(types::NoUpdateReason reason);
|
||||
void WidgetPainted();
|
||||
void IncomingLevel2ElevationChanged(float incomingElevation);
|
||||
};
|
||||
|
||||
} // namespace map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue