RGB color container.
More...
#include <color.hpp>
Default constructor.
Initializes with black color using RGB {0, 0, 0}.
liblas::Color::Color |
( |
uint32_t |
red, |
|
|
uint32_t |
green, |
|
|
uint32_t |
blue |
|
) |
| |
User-defined constructor.
Initializes object with given RGB values. The color component values must be normalized to range from 0 to 65535.
- Exceptions
-
std::invalid_argument | if color component value is out of range of unsigned 16-bit integer. |
liblas::Color::Color |
( |
boost::array< value_type, 3 > const & |
color | ) |
|
User-defined constructor.
Initializes color components based on values of 3-element array. The color component values must be normalized to range from 0 to 65535.
- Exceptions
-
std::invalid_argument | if color component value is out of range of unsigned 16-bit integer. |
liblas::Color::Color |
( |
Color const & |
other | ) |
|
Fetch value of the blue image channel.
Fetch value of the green image channel.
Fetch value of the red image channel.
Color& liblas::Color::operator= |
( |
Color const & |
rhs | ) |
|
Index operator providing access to RGB values.
Valid index values are 0, 1 or 2.
- Exceptions
-
std::out_of_range | if requested index is out of range (> 2). |
Color::value_type const & liblas::Color::operator[] |
( |
std::size_t const & |
index | ) |
const |
|
inline |
Const version of index operator providing access to RGB values.
Valid index values are 0, 1 or 2.
- Exceptions
-
std::out_of_range | if requested index is out of range (> 2). |
Set value of the blue image channel.
Set value of the red image channel.
Set value of the red image channel.
The documentation for this class was generated from the following file: