3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
ColourRGBA Class Reference

#include <basics.h>

Public Member Functions

 ColourRGBA ()
 
 ColourRGBA (unsigned char, unsigned char, unsigned char)
 
 ColourRGBA (unsigned char, unsigned char, unsigned char, unsigned char)
 
unsigned char r () const
 
unsigned char g () const
 
unsigned char b () const
 
unsigned char a () const
 
bool parse (const std::string &)
 
std::string rgbString () const
 
std::string rgbaString () const
 
RGBf toFloat () const
 
void fromRGBAf (const ColourRGBAf &)
 
ColourRGBAf toRGBAf () const
 
void fromRGBf (const RGBf &)
 
bool operator== (const ColourRGBA &oth) const
 
bool operator== (const ColourRGBAf &oth) const
 
bool operator== (const RGBf &oth) const
 
bool operator!= (const ColourRGBA &oth) const
 
bool operator!= (const ColourRGBAf &oth) const
 
unsigned char at (unsigned int idx) const
 

Public Attributes

unsigned char data [4]
 

Constructor & Destructor Documentation

◆ ColourRGBA() [1/3]

ColourRGBA::ColourRGBA ( )

◆ ColourRGBA() [2/3]

ColourRGBA::ColourRGBA ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)

References b(), data, g(), and r().

◆ ColourRGBA() [3/3]

ColourRGBA::ColourRGBA ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a 
)

References a(), b(), data, g(), and r().

Member Function Documentation

◆ a()

unsigned char ColourRGBA::a ( ) const

References data.

Referenced by ColourRGBA(), ColourRGBAf::ColourRGBAf(), BoundCube::makeUnion(), and parse().

Here is the caller graph for this function:

◆ at()

unsigned char ColourRGBA::at ( unsigned int  idx) const

References ASSERT, and data.

Referenced by ColourRGBAf::operator==().

Here is the caller graph for this function:

◆ b()

unsigned char ColourRGBA::b ( ) const

◆ fromRGBAf()

void ColourRGBA::fromRGBAf ( const ColourRGBAf )

◆ fromRGBf()

void ColourRGBA::fromRGBf ( const RGBf oth)

References RGBf::blue, data, RGBf::green, and RGBf::red.

Referenced by RangeFile::write().

Here is the caller graph for this function:

◆ g()

unsigned char ColourRGBA::g ( ) const

References data.

Referenced by ColourRGBA(), ColourRGBAf::ColourRGBAf(), RangeFile::detectFileType(), parse(), updateCameraPropertyGrid(), and updateFilterPropertyGrid().

Here is the caller graph for this function:

◆ operator!=() [1/2]

bool ColourRGBA::operator!= ( const ColourRGBA oth) const

◆ operator!=() [2/2]

bool ColourRGBA::operator!= ( const ColourRGBAf oth) const

◆ operator==() [1/3]

bool ColourRGBA::operator== ( const ColourRGBA oth) const

References data.

◆ operator==() [2/3]

bool ColourRGBA::operator== ( const ColourRGBAf oth) const

References ColourRGBAf::at(), and data.

◆ operator==() [3/3]

bool ColourRGBA::operator== ( const RGBf oth) const

References RGBf::blue, data, RGBf::green, and RGBf::red.

◆ parse()

bool ColourRGBA::parse ( const std::string &  str)

◆ r()

unsigned char ColourRGBA::r ( ) const

◆ rgbaString()

std::string ColourRGBA::rgbaString ( ) const

◆ rgbString()

std::string ColourRGBA::rgbString ( ) const

◆ toFloat()

RGBf ColourRGBA::toFloat ( ) const

References RGBf::blue, data, RGBf::green, and RGBf::red.

◆ toRGBAf()

ColourRGBAf ColourRGBA::toRGBAf ( ) const

Member Data Documentation

◆ data

unsigned char ColourRGBA::data[4]

The documentation for this class was generated from the following files: