Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSafeNodeProjectionStore Class Reference

#include <KisSafeNodeProjectionStore.h>

+ Inheritance diagram for KisSafeNodeProjectionStore:

Public Member Functions

KisPaintDeviceSP getDeviceLazy (KisPaintDeviceSP prototype)
 
 KisSafeNodeProjectionStore ()
 
 KisSafeNodeProjectionStore (const KisSafeNodeProjectionStore &rhs)
 
- Public Member Functions inherited from KisSafeNodeProjectionStoreBase
 KisSafeNodeProjectionStoreBase (const KisSafeNodeProjectionStoreBase &rhs)
 
void releaseDevice ()
 
void setImage (KisImageWSP image)
 
 ~KisSafeNodeProjectionStoreBase ()
 
- Public Member Functions inherited from KisShared
bool deref ()
 
bool ref ()
 
int refCount ()
 
QAtomicInt * sharedWeakReference ()
 

Additional Inherited Members

- Signals inherited from KisSafeNodeProjectionStoreBase
void internalInitiateProjectionsCleanup ()
 
- Protected Member Functions inherited from KisSafeNodeProjectionStoreBase
 KisSafeNodeProjectionStoreBase (StoreImplementationInterface *storeImpl)
 
- Protected Member Functions inherited from KisShared
 KisShared ()
 
 ~KisShared ()
 
- Protected Attributes inherited from KisSafeNodeProjectionStoreBase
QScopedPointer< Privatem_d
 

Detailed Description

Definition at line 58 of file KisSafeNodeProjectionStore.h.

Constructor & Destructor Documentation

◆ KisSafeNodeProjectionStore() [1/2]

KisSafeNodeProjectionStore::KisSafeNodeProjectionStore ( )

◆ KisSafeNodeProjectionStore() [2/2]

KisSafeNodeProjectionStore::KisSafeNodeProjectionStore ( const KisSafeNodeProjectionStore & rhs)

Definition at line 237 of file KisSafeNodeProjectionStore.cpp.

239{
240}

Member Function Documentation

◆ getDeviceLazy()

KisPaintDeviceSP KisSafeNodeProjectionStore::getDeviceLazy ( KisPaintDeviceSP prototype)

Safely fetch the current node projection device. If projection already exists, the existing device is returned. Otherwise a new device is created as a full copy of prototype.

Definition at line 242 of file KisSafeNodeProjectionStore.cpp.

243{
244 QMutexLocker locker(&m_d->lock);
245 StoreImplementationForDevice *store = dynamic_cast<StoreImplementationForDevice*>(m_d->store.data());
246 KIS_ASSERT(store);
247
248 return store->getDeviceLazy(prototype);
249}
#define KIS_ASSERT(cond)
Definition kis_assert.h:33
KisPaintDeviceSP getDeviceLazy(KisPaintDeviceSP prototype)

References StoreImplementationForDevice::getDeviceLazy(), KIS_ASSERT, and KisSafeNodeProjectionStoreBase::m_d.


The documentation for this class was generated from the following files: