Highlight active map

This commit is contained in:
Dan Paulat 2021-11-27 10:35:25 -06:00
parent 8b515dd3d2
commit 9ff6eabd2a
6 changed files with 81 additions and 9 deletions

View file

@ -24,8 +24,10 @@ static const uint16_t DEFAULT_COLOR_TABLE_MAX = 255u;
class RadarProductViewImpl
{
public:
explicit RadarProductViewImpl() = default;
~RadarProductViewImpl() = default;
explicit RadarProductViewImpl() : isActive_ {false} {};
~RadarProductViewImpl() = default;
bool isActive_;
};
RadarProductView::RadarProductView() :
@ -85,6 +87,16 @@ RadarProductView::GetCfpMomentData() const
return std::tie(data, dataSize, componentSize);
}
bool RadarProductView::IsActive() const
{
return p->isActive_;
}
void RadarProductView::SetActive(bool isActive)
{
p->isActive_ = isActive;
}
void RadarProductView::ComputeSweep()
{
BOOST_LOG_TRIVIAL(debug) << logPrefix_ << "ComputeSweep()";

View file

@ -42,6 +42,10 @@ public:
virtual std::tuple<const void*, size_t, size_t> GetMomentData() const = 0;
virtual std::tuple<const void*, size_t, size_t> GetCfpMomentData() const;
bool IsActive() const;
void SetActive(bool isActive);
protected:
virtual void UpdateColorTable() = 0;