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

Public Member Functions

StoreImplementationInterfaceclone () const override
 
KisPaintDeviceSP getDeviceLazy (KisPaintDeviceSP prototype)
 
 StoreImplementationForDevice ()
 
 StoreImplementationForDevice (const KisPaintDevice &prototype)
 
- Public Member Functions inherited from StoreImplementation< KisPaintDeviceSP >
virtual void discardCaches () override
 
virtual void recycleProjectionsInSafety () override
 
bool releaseDevice () override
 
- Public Member Functions inherited from StoreImplementationInterface
virtual ~StoreImplementationInterface ()
 

Additional Inherited Members

- Protected Attributes inherited from StoreImplementation< KisPaintDeviceSP >
QVector< KisPaintDeviceSPm_cleanProjections
 
QVector< KisPaintDeviceSPm_dirtyProjections
 
KisPaintDeviceSP m_projection
 

Detailed Description

Definition at line 79 of file KisSafeNodeProjectionStore.cpp.

Constructor & Destructor Documentation

◆ StoreImplementationForDevice() [1/2]

StoreImplementationForDevice::StoreImplementationForDevice ( )
inline

Definition at line 81 of file KisSafeNodeProjectionStore.cpp.

81{}

◆ StoreImplementationForDevice() [2/2]

StoreImplementationForDevice::StoreImplementationForDevice ( const KisPaintDevice & prototype)
inline

Member Function Documentation

◆ clone()

◆ getDeviceLazy()

KisPaintDeviceSP StoreImplementationForDevice::getDeviceLazy ( KisPaintDeviceSP prototype)
inline

Definition at line 92 of file KisSafeNodeProjectionStore.cpp.

92 {
93 if(!m_projection ||
94 *m_projection->colorSpace() != *prototype->colorSpace()) {
95
96 if (!m_cleanProjections.isEmpty()) {
98 m_projection->makeCloneFromRough(prototype, prototype->extent());
99 } else {
100 m_projection = new KisPaintDevice(*prototype);
101 }
102
104 }
105 return m_projection;
106 }
void makeCloneFromRough(KisPaintDeviceSP src, const QRect &minimalRect)
QRect extent() const
void setProjectionDevice(bool value)
const KoColorSpace * colorSpace() const

References KisPaintDevice::colorSpace(), KisPaintDevice::extent(), StoreImplementation< KisPaintDeviceSP >::m_cleanProjections, StoreImplementation< KisPaintDeviceSP >::m_projection, KisPaintDevice::makeCloneFromRough(), and KisPaintDevice::setProjectionDevice().


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