|
Krita Source Code Documentation
|
#include <KoChannelInfo.h>
Classes | |
| struct | DoubleRange |
Public Types | |
| enum | enumChannelType { COLOR , ALPHA } |
| enum to define the type of the channel More... | |
| enum | enumChannelValueType { UINT8 , UINT16 , UINT32 , FLOAT16 , FLOAT32 , FLOAT64 , INT8 , INT16 , OTHER } |
| enum to define the value of the channel More... | |
Public Member Functions | |
| enumChannelType | channelType () const |
| enumChannelValueType | channelValueType () const |
| QColor | color () const |
| qint32 | displayPosition () const |
| double | getUIMax (void) const |
| double | getUIMin (void) const |
| double | getUIUnitValue (void) const |
| getUIUnitValue Gets the unit value for this channel. This is suitable for converting between representations. | |
| KoChannelInfo () | |
| KoChannelInfo (const QString &name, qint32 npos, qint32 displayPosition, enumChannelType channelType, enumChannelValueType channelValueType, qint32 size=-1, const QColor &color=QColor(0, 0, 0), const DoubleRange &uiMinMax=DoubleRange()) | |
| QString | name () const |
| bool | operator< (const KoChannelInfo &info) |
| qint32 | pos () const |
| qint32 | size () const |
Static Public Member Functions | |
| static QList< KoChannelInfo * > | displayOrderSorted (const QList< KoChannelInfo * > &channels) |
| static int | displayPositionToChannelIndex (int displayPosition, const QList< KoChannelInfo * > &channels) |
Private Attributes | |
| enumChannelType | m_channelType |
| enumChannelValueType | m_channelValueType |
| QColor | m_color |
| qint32 | m_displayPosition |
| QString | m_name |
| qint32 | m_pos |
| qint32 | m_size |
| DoubleRange | m_uiMinMax |
This class gives some basic information about a channel, that is, one of the components that makes up a particular pixel.
Definition at line 21 of file KoChannelInfo.h.
enum to define the type of the channel
| Enumerator | |
|---|---|
| COLOR | The channel represents a color. |
| ALPHA | The channel represents the opacity of a pixel. |
Definition at line 41 of file KoChannelInfo.h.
enum to define the value of the channel
Definition at line 48 of file KoChannelInfo.h.
|
inline |
Definition at line 61 of file KoChannelInfo.h.
|
inline |
| name | of the channel |
| npos | position of the channel in the pixel (in bytes) |
| displayPosition | the position of the channel in the user-visible order |
| channelType | type of the channel |
| channelValueType | type of the numerical data used by the channel |
| size | number of bytes (not bits) of the channel (if -1, it is deduced from the channelType) |
| color | a color to represent that channel (for instance in an histogram) |
| uiMinMax | the UI range |
Definition at line 72 of file KoChannelInfo.h.
References FLOAT16, FLOAT32, FLOAT64, INT16, INT8, KoChannelInfo::DoubleRange::isValid(), m_channelValueType, m_size, m_uiMinMax, KoChannelInfo::DoubleRange::maxVal, KoChannelInfo::DoubleRange::minVal, OTHER, UINT16, UINT32, and UINT8.
|
inline |
Definition at line 212 of file KoChannelInfo.h.
References m_channelType.
|
inline |
Definition at line 218 of file KoChannelInfo.h.
References m_channelValueType.
|
inline |
This is a color that can be used to represent this channel in histograms and so. By default this is black, so keep in mind that many channels might look the same
Definition at line 225 of file KoChannelInfo.h.
References m_color.
|
inlinestatic |
Definition at line 166 of file KoChannelInfo.h.
References displayPosition().
|
inline |
Definition at line 198 of file KoChannelInfo.h.
References m_displayPosition.
|
inlinestatic |
converts the display position to the pixel-order index in the channels vector.
Definition at line 156 of file KoChannelInfo.h.
References displayPosition().
|
inline |
Gets the minimum value that this channel should have. This is suitable for UI use.
Definition at line 248 of file KoChannelInfo.h.
References m_uiMinMax, and KoChannelInfo::DoubleRange::maxVal.
|
inline |
Gets the minimum value that this channel should have. This is suitable for UI use.
Definition at line 240 of file KoChannelInfo.h.
References m_uiMinMax, and KoChannelInfo::DoubleRange::minVal.
|
inline |
getUIUnitValue Gets the unit value for this channel. This is suitable for converting between representations.
Definition at line 257 of file KoChannelInfo.h.
References m_uiMinMax, KoChannelInfo::DoubleRange::maxVal, and KoChannelInfo::DoubleRange::minVal.
|
inline |
User-friendly name for this channel for presentation purposes in the gui
Definition at line 184 of file KoChannelInfo.h.
References m_name.
|
inline |
A channel is less than another channel if its pos is smaller.
Definition at line 232 of file KoChannelInfo.h.
References m_pos.
|
inline |
Definition at line 191 of file KoChannelInfo.h.
References m_pos.
|
inline |
Definition at line 205 of file KoChannelInfo.h.
References m_size.
|
private |
Definition at line 266 of file KoChannelInfo.h.
|
private |
Definition at line 267 of file KoChannelInfo.h.
|
private |
Definition at line 269 of file KoChannelInfo.h.
|
private |
Definition at line 265 of file KoChannelInfo.h.
|
private |
Definition at line 263 of file KoChannelInfo.h.
|
private |
Definition at line 264 of file KoChannelInfo.h.
|
private |
Definition at line 268 of file KoChannelInfo.h.
|
private |
Definition at line 270 of file KoChannelInfo.h.