Level 3 raster view

This commit is contained in:
Dan Paulat 2022-04-09 21:06:47 -05:00
parent 5b32118626
commit 0511867c6b
6 changed files with 454 additions and 12 deletions

View file

@ -0,0 +1,51 @@
#pragma once
#include <scwx/qt/view/level3_product_view.hpp>
#include <scwx/qt/manager/radar_product_manager.hpp>
#include <chrono>
#include <memory>
#include <vector>
namespace scwx
{
namespace qt
{
namespace view
{
class Level3RasterViewImpl;
class Level3RasterView : public Level3ProductView
{
Q_OBJECT
public:
explicit Level3RasterView(
const std::string& product,
std::shared_ptr<manager::RadarProductManager> radarProductManager);
~Level3RasterView();
float range() const override;
std::chrono::system_clock::time_point sweep_time() const override;
uint16_t vcp() const override;
const std::vector<float>& vertices() const override;
void SelectTime(std::chrono::system_clock::time_point time) override;
std::tuple<const void*, size_t, size_t> GetMomentData() const override;
static std::shared_ptr<Level3RasterView>
Create(const std::string& product,
std::shared_ptr<manager::RadarProductManager> radarProductManager);
protected slots:
void ComputeSweep() override;
private:
std::unique_ptr<Level3RasterViewImpl> p;
};
} // namespace view
} // namespace qt
} // namespace scwx