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

Public Member Functions

StoreImplementationInterfaceclone () const override
 
KisSelectionSP getDeviceLazy (KisSelectionSP prototype)
 
 StoreImplementationForSelection ()
 
 StoreImplementationForSelection (const KisSelection &prototype)
 
- Public Member Functions inherited from StoreImplementation< KisSelectionSP >
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< KisSelectionSP >
QVector< KisSelectionSPm_cleanProjections
 
QVector< KisSelectionSPm_dirtyProjections
 
KisSelectionSP m_projection
 

Detailed Description

Definition at line 114 of file KisSafeNodeProjectionStore.cpp.

Constructor & Destructor Documentation

◆ StoreImplementationForSelection() [1/2]

StoreImplementationForSelection::StoreImplementationForSelection ( )
inline

Definition at line 116 of file KisSafeNodeProjectionStore.cpp.

116{}

◆ StoreImplementationForSelection() [2/2]

StoreImplementationForSelection::StoreImplementationForSelection ( const KisSelection & prototype)
inline

Member Function Documentation

◆ clone()

◆ getDeviceLazy()

KisSelectionSP StoreImplementationForSelection::getDeviceLazy ( KisSelectionSP prototype)
inline

Definition at line 127 of file KisSafeNodeProjectionStore.cpp.

127 {
128 if(!m_projection) {
129 if (!m_cleanProjections.isEmpty()) {
130 m_projection = m_cleanProjections.takeLast();
132 } else {
133 m_projection = new KisSelection(*prototype);
134 }
135
137 }
138 return m_projection;
139 }
void makeCloneFromRough(KisPaintDeviceSP src, const QRect &minimalRect)
void setProjectionDevice(bool value)
KisPixelSelectionSP pixelSelection
QRect selectedRect() const

References StoreImplementation< KisSelectionSP >::m_cleanProjections, StoreImplementation< KisSelectionSP >::m_projection, KisPaintDevice::makeCloneFromRough(), KisSelection::pixelSelection, KisSelection::selectedRect(), and KisPaintDevice::setProjectionDevice().


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