Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPaintDeviceCache::RegionCache Struct Reference
+ Inheritance diagram for KisPaintDeviceCache::RegionCache:

Public Member Functions

KisRegion calculateNewValue () const override
 
 RegionCache (KisPaintDevice *paintDevice)
 
- Public Member Functions inherited from KisLockFreeCacheWithModeConsistency< KisRegion, bool >
KisRegion getValue (bool mode) const
 
void invalidate ()
 
bool tryGetValue (KisRegion &result, bool mode) const
 
virtual ~KisLockFreeCacheWithModeConsistency ()
 

Private Attributes

KisPaintDevicem_paintDevice
 

Additional Inherited Members

Detailed Description

Definition at line 138 of file kis_paint_device_cache.h.

Constructor & Destructor Documentation

◆ RegionCache()

KisPaintDeviceCache::RegionCache::RegionCache ( KisPaintDevice * paintDevice)
inline

Definition at line 139 of file kis_paint_device_cache.h.

139: m_paintDevice(paintDevice) {}

Member Function Documentation

◆ calculateNewValue()

KisRegion KisPaintDeviceCache::RegionCache::calculateNewValue ( ) const
inlineoverridevirtual

Calculate the value. Used by the cache internally. Reimplemented by the user.

Implements KisLockFreeCacheWithModeConsistency< KisRegion, bool >.

Definition at line 141 of file kis_paint_device_cache.h.

141 {
142 return m_paintDevice->dataManager()->region();
143 }
KisRegion region() const
KisDataManagerSP dataManager() const

References KisPaintDevice::dataManager(), m_paintDevice, and KisDataManager::region().

Member Data Documentation

◆ m_paintDevice

KisPaintDevice* KisPaintDeviceCache::RegionCache::m_paintDevice
private

Definition at line 145 of file kis_paint_device_cache.h.


The documentation for this struct was generated from the following file: