41#ifndef LIBLAS_LASCOLOR_HPP_INCLUDED
42#define LIBLAS_LASCOLOR_HPP_INCLUDED
48#include <boost/array.hpp>
68 Color(uint32_t red, uint32_t green, uint32_t blue);
73 Color(boost::array<value_type, 3>
const& color);
111 typedef boost::array<value_type, 3> base_type;
114 void throw_index_out_of_range()
const;
115 void throw_invalid_color_component()
const;
150 return m_color[
index];
155 return m_color[
index];
160 return lhs[0] == rhs[0] && lhs[1] == rhs[1] && lhs[2] == rhs[2];
165 return !(lhs == rhs);
RGB color container.
Definition color.hpp:56
value_type GetBlue() const
Fetch value of the blue image channel.
Definition color.hpp:138
uint16_t value_type
Definition color.hpp:59
Color()
Default constructor.
Color(boost::array< value_type, 3 > const &color)
User-defined constructor.
Color & operator=(Color const &rhs)
Assignment opreator.
Color(Color const &other)
Copy constructor.
Color(uint32_t red, uint32_t green, uint32_t blue)
User-defined constructor.
void SetBlue(value_type const &value)
Set value of the blue image channel.
Definition color.hpp:143
value_type GetGreen() const
Fetch value of the green image channel.
Definition color.hpp:128
value_type GetRed() const
Fetch value of the red image channel.
Definition color.hpp:118
void SetGreen(value_type const &value)
Set value of the red image channel.
Definition color.hpp:133
value_type & operator[](std::size_t const &index)
Index operator providing access to RGB values.
Definition color.hpp:148
void SetRed(value_type const &value)
Set value of the red image channel.
Definition color.hpp:123
#define LAS_DLL
Definition export.hpp:58
Namespace grouping all elements of libLAS public interface.
Definition bounds.hpp:60
bool operator!=(Classification const &lhs, Classification const &rhs)
Not-equal-to operator implemented in terms of Classification::equal.
Definition classification.hpp:232
bool operator==(Classification const &lhs, Classification const &rhs)
Equal-to operator implemented in terms of Classification::equal.
Definition classification.hpp:226