DATAKIT API  V2025.4
Dtk_RGB Class Reference

Public Member Functions

int & A ()
 
const int & A () const
 
int & B ()
 
const int & B () const
 
void Clear ()
 
 Dtk_RGB ()
 
 Dtk_RGB (const Dtk_RGB &s)
 
 Dtk_RGB (int r, int g, int b, int a=-1, int inIndexReader=-1)
 
 Dtk_RGB (int(&rgb)[3])
 
 Dtk_RGB (int(&rgba)[4])
 
 Dtk_RGB (int(&rgba)[5])
 
int & G ()
 
const int & G () const
 
void GetRGB (int &outRed, int &outGreen, int &outBlue)
 
void GetRGBA (int &outRed, int &outGreen, int &outBlue, int &outAlpha)
 
bool HasAlpha () const
 
bool HasColor () const
 
int & IndexReader ()
 
const int & IndexReader () const
 
bool IsFilled () const
 
Dtk_RGBoperator= (const Dtk_RGB &s)
 
int & operator[] (int pos)
 
const int & operator[] (int pos) const
 
int & R ()
 
const int & R () const
 
void SetRGBA (const int &inRed, const int &inGreen, const int &inBlue, const int &inAlpha=-1)
 
 ~Dtk_RGB ()
 

Constructor & Destructor Documentation

◆ Dtk_RGB() [1/6]

Dtk_RGB::Dtk_RGB ( )

◆ Dtk_RGB() [2/6]

Dtk_RGB::Dtk_RGB ( const Dtk_RGB s)

◆ Dtk_RGB() [3/6]

Dtk_RGB::Dtk_RGB ( int  r,
int  g,
int  b,
int  a = -1,
int  inIndexReader = -1 
)

◆ Dtk_RGB() [4/6]

Dtk_RGB::Dtk_RGB ( int(&)  rgba[5])

◆ Dtk_RGB() [5/6]

Dtk_RGB::Dtk_RGB ( int(&)  rgba[4])

◆ Dtk_RGB() [6/6]

Dtk_RGB::Dtk_RGB ( int(&)  rgb[3])

◆ ~Dtk_RGB()

Dtk_RGB::~Dtk_RGB ( )

Member Function Documentation

◆ A() [1/2]

int& Dtk_RGB::A ( )

◆ A() [2/2]

const int& Dtk_RGB::A ( ) const

◆ B() [1/2]

int& Dtk_RGB::B ( )

◆ B() [2/2]

const int& Dtk_RGB::B ( ) const

◆ Clear()

void Dtk_RGB::Clear ( )

◆ G() [1/2]

int& Dtk_RGB::G ( )

◆ G() [2/2]

const int& Dtk_RGB::G ( ) const

◆ GetRGB()

void Dtk_RGB::GetRGB ( int &  outRed,
int &  outGreen,
int &  outBlue 
)

◆ GetRGBA()

void Dtk_RGB::GetRGBA ( int &  outRed,
int &  outGreen,
int &  outBlue,
int &  outAlpha 
)

◆ HasAlpha()

bool Dtk_RGB::HasAlpha ( ) const

◆ HasColor()

bool Dtk_RGB::HasColor ( ) const

◆ IndexReader() [1/2]

int& Dtk_RGB::IndexReader ( )

◆ IndexReader() [2/2]

const int& Dtk_RGB::IndexReader ( ) const

◆ IsFilled()

bool Dtk_RGB::IsFilled ( ) const

◆ operator=()

Dtk_RGB& Dtk_RGB::operator= ( const Dtk_RGB s)

◆ operator[]() [1/2]

int& Dtk_RGB::operator[] ( int  pos)

◆ operator[]() [2/2]

const int& Dtk_RGB::operator[] ( int  pos) const

◆ R() [1/2]

int& Dtk_RGB::R ( )

◆ R() [2/2]

const int& Dtk_RGB::R ( ) const

◆ SetRGBA()

void Dtk_RGB::SetRGBA ( const int &  inRed,
const int &  inGreen,
const int &  inBlue,
const int &  inAlpha = -1 
)