Provide access to color table from radar product view

This commit is contained in:
Dan Paulat 2024-01-04 23:59:38 -06:00
parent 03f08d54f1
commit 9bb3e175f2
5 changed files with 13 additions and 0 deletions

View file

@ -163,6 +163,11 @@ boost::asio::thread_pool& Level2ProductView::thread_pool()
return p->threadPool_;
}
std::shared_ptr<common::ColorTable> Level2ProductView::color_table() const
{
return p->colorTable_;
}
const std::vector<boost::gil::rgba8_pixel_t>&
Level2ProductView::color_table_lut() const
{

View file

@ -27,6 +27,7 @@ public:
std::shared_ptr<manager::RadarProductManager> radarProductManager);
~Level2ProductView();
std::shared_ptr<common::ColorTable> color_table() const override;
const std::vector<boost::gil::rgba8_pixel_t>&
color_table_lut() const override;
std::uint16_t color_table_min() const override;

View file

@ -96,6 +96,11 @@ void Level3ProductView::DisconnectRadarProductManager()
nullptr);
}
std::shared_ptr<common::ColorTable> Level3ProductView::color_table() const
{
return p->colorTable_;
}
const std::vector<boost::gil::rgba8_pixel_t>&
Level3ProductView::color_table_lut() const
{

View file

@ -25,6 +25,7 @@ public:
std::shared_ptr<manager::RadarProductManager> radarProductManager);
virtual ~Level3ProductView();
std::shared_ptr<common::ColorTable> color_table() const override;
const std::vector<boost::gil::rgba8_pixel_t>&
color_table_lut() const override;
std::uint16_t color_table_min() const override;

View file

@ -34,6 +34,7 @@ public:
std::shared_ptr<manager::RadarProductManager> radarProductManager);
virtual ~RadarProductView();
virtual std::shared_ptr<common::ColorTable> color_table() const = 0;
virtual const std::vector<boost::gil::rgba8_pixel_t>&
color_table_lut() const;
virtual std::uint16_t color_table_min() const;