7#ifndef __KIS_PAINT_DEVICE_CACHE_H
8#define __KIS_PAINT_DEVICE_CACHE_H
11#include <QReadWriteLock>
13#include <QWriteLocker>
80 if (h == 0 || w == 0) {
99 if (thumbnail.isNull()) {
virtual bool wrapAroundMode() const =0
T getValue(Mode mode) const
bool tryGetValue(T &result, Mode mode) const
int sequenceNumber() const
QMap< int, QMap< int, QMap< qreal, QImage > > > m_thumbnails
NonDefaultPixelCache m_nonDefaultPixelAreaCache
RegionCache m_regionCache
QRect exactBoundsAmortized()
KisPaintDevice * m_paintDevice
QReadWriteLock m_thumbnailsLock
QImage createThumbnail(qint32 w, qint32 h, qreal oversample, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags)
KisPaintDeviceCache(KisPaintDevice *paintDevice)
QRect nonDefaultPixelArea()
ExactBoundsCache m_exactBoundsCache
KisPaintDeviceCache(const KisPaintDeviceCache &rhs)
QAtomicInt m_sequenceNumber
QImage createThumbnail(qint32 maxw, qint32 maxh, QRect rect, qreal oversample=1, KoColorConversionTransformation::Intent renderingIntent=KoColorConversionTransformation::internalRenderingIntent(), KoColorConversionTransformation::ConversionFlags conversionFlags=KoColorConversionTransformation::internalConversionFlags())
QRect exactBounds() const
KisDataManagerSP dataManager() const
KisDefaultBoundsBaseSP defaultBounds() const
QRect calculateExactBounds(bool nonDefaultOnly) const
QRect calculateNewValue() const override
KisPaintDevice * m_paintDevice
ExactBoundsCache(KisPaintDevice *paintDevice)
NonDefaultPixelCache(KisPaintDevice *paintDevice)
KisPaintDevice * m_paintDevice
QRect calculateNewValue() const override
KisPaintDevice * m_paintDevice
RegionCache(KisPaintDevice *paintDevice)
KisRegion calculateNewValue() const override