Expose units, scale and offset of color table

This commit is contained in:
Dan Paulat 2024-01-04 22:37:55 -06:00
parent 0e031e3b69
commit 66b7bd36fe
2 changed files with 18 additions and 0 deletions

View file

@ -72,6 +72,21 @@ ColorTable::~ColorTable() = default;
ColorTable::ColorTable(ColorTable&&) noexcept = default;
ColorTable& ColorTable::operator=(ColorTable&&) noexcept = default;
std::string ColorTable::units() const
{
return p->units_;
}
float ColorTable::scale() const
{
return p->scale_;
}
float ColorTable::offset() const
{
return p->offset_;
}
boost::gil::rgba8_pixel_t ColorTable::rf_color() const
{
return p->rfColor_;