41 #ifndef LIBLAS_LASCOLOR_HPP_INCLUDED 42 #define LIBLAS_LASCOLOR_HPP_INCLUDED 48 #include <boost/array.hpp> 69 Color(uint32_t red, uint32_t green, uint32_t blue);
75 Color(boost::array<value_type, 3>
const& color);
84 value_type GetRed()
const;
87 void SetRed(value_type
const& value);
90 value_type GetBlue()
const;
93 void SetBlue(value_type
const& value);
96 value_type GetGreen()
const;
99 void SetGreen(value_type
const& value);
104 value_type& operator[](std::size_t
const&
index);
109 value_type
const& operator[](std::size_t
const&
index)
const;
113 typedef boost::array<value_type, 3> base_type;
116 void throw_index_out_of_range()
const;
117 void throw_invalid_color_component()
const;
152 return m_color[index];
157 return m_color[index];
162 return lhs[0] == rhs[0] && lhs[1] == rhs[1] && lhs[2] == rhs[2];
167 return !(lhs == rhs);
172 #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:130
value_type & operator[](std::size_t const &index)
Index operator providing access to RGB values.
Definition: color.hpp:150
void SetRed(value_type const &value)
Set value of the red image channel.
Definition: color.hpp:125
value_type GetBlue() const
Fetch value of the blue image channel.
Definition: color.hpp:140
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:135
value_type GetRed() const
Fetch value of the red image channel.
Definition: color.hpp:120
void SetBlue(value_type const &value)
Set value of the blue image channel.
Definition: color.hpp:145
Definition: schema.hpp:80
RGB color container.
Definition: color.hpp:55
uint16_t value_type
Definition: color.hpp:59