15 : m_selection(selection),
33 : m_selection(selection),
34 m_cutSelection(cutSelection),
40 m_cutSelection->pixelSelection()->makeCloneFromRough(m_selection->pixelSelection(), m_selection->selectedRect());
43 m_func(m_selection->pixelSelection());
87 transaction.
commit(undoAdapter);
92 transaction.
commit(undoAdapter);
void makeCloneFromRough(KisPaintDeviceSP src, const QRect &minimalRect)
const KoColorSpace * colorSpace() const
void clearSelection(KisSelectionSP selection)
static void copyAreaOptimized(const QPoint &dstPt, KisPaintDeviceSP src, KisPaintDeviceSP dst, const QRect &originalSrcRect)
void transformPaintDevice(KisPaintDeviceSP device, KisUndoAdapter *undoAdapter)
void setSelection(KisSelectionSP selection)
std::function< void(KisPaintDeviceSP)> Functor
KUndo2Command * createInitCommand()
KisSelectionSP m_cutSelection
KisSelectionSP m_selection
KisSelectionBasedProcessingHelper(KisSelectionSP selection, Functor func)
KUndo2Command * endAndTake()
void commit(KisUndoAdapter *undoAdapter)
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
KisPixelSelectionSP pixelSelection
QRect selectedExactRect() const
Slow, but exact way of determining the rectangle that encloses the selection.