![]() |
Mapper
0.9.0
API documentation
|
The MapColorRgb class provides a datatype for storing and transferring opaque RGB colors. More...
#include <map_color.h>
Public Member Functions | |
| MapColorRgb () noexcept=default | |
| Constructs a black color. More... | |
| MapColorRgb (float r, float g, float b) noexcept | |
| Constructs a color with the given components. More... | |
| MapColorRgb (const MapColorRgb &other) noexcept=default | |
| Constructs a copy of the given RGB color. More... | |
| MapColorRgb (const QColor &other) noexcept | |
| Constructs a RGB color of the given QColor. More... | |
| MapColorRgb & | operator= (const MapColorRgb &other) noexcept=default |
| Assigns another color's value to this color. More... | |
| operator QColor () const | |
| Converts this color to a QColor. More... | |
| bool | isBlack () const |
| Returns true if this color is black. More... | |
| bool | isWhite () const |
| Returns true if this color is white. More... | |
Public Attributes | |
| float | r = 0 |
| The red component. More... | |
| float | g = 0 |
| The green component. More... | |
| float | b = 0 |
| The blue component. More... | |
The MapColorRgb class provides a datatype for storing and transferring opaque RGB colors.
Components (r, g, b) are floats in the range [0.0; 1.0].
|
defaultnoexcept |
Constructs a black color.
|
inlinenoexcept |
Constructs a color with the given components.
|
defaultnoexcept |
Constructs a copy of the given RGB color.
|
inlinenoexcept |
Constructs a RGB color of the given QColor.
Used for type conversions.
|
inline |
Returns true if this color is black.
|
inline |
Returns true if this color is white.
|
defaultnoexcept |
Assigns another color's value to this color.
| float OpenOrienteering::MapColorRgb::b = 0 |
The blue component.
| float OpenOrienteering::MapColorRgb::g = 0 |
The green component.
| float OpenOrienteering::MapColorRgb::r = 0 |
The red component.
1.8.13