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

#include <KisSafeNodeProjectionStore.h>

+ Inheritance diagram for KisSafeSelectionNodeProjectionStore:

Public Member Functions

KisSelectionSP getDeviceLazy (KisSelectionSP prototype)
 
 KisSafeSelectionNodeProjectionStore ()
 
 KisSafeSelectionNodeProjectionStore (const KisSafeSelectionNodeProjectionStore &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 72 of file KisSafeNodeProjectionStore.h.

Constructor & Destructor Documentation

◆ KisSafeSelectionNodeProjectionStore() [1/2]

KisSafeSelectionNodeProjectionStore::KisSafeSelectionNodeProjectionStore ( )

◆ KisSafeSelectionNodeProjectionStore() [2/2]

KisSafeSelectionNodeProjectionStore::KisSafeSelectionNodeProjectionStore ( const KisSafeSelectionNodeProjectionStore & rhs)

Definition at line 261 of file KisSafeNodeProjectionStore.cpp.

263{
264}

Member Function Documentation

◆ getDeviceLazy()

KisSelectionSP KisSafeSelectionNodeProjectionStore::getDeviceLazy ( KisSelectionSP 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 266 of file KisSafeNodeProjectionStore.cpp.

267{
268 QMutexLocker locker(&m_d->lock);
269 StoreImplementationForSelection *store = dynamic_cast<StoreImplementationForSelection*>(m_d->store.data());
270 KIS_ASSERT(store);
271
272 return store->getDeviceLazy(prototype);
273}
#define KIS_ASSERT(cond)
Definition kis_assert.h:33
KisSelectionSP getDeviceLazy(KisSelectionSP prototype)

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


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