krita
KisIteratorPixelTrait< _iTp > Class Template Reference
List of all members.Detailed Description
template<typename _iTp>
class KisIteratorPixelTrait< _iTp >
Definition at line 27 of file kis_iteratorpixeltrait.h.
Public Member Functions | |
KisIteratorPixelTrait (KisPaintDevice *ndevice, _iTp *underlyingIterator) | |
~KisIteratorPixelTrait () | |
KisIteratorPixelTrait (const KisIteratorPixelTrait &rhs) | |
KisIteratorPixelTrait & | operator= (const KisIteratorPixelTrait &rhs) |
Q_UINT8 | operator[] (int index) const |
bool | isSelected () const |
Q_UINT8 | selectedness () const |
Q_UINT8 * | selectionMask () const |
Protected Member Functions | |
void | advance (int n) |
void | retreat () |
void | setSelectionIterator (_iTp *si) |
Protected Attributes | |
KisPaintDevice * | m_device |
_iTp * | m_underlyingIterator |
_iTp * | m_selectionIterator |
Member Function Documentation
Q_UINT8 KisIteratorPixelTrait< _iTp >::operator[] | ( | int | index | ) | const [inline] |
Return one channel from the current kispixel.
Does not check whether channel index actually exists in this colorspace.
Definition at line 79 of file kis_iteratorpixeltrait.h.
bool KisIteratorPixelTrait< _iTp >::isSelected | ( | ) | const [inline] |
Returns if the pixel is selected or not.
This is much faster than first building a KisPixel
Definition at line 85 of file kis_iteratorpixeltrait.h.
Q_UINT8 KisIteratorPixelTrait< _iTp >::selectedness | ( | ) | const [inline] |
Returns the degree of selectedness of the pixel.
Definition at line 96 of file kis_iteratorpixeltrait.h.
Q_UINT8* KisIteratorPixelTrait< _iTp >::selectionMask | ( | ) | const [inline] |
Returns the selectionmask from the current point; this is guaranteed to have the same number of consecutive pixels that the iterator has at a given point.
It return a 0 if there is no selection.
Definition at line 110 of file kis_iteratorpixeltrait.h.
The documentation for this class was generated from the following file: