#include <pxl_pixeltypes.h>
Public Member Functions | |
| PhotometricComponents (Photometric inPhotometric=pmRGB8) | |
| void | setPhotometric (Photometric inPhotometric) |
| Photometric | composePhotometric () const |
| bool | isValid () const |
Public Attributes | |
| ElementType | elementType |
| Element type; the unit for storing the value. | |
| ColorSpace | colorSpace |
| Color space. | |
| ChannelLayout | layout |
| Channel Layout. | |
| size_t | channels |
| Number of channels. | |
| AlphaType | alphaType |
| Whether the alpha-channel is associated or not. | |
Definition at line 732 of file pxl_pixeltypes.h.
| Celartem::PhotometricComponents::PhotometricComponents | ( | Photometric | inPhotometric = pmRGB8 |
) | [inline] |
This constructor initializes the components by the specified Photometric.
| inPhotometric | The photometric to initialize the components. You can also omit this parameter and then regarded as specifing pmRGB8. |
Definition at line 758 of file pxl_pixeltypes.h.
| void Celartem::PhotometricComponents::setPhotometric | ( | Photometric | inPhotometric | ) | [inline] |
This function set a Photometric to this instance. All the components in the instance is initialized using the Photometric value.
| inPhotometric | The photometric to initialize the components. |
Definition at line 770 of file pxl_pixeltypes.h.
Referenced by PhotometricComponents().
| Photometric Celartem::PhotometricComponents::composePhotometric | ( | ) | const [inline] |
This function composes a new Photometric value based on the components in the instance.
If the value of channels is 0 on the call of this function, this function automatically calculates the number of channels corresponding to the current components.
Definition at line 790 of file pxl_pixeltypes.h.
Referenced by isValid().
| bool Celartem::PhotometricComponents::isValid | ( | ) | const [inline] |
This function determines whether the current components can compose a valid photometric or not.
true if valid, otherwise false. Definition at line 823 of file pxl_pixeltypes.h.
Element type; the unit for storing the value.
Definition at line 735 of file pxl_pixeltypes.h.
Referenced by composePhotometric(), and setPhotometric().
Color space.
Definition at line 738 of file pxl_pixeltypes.h.
Referenced by composePhotometric(), and setPhotometric().
Channel Layout.
Definition at line 741 of file pxl_pixeltypes.h.
Referenced by composePhotometric(), and setPhotometric().
Number of channels.
Definition at line 744 of file pxl_pixeltypes.h.
Referenced by composePhotometric(), and setPhotometric().
Whether the alpha-channel is associated or not.
Definition at line 747 of file pxl_pixeltypes.h.
Referenced by composePhotometric(), and setPhotometric().