|
| RGBColor (T red, T green, T blue) |
|
| RGBColor () |
|
| RGBColor (const nap::BaseColor &source) |
|
void | setRed (T value) |
|
T | getRed () const |
|
void | setGreen (T value) |
|
T | getGreen () const |
|
void | setBlue (T value) |
|
T | getBlue () const |
|
glm::vec3 | toVec3 () const |
|
| operator glm::vec3 () |
|
| Color () |
|
| Color (const std::array< T, CHANNELS > &colors) |
|
| Color (const nap::BaseColor &source) |
|
rtti::TypeInfo | getValueType () const override |
|
bool | isPointer () const override |
|
T | getValue (EColorChannel channel) const |
|
T & | getValue (EColorChannel channel) |
|
void | setValue (EColorChannel channel, T value) |
|
const std::array< T, CHANNELS > & | getValues () const |
|
T * | getData () |
|
const T * | getData () const |
|
void | setData (const T *data) |
|
float | getDistance (const Color< T, CHANNELS > &other) const |
|
bool | operator== (const Color< T, CHANNELS > &rhs) const |
|
bool | operator!= (const Color< T, CHANNELS > &rhs) const |
|
bool | operator< (const Color< T, CHANNELS > &rhs) const |
|
bool | operator> (const Color< T, CHANNELS > &rhs) const |
|
bool | operator<= (const Color< T, CHANNELS > &rhs) const |
|
bool | operator>= (const Color< T, CHANNELS > &rhs) const |
|
T & | operator[] (std::size_t index) |
|
const T & | operator[] (std::size_t index) const |
|
| BaseColor (int channels, int size) |
|
virtual | ~BaseColor ()=default |
|
bool | operator== (const BaseColor &rhs)=delete |
|
bool | operator!= (const BaseColor &rhs)=delete |
|
int | getNumberOfChannels () const |
|
int | valueSize () const |
|
virtual rtti::TypeInfo | getValueType () const =0 |
|
virtual bool | isPointer () const =0 |
|
void | convert (BaseColor &target) const |
|
Converter | getConverter (const BaseColor &target) const |
|
template<typename T > |
T | convert () const |
|
int | size () const |
|
template<typename T>
class nap::RGBColor< T >
Color that has a red, green and blue channel of type T