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);
82 value_type GetRed()
const;
85 void SetRed(value_type
const& value);
88 value_type GetBlue()
const;
91 void SetBlue(value_type
const& value);
94 value_type GetGreen()
const;
97 void SetGreen(value_type
const& value);
102 value_type& operator[](std::size_t
const&
index);
107 value_type
const& operator[](std::size_t
const&
index)
const;
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);
170 #endif // LIBLAS_LASCOLOR_HPP_INCLUDED
bool operator!=(Classification const &lhs, Classification const &rhs)
Not-equal-to operator implemented in terms of Classification::equal.
Definition: classification.hpp:232
#define LAS_DLL
Definition: export.hpp:58
value_type GetGreen() const
Fetch value of the green image channel.
Definition: color.hpp:128
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
value_type GetBlue() const
Fetch value of the blue image channel.
Definition: color.hpp:138
bool operator==(Classification const &lhs, Classification const &rhs)
Equal-to operator implemented in terms of Classification::equal.
Definition: classification.hpp:226
Namespace grouping all elements of libLAS public interface.
Definition: bounds.hpp:60
void SetGreen(value_type const &value)
Set value of the red image channel.
Definition: color.hpp:133
value_type GetRed() const
Fetch value of the red image channel.
Definition: color.hpp:118
void SetBlue(value_type const &value)
Set value of the blue image channel.
Definition: color.hpp:143
Definition: schema.hpp:80
RGB color container.
Definition: color.hpp:55
uint16_t value_type
Definition: color.hpp:59