Zivid C++ API 2.11.1+de9b5dae-1
Public Types | Public Member Functions | Public Attributes | List of all members
Zivid::ColorRGBABase< T > Struct Template Reference

#include <Zivid/Color.h>

Public Types

using ValueType = T
 The type of the channel values.
 

Public Member Functions

 ColorRGBABase ()=default
 Constructor.
 
 ColorRGBABase (T red, T green, T blue, T alpha)
 Constructor.
 
ZIVID_CORE_EXPORT bool operator== (const ColorRGBABase &rhs) const
 Check for equality.
 
ZIVID_CORE_EXPORT bool operator!= (const ColorRGBABase &rhs) const
 Check for inequality.
 
std::string toString () const
 Get string representation.
 

Public Attributes

r
 Red channel.
 
g
 Green channel.
 
b
 Blue channel.
 
a
 Alpha channel.
 

Member Typedef Documentation

◆ ValueType

template<typename T >
using Zivid::ColorRGBABase< T >::ValueType = T

The type of the channel values.

Constructor & Destructor Documentation

◆ ColorRGBABase() [1/2]

template<typename T >
Zivid::ColorRGBABase< T >::ColorRGBABase ( )
default

Constructor.

◆ ColorRGBABase() [2/2]

template<typename T >
Zivid::ColorRGBABase< T >::ColorRGBABase ( red,
green,
blue,
alpha 
)
inline

Constructor.

Member Function Documentation

◆ operator!=()

template<typename T >
ZIVID_CORE_EXPORT bool Zivid::ColorRGBABase< T >::operator!= ( const ColorRGBABase< T > &  rhs) const

Check for inequality.

◆ operator==()

template<typename T >
ZIVID_CORE_EXPORT bool Zivid::ColorRGBABase< T >::operator== ( const ColorRGBABase< T > &  rhs) const

Check for equality.

◆ toString()

template<typename T >
std::string Zivid::ColorRGBABase< T >::toString ( ) const
inline

Get string representation.

Member Data Documentation

◆ a

template<typename T >
T Zivid::ColorRGBABase< T >::a

Alpha channel.

◆ b

template<typename T >
T Zivid::ColorRGBABase< T >::b

Blue channel.

◆ g

template<typename T >
T Zivid::ColorRGBABase< T >::g

Green channel.

◆ r

template<typename T >
T Zivid::ColorRGBABase< T >::r

Red channel.


The documentation for this struct was generated from the following file: