|
Krita Source Code Documentation
|
#include <kis_random_sub_accessor.h>
Inheritance diagram for KisRandomSubAccessor:Public Member Functions | |
| KisRandomSubAccessor (KisPaintDeviceSP device) | |
| void | moveTo (const QPointF &p) |
| void | moveTo (qreal x, qreal y) |
| void | sampledOldRawData (quint8 *dst) |
| void | sampledRawData (quint8 *dst) |
| ~KisRandomSubAccessor () | |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Private Attributes | |
| QPointF | m_currentPoint |
| KisPaintDeviceSP | m_device |
| KisRandomConstAccessorSP | m_randomAccessor |
Additional Inherited Members | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Gives a random access to the sampled subpixels of an image. Use the moveTo function to select the pixel. And then rawData to access the value of a pixel.
Definition at line 23 of file kis_random_sub_accessor.h.
| KisRandomSubAccessor::KisRandomSubAccessor | ( | KisPaintDeviceSP | device | ) |
Definition at line 18 of file kis_random_sub_accessor.cpp.
| KisRandomSubAccessor::~KisRandomSubAccessor | ( | ) |
Definition at line 26 of file kis_random_sub_accessor.cpp.
|
inline |
Definition at line 41 of file kis_random_sub_accessor.h.
References p.
|
inline |
Definition at line 38 of file kis_random_sub_accessor.h.
| void KisRandomSubAccessor::sampledOldRawData | ( | quint8 * | dst | ) |
Copy the sampled old value to destination
Definition at line 31 of file kis_random_sub_accessor.cpp.
References KisPaintDevice::colorSpace(), m_currentPoint, m_device, m_randomAccessor, KoMixColorsOp::mixColors(), KoColorSpace::mixColorsOp, KisRandomConstAccessorNG::moveTo(), and KisBaseConstAccessor::oldRawData().
| void KisRandomSubAccessor::sampledRawData | ( | quint8 * | dst | ) |
Copy the sampled value to destination
Definition at line 70 of file kis_random_sub_accessor.cpp.
References KisPaintDevice::colorSpace(), m_currentPoint, m_device, m_randomAccessor, KoMixColorsOp::mixColors(), KoColorSpace::mixColorsOp, KisRandomConstAccessorNG::moveTo(), and KisBaseConstAccessor::rawDataConst().
|
private |
Definition at line 47 of file kis_random_sub_accessor.h.
|
private |
Definition at line 46 of file kis_random_sub_accessor.h.
|
private |
Definition at line 48 of file kis_random_sub_accessor.h.