45 #include <visp3/core/vpConfig.h>
46 #include <visp3/core/vpColVector.h>
48 #if ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L)))
49 #include <type_traits>
92 : R(r), G(g), B(b), A(a)
102 VP_EXPLICIT
inline vpRGBa(
unsigned char v) : R(v), G(v), B(v), A(v) { }
111 VP_EXPLICIT
inline vpRGBa(
unsigned int v) : R(v), G(v), B(v), A(v)
123 VP_EXPLICIT
inline vpRGBa(
int v) : R(v), G(v), B(v), A(v)
131 #if ((__cplusplus >= 201103L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L)))
152 vpRGBa &operator=(
const unsigned char &v);
153 vpRGBa &operator=(
const unsigned int &v);
154 vpRGBa &operator=(
const int &v);
155 #if ((__cplusplus >= 201103L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L)))
169 bool operator==(
const vpRGBa &v)
const;
170 bool operator!=(
const vpRGBa &v)
const;
179 bool operator<(
const vpRGBa &v)
const;
180 bool operator>(
const vpRGBa &v)
const;
182 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpRGBa &rgba);
193 #if ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L)))
194 static_assert(std::is_trivially_assignable_v<vpRGBa, vpRGBa>);
195 static_assert(std::is_trivially_copyable_v<vpRGBa>);
Implementation of column vector and the associated operations.
unsigned char B
Blue component.
VP_EXPLICIT vpRGBa(const vpColVector &v)
vpRGBa(unsigned char r, unsigned char g, unsigned char b, unsigned char a=vpRGBa::alpha_default)
VP_EXPLICIT vpRGBa(unsigned int v)
unsigned char R
Red component.
VP_EXPLICIT vpRGBa(int v)
vpRGBa & operator=(const vpRGBa &v)
unsigned char G
Green component.
VP_EXPLICIT vpRGBa(unsigned char v)
unsigned char A
Additional component.
vpMatrix operator*(const double &x, const vpMatrix &A)