mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
Expose units, scale and offset of color table
This commit is contained in:
parent
0e031e3b69
commit
66b7bd36fe
2 changed files with 18 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ public:
|
|||
ColorTable(ColorTable&&) noexcept;
|
||||
ColorTable& operator=(ColorTable&&) noexcept;
|
||||
|
||||
std::string units() const;
|
||||
float scale() const;
|
||||
float offset() const;
|
||||
boost::gil::rgba8_pixel_t rf_color() const;
|
||||
|
||||
boost::gil::rgba8_pixel_t Color(float value) const;
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue