#include <color_morpher.hh>
Inheritance diagram for oln::morpher::super_color_morpher< SrcType, Exact >:
Public Types | |
typedef abstract::generic_morpher< SrcType, Exact > | super_type |
The upper class. | |
typedef image_id< Exact >::impl_type | impl_type |
The morpher underlying implementation. | |
Public Member Functions | |
unsigned | get_comp () const |
Return the number of the image component to retrieve. | |
impl_type * | impl () |
Return the image implementation. | |
const impl_type * | impl () const |
Return the image implementation. | |
Static Public Member Functions | |
static std::string | name () |
Protected Member Functions | |
super_color_morpher (const SrcType &ima, unsigned n) | |
super_color_morpher () | |
Protected Attributes | |
unsigned | n_ |
SrcType | Input type decorated. | |
Exact | Exact type |
Definition at line 97 of file color_morpher.hh.
oln::morpher::super_color_morpher< SrcType, Exact >::super_color_morpher | ( | const SrcType & | ima, | |
unsigned | n | |||
) | [inline, protected] |
Default constructor.
ima will be the decorated image. One can not use this constructor to instantiate this class since it is protected.
Definition at line 116 of file color_morpher.hh.
00116 : super_type(ima) 00117 { 00118 assert(n == ntg::rgb_R || n == ntg::rgb_G || n == ntg::rgb_B); 00119 n_ = n; 00120 }
oln::morpher::super_color_morpher< SrcType, Exact >::super_color_morpher | ( | ) | [inline, protected] |
Empty constructor.
Needed by mlc_hierarchy::any_with_diamond.
Definition at line 126 of file color_morpher.hh.
unsigned oln::morpher::super_color_morpher< SrcType, Exact >::n_ [protected] |
The component to return.
If n is equal to 0, the red component is returned. If n is equal to 1, the green component is returned. If n is equal to 2, the blue component is returned.
Definition at line 108 of file color_morpher.hh.