|
| | RColor (T value) |
| |
| | RColor () |
| |
| | RColor (const nap::BaseColor &source) |
| |
| void | setRed (T value) |
| |
| T | getRed () const |
| |
| | 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::RColor< T >
Color that has only one value associated with it. The red color can be associated (for example) with height or a stencil value