|
libLAS API Reference (svn-trunk)
|
RGB color container. More...
#include <color.hpp>

Public Types | |
| typedef uint16_t | value_type |
Public Member Functions | |
| Color () | |
| Default constructor. | |
| Color (uint32_t red, uint32_t green, uint32_t blue) | |
| User-defined constructor. | |
| Color (boost::array< value_type, 3 > const &color) | |
| User-defined constructor. | |
| Color (Color const &other) | |
| Copy constructor. | |
| Color & | operator= (Color const &rhs) |
| Assignment opreator. | |
| value_type | GetRed () const |
| Fetch value of the red image channel. | |
| void | SetRed (value_type const &value) |
| Set value of the red image channel. | |
| value_type | GetBlue () const |
| Fetch value of the blue image channel. | |
| void | SetBlue (value_type const &value) |
| Set value of the blue image channel. | |
| value_type | GetGreen () const |
| Fetch value of the green image channel. | |
| void | SetGreen (value_type const &value) |
| Set value of the red image channel. | |
| value_type & | operator[] (std::size_t const &index) |
| Index operator providing access to RGB values. | |
| value_type const & | operator[] (std::size_t const &index) const |
| Const version of index operator providing access to RGB values. | |
RGB color container.
| typedef uint16_t liblas::Color::value_type |
| liblas::Color::Color | ( | ) |
Default constructor.
Initializes with black color using RGB {0, 0, 0}.
Referenced by Color(), and operator=().

| liblas::Color::Color | ( | uint32_t | red, |
| uint32_t | green, | ||
| uint32_t | blue ) |
User-defined constructor.
Initializes object with given RGB values.
| std::invalid_argument | if color component value is out of range of unsigned 8-bit integer. |
| liblas::Color::Color | ( | boost::array< value_type, 3 > const & | color | ) |
User-defined constructor.
Initializes colour components based on values of 3-element array.
| std::invalid_argument | if color component value is out of range of unsigned 8-bit integer. |
| liblas::Color::Color | ( | Color const & | other | ) |
|
inline |
Fetch value of the blue image channel.
Referenced by operator=().

|
inline |
Fetch value of the green image channel.
Referenced by operator=().

|
inline |
Fetch value of the red image channel.
Referenced by operator=().

Assignment opreator.
References Color(), GetBlue(), GetGreen(), GetRed(), operator[](), SetBlue(), SetGreen(), and SetRed().

|
inline |
Index operator providing access to RGB values.
Valid index values are 0, 1 or 2.
| std::out_of_range | if requested index is out of range (> 2). |
Referenced by operator=().

|
inline |
Const version of index operator providing access to RGB values.
Valid index values are 0, 1 or 2.
| std::out_of_range | if requested index is out of range (> 2). |
|
inline |
Set value of the blue image channel.
Referenced by operator=().

|
inline |
Set value of the red image channel.
Referenced by operator=().

|
inline |
Set value of the red image channel.
Referenced by operator=().
