OGS
|
A colour look-up table stored as a vector containing for each entry id - value for which the colour is stored colour - RGBA value name - a name referencing the colour (such as a stratigraphic layer) Colours from the table can then be accessed using either id or name.
Definition at line 38 of file ColorLookupTable.h.
#include <ColorLookupTable.h>
Public Member Functions | |
ColorLookupTable () | |
void | setColor (double id, DataHolderLib::Color const &color) |
void | setColor (std::string const &name, DataHolderLib::Color const &color) |
DataHolderLib::LUTType | getInterpolationType () const |
void | setInterpolationType (LUTType type) |
std::size_t | size () const |
std::pair< double, double > | getTableRange () const |
void | setTableRange (double min, double max) |
std::tuple< double, Color, std::string > const & | operator[] (std::size_t i) const |
Private Attributes | |
std::vector< std::tuple< double, Color, std::string > > | _lut |
LUTType | _type {DataHolderLib::LUTType::LINEAR} |
std::pair< double, double > | _range |
DataHolderLib::ColorLookupTable::ColorLookupTable | ( | ) |
Definition at line 17 of file ColorLookupTable.cpp.
|
inline |
Definition at line 47 of file ColorLookupTable.h.
References _type.
Referenced by VtkColorLookupTable::setLookupTable().
|
inline |
Definition at line 53 of file ColorLookupTable.h.
References _range.
Referenced by VtkColorLookupTable::setLookupTable().
|
inline |
Definition at line 57 of file ColorLookupTable.h.
References _lut.
void DataHolderLib::ColorLookupTable::setColor | ( | double | id, |
DataHolderLib::Color const & | color ) |
Definition at line 33 of file ColorLookupTable.cpp.
Referenced by FileIO::XmlLutReader::readFromFile().
void DataHolderLib::ColorLookupTable::setColor | ( | std::string const & | name, |
DataHolderLib::Color const & | color ) |
Definition at line 41 of file ColorLookupTable.cpp.
References _lut.
|
inline |
Definition at line 49 of file ColorLookupTable.h.
References _type.
Referenced by FileIO::XmlLutReader::readFromFile().
void DataHolderLib::ColorLookupTable::setTableRange | ( | double | min, |
double | max ) |
Definition at line 25 of file ColorLookupTable.cpp.
References _range.
Referenced by FileIO::XmlLutReader::readFromFile().
|
inline |
Definition at line 51 of file ColorLookupTable.h.
References _lut.
Referenced by VtkColorLookupTable::setLookupTable().
|
private |
Definition at line 64 of file ColorLookupTable.h.
Referenced by operator[](), setColor(), setColor(), and size().
|
private |
Definition at line 66 of file ColorLookupTable.h.
Referenced by getTableRange(), setColor(), and setTableRange().
|
private |
Definition at line 65 of file ColorLookupTable.h.
Referenced by getInterpolationType(), and setInterpolationType().