Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::Color Union Reference

#include <Color.hpp>

Collaboration diagram for Bial::Color:
Collaboration graph

Public Member Functions

 Color ()
 Constructor. All zero values. More...
 
 Color (uint val)
 Constructor. More...
 
 Color (uchar alpha, uchar red, uchar green, uchar blue)
 Constructor. More...
 
 Color (const Color &other)
 Copy Constructor. More...
 
 Color (Color &&other)
 Move Constructor. More...
 
 ~Color ()
 Destructor. More...
 
 Color (const RealColor &other)
 Copy Constructor. More...
 
Coloroperator= (const Color &other)
 Copies color to this color. More...
 
Coloroperator= (Color &&other)
 moves color to this color. More...
 
const ucharoperator[] (size_t chl) const
 Returns a constant reference of data pointed by channel chl. Same as operator()( chl ). More...
 
ucharoperator[] (size_t chl)
 Returns the reference for data pointed by channle chl. Same as operator()( chl ). More...
 
const ucharoperator() (size_t chl) const
 Returns a constant reference of data pointed by channel chl. Same as operator[]( chl ). More...
 
ucharoperator() (size_t chl)
 Returns the reference for data pointed by channle chl. Same as operator[]( chl ). More...
 
void Value (uint val)
 Updates color value with val. More...
 
uint Value () const
 Returns current color value. More...
 
template<class O >
void Print (O &os) const
 Prints color containts to output stream os. More...
 

Public Attributes

Array< uchar, 4 > channel
 
uint value
 

Detailed Description

Definition at line 19 of file Color.hpp.

Constructor & Destructor Documentation

Bial::Color::Color ( )
explicit

Constructor. All zero values.

Date
2015/Oct/06
Parameters
none.
Returns
none.
Warning
none.
Bial::Color::Color ( uint  val)
explicit

Constructor.

Date
2015/Oct/06
Parameters
valThe color value.
Returns
none.
Warning
none.
Bial::Color::Color ( uchar  alpha,
uchar  red,
uchar  green,
uchar  blue 
)

Constructor.

Date
2015/Oct/06
Parameters
chlThe color channels.
Returns
none.
Warning
none.
Bial::Color::Color ( const Color other)

Copy Constructor.

Date
2015/Oct/06
Version
1.0.00
Parameters
otherOther Color.
Returns
none.
Warning
none.
Bial::Color::Color ( Color &&  other)

Move Constructor.

Date
2015/Oct/06
Version
1.0.00
Parameters
unamedOther Color.
Returns
none.
Warning
none.
Bial::Color::~Color ( )
inline

Destructor.

Date
2015/Oct/06
Version
1.0.00
Parameters
unamedOther Color.
Returns
none.
Warning
none.

Definition at line 82 of file Color.hpp.

Bial::Color::Color ( const RealColor other)

Copy Constructor.

Date
2015/Oct/27
Version
1.0.00
Parameters
otherOther RealColor.
Returns
none.
Warning
none.

Member Function Documentation

const uchar& Bial::Color::operator() ( size_t  chl) const

Returns a constant reference of data pointed by channel chl. Same as operator[]( chl ).

Date
2015/Oct/06
Parameters
chla channel to be acessed.
Returns
Constant reference of data pointed by channel chl.
Warning
Channel bounds are not verified.
uchar& Bial::Color::operator() ( size_t  chl)

Returns the reference for data pointed by channle chl. Same as operator[]( chl ).

Date
2015/Oct/06
Parameters
chla channel to be acessed.
Returns
Reference of data pointed by channel chl.
Warning
Channel bounds are not verified.
Color& Bial::Color::operator= ( const Color other)

Copies color to this color.

Date
2015/Oct/06
Parameters
unamedColor to be assigned to this.
Returns
none.
Warning
none.
Color& Bial::Color::operator= ( Color &&  other)

moves color to this color.

Date
2015/Oct/06
Parameters
unamedColor to be assigned to this.
Returns
none.
Warning
none.
const uchar& Bial::Color::operator[] ( size_t  chl) const

Returns a constant reference of data pointed by channel chl. Same as operator()( chl ).

Date
2015/Oct/06
Parameters
chla channel to be acessed.
Returns
Constant reference of data pointed by channel chl.
Warning
Channel bounds are not verified.
uchar& Bial::Color::operator[] ( size_t  chl)

Returns the reference for data pointed by channle chl. Same as operator()( chl ).

Date
2015/Oct/06
Parameters
chla channel to be acessed.
Returns
Reference of data pointed by channel chl.
Warning
Channel bounds are not verified.
template<class O >
void Bial::Color::Print ( O &  os) const

Prints color containts to output stream os.

Date
2015/Oct/21
Parameters
osan output stream.
Returns
none.
Warning
none.

Definition at line 369 of file Color.hpp.

void Bial::Color::Value ( uint  val)

Updates color value with val.

Date
2015/Oct/06
Parameters
valColor new value.
Returns
none.
Warning
none.
uint Bial::Color::Value ( ) const

Returns current color value.

Date
2015/Oct/06
Parameters
none.
Returns
Current color value.
Warning
none.

Member Data Documentation

Array< uchar, 4 > Bial::Color::channel

Definition at line 21 of file Color.hpp.

uint Bial::Color::value

Definition at line 22 of file Color.hpp.


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