![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
RGB pixel definition. More...
#include <mdsPixelTypes.h>
Public Types | |
| typedef mds::sys::tUInt8 | tComponent |
| Single RGBA component type. | |
| typedef mds::sys::tUInt32 | tRGBA |
| RGBA represented as unsigned long. | |
Public Member Functions | |
| const tComponent & | a () const |
| Returns reference to the alpha component. | |
| tComponent & | a () |
| const tComponent & | b () const |
| Returns reference to the blue component. | |
| tComponent & | b () |
| CRGBPixel () | |
| Default constructor. | |
| CRGBPixel (tComponent Red, tComponent Green, tComponent Blue) | |
| Constructor. | |
| CRGBPixel (tRGBA Pixel) | |
| Constructor. | |
| CRGBPixel (const CRGBPixel &Pixel) | |
| Copy constructor. | |
| const tComponent & | g () const |
| Returns reference to the green component. | |
| tComponent & | g () |
| const tComponent & | getAlpha () const |
| Returns reference to the alpha component. | |
| tComponent & | getAlpha () |
| const tComponent & | getBlue () const |
| Returns reference to the blue component. | |
| tComponent & | getBlue () |
| const tComponent & | getGreen () const |
| Returns reference to the green component. | |
| tComponent & | getGreen () |
| const tComponent & | getRed () const |
| Returns reference to the red component. | |
| tComponent & | getRed () |
| const tRGBA & | getRGBA () const |
| Returns reference to the all RGBA components. | |
| tRGBA & | getRGBA () |
| CRGBPixel & | operator*= (const CRGBPixel &p) |
| Component wise multiplication. | |
| CRGBPixel & | operator*= (double Value) |
| Mutliplies all components by scalar. | |
| CRGBPixel & | operator+= (const CRGBPixel &p) |
| Component wise addition. | |
| CRGBPixel & | operator+= (tComponent c) |
| Adds scalar to all components. | |
| CRGBPixel & | operator-= (const CRGBPixel &p) |
| Component wise subtraction. | |
| CRGBPixel & | operator-= (tComponent c) |
| Subtracts scalar from all components. | |
| CRGBPixel & | operator/= (const CRGBPixel &p) |
| Component wise division. | |
| CRGBPixel & | operator/= (double Value) |
| Divides all components by scalar. | |
| CRGBPixel & | operator= (CRGBPixel Pixel) |
| Assignment operator. | |
| CRGBPixel & | operator= (tRGBA Pixel) |
| Assignment operator. | |
| const tComponent & | r () const |
| Returns reference to the red component. | |
| tComponent & | r () |
| const tRGBA & | rgba () const |
| Returns reference to the all RGBA components. | |
| tRGBA & | rgba () |
| CRGBA & | set (tComponent Red, tComponent Green, tComponent Blue, tComponent Alpha=255) |
| Changes component values. | |
| CRGBA & | setAlpha (tComponent Alpha) |
| CRGBA & | setBlue (tComponent Blue) |
| CRGBA & | setGreen (tComponent Green) |
| CRGBA & | setRed (tComponent Red) |
| Changes component value. | |
Protected Attributes | |
| union { | |
| tComponent m_Components [4] | |
| Separated RGBA components. | |
| tRGBA m_rgba | |
| RGBa represented as a one unsigned long value. | |
| }; | |
| RGBA components. | |
Friends | |
| bool | operator!= (const CRGBA &l, const CRGBA &r) |
| bool | operator== (const CRGBA &l, const CRGBA &r) |
| Comparison operator. | |
RGB pixel definition.
typedef mds::sys::tUInt8 mds::img::CRGBA::tComponent [inherited] |
Single RGBA component type.
typedef mds::sys::tUInt32 mds::img::CRGBA::tRGBA [inherited] |
RGBA represented as unsigned long.
Default constructor.
| mds::img::CRGBPixel::CRGBPixel | ( | tComponent | Red, |
| tComponent | Green, | ||
| tComponent | Blue | ||
| ) |
Constructor.
| mds::img::CRGBPixel::CRGBPixel | ( | tRGBA | Pixel | ) |
Constructor.
| mds::img::CRGBPixel::CRGBPixel | ( | const CRGBPixel & | Pixel | ) |
Copy constructor.
| const tComponent& mds::img::CRGBA::a | ( | ) | const [inherited] |
Returns reference to the alpha component.
| tComponent& mds::img::CRGBA::a | ( | ) | [inherited] |
| const tComponent& mds::img::CRGBA::b | ( | ) | const [inherited] |
Returns reference to the blue component.
| tComponent& mds::img::CRGBA::b | ( | ) | [inherited] |
| const tComponent& mds::img::CRGBA::g | ( | ) | const [inherited] |
Returns reference to the green component.
| tComponent& mds::img::CRGBA::g | ( | ) | [inherited] |
| const tComponent& mds::img::CRGBA::getAlpha | ( | ) | const [inherited] |
Returns reference to the alpha component.
| tComponent& mds::img::CRGBA::getAlpha | ( | ) | [inherited] |
| const tComponent& mds::img::CRGBA::getBlue | ( | ) | const [inherited] |
Returns reference to the blue component.
| tComponent& mds::img::CRGBA::getBlue | ( | ) | [inherited] |
| const tComponent& mds::img::CRGBA::getGreen | ( | ) | const [inherited] |
Returns reference to the green component.
| tComponent& mds::img::CRGBA::getGreen | ( | ) | [inherited] |
| const tComponent& mds::img::CRGBA::getRed | ( | ) | const [inherited] |
Returns reference to the red component.
| tComponent& mds::img::CRGBA::getRed | ( | ) | [inherited] |
| const tRGBA& mds::img::CRGBA::getRGBA | ( | ) | const [inherited] |
Returns reference to the all RGBA components.
| tRGBA& mds::img::CRGBA::getRGBA | ( | ) | [inherited] |
| CRGBPixel& mds::img::CRGBPixel::operator*= | ( | double | Value | ) |
Mutliplies all components by scalar.
| CRGBPixel& mds::img::CRGBPixel::operator+= | ( | tComponent | c | ) |
Adds scalar to all components.
| CRGBPixel& mds::img::CRGBPixel::operator-= | ( | tComponent | c | ) |
Subtracts scalar from all components.
| CRGBPixel& mds::img::CRGBPixel::operator/= | ( | double | Value | ) |
Divides all components by scalar.
Assignment operator.
Reimplemented from mds::img::CRGBA.
| const tComponent& mds::img::CRGBA::r | ( | ) | const [inherited] |
Returns reference to the red component.
| tComponent& mds::img::CRGBA::r | ( | ) | [inherited] |
| const tRGBA& mds::img::CRGBA::rgba | ( | ) | const [inherited] |
Returns reference to the all RGBA components.
| tRGBA& mds::img::CRGBA::rgba | ( | ) | [inherited] |
| CRGBA& mds::img::CRGBA::set | ( | tComponent | Red, |
| tComponent | Green, | ||
| tComponent | Blue, | ||
| tComponent | Alpha = 255 |
||
| ) | [inherited] |
Changes component values.
| CRGBA& mds::img::CRGBA::setAlpha | ( | tComponent | Alpha | ) | [inherited] |
| CRGBA& mds::img::CRGBA::setBlue | ( | tComponent | Blue | ) | [inherited] |
| CRGBA& mds::img::CRGBA::setGreen | ( | tComponent | Green | ) | [inherited] |
| CRGBA& mds::img::CRGBA::setRed | ( | tComponent | Red | ) | [inherited] |
Changes component value.
union { ... } [protected, inherited] |
RGBA components.
tComponent mds::img::CRGBA::m_Components[4] [inherited] |
Separated RGBA components.
tRGBA mds::img::CRGBA::m_rgba [inherited] |
RGBa represented as a one unsigned long value.
1.7.6.1