mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 08:10:04 +00:00
Initial moving of product listing to the background for level 3
This commit is contained in:
parent
68f66c0c2f
commit
f4226b487d
14 changed files with 356 additions and 178 deletions
|
|
@ -10,11 +10,7 @@
|
|||
#include <boost/range/irange.hpp>
|
||||
#include <boost/timer/timer.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace view
|
||||
namespace scwx::qt::view
|
||||
{
|
||||
|
||||
static const std::string logPrefix_ = "scwx::qt::view::level3_radial_view";
|
||||
|
|
@ -31,15 +27,7 @@ static constexpr std::uint32_t VALUES_PER_VERTEX = 2u;
|
|||
class Level3RadialView::Impl
|
||||
{
|
||||
public:
|
||||
explicit Impl(Level3RadialView* self) :
|
||||
self_ {self},
|
||||
latitude_ {},
|
||||
longitude_ {},
|
||||
range_ {},
|
||||
vcp_ {},
|
||||
sweepTime_ {}
|
||||
{
|
||||
}
|
||||
explicit Impl(Level3RadialView* self) : self_ {self} {}
|
||||
~Impl() { threadPool_.join(); };
|
||||
|
||||
void ComputeCoordinates(
|
||||
|
|
@ -65,13 +53,13 @@ public:
|
|||
bool lastShowSmoothedRangeFolding_ {false};
|
||||
bool lastSmoothingEnabled_ {false};
|
||||
|
||||
float latitude_;
|
||||
float longitude_;
|
||||
float latitude_ {};
|
||||
float longitude_ {};
|
||||
std::optional<float> elevation_ {};
|
||||
float range_;
|
||||
std::uint16_t vcp_;
|
||||
float range_ {};
|
||||
std::uint16_t vcp_ {};
|
||||
|
||||
std::chrono::system_clock::time_point sweepTime_;
|
||||
std::chrono::system_clock::time_point sweepTime_ {};
|
||||
};
|
||||
|
||||
Level3RadialView::Level3RadialView(
|
||||
|
|
@ -148,7 +136,7 @@ void Level3RadialView::ComputeSweep()
|
|||
std::shared_ptr<wsr88d::rpg::Level3Message> message;
|
||||
std::chrono::system_clock::time_point requestedTime {selected_time()};
|
||||
std::chrono::system_clock::time_point foundTime;
|
||||
std::tie(message, foundTime) =
|
||||
std::tie(message, foundTime, std::ignore) =
|
||||
radarProductManager->GetLevel3Data(GetRadarProductName(), requestedTime);
|
||||
|
||||
// If a different time was found than what was requested, update it
|
||||
|
|
@ -752,6 +740,4 @@ std::shared_ptr<Level3RadialView> Level3RadialView::Create(
|
|||
return std::make_shared<Level3RadialView>(product, radarProductManager);
|
||||
}
|
||||
|
||||
} // namespace view
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
} // namespace scwx::qt::view
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue