22 const KoColor ®ionSelectionColor,
23 bool regionSelectionInvert,
24 bool regionSelectionIncludeContourRegions,
25 bool regionSelectionIncludeSurroundingRegions,
27 int fillOpacitySpread,
31 bool stopGrowingAtDarkestPixel,
33 bool useSelectionAsBoundary,
37 bool useCustomBlendingOptions,
39 const QString &customCompositeOp,
42 : m_referencePaintDevice(referencePaintDevice)
43 , m_enclosingMask(enclosingMask)
44 , m_selection(selection)
45 , m_resources(resources)
46 , m_regionSelectionMethod(regionSelectionMethod)
47 , m_regionSelectionColor(regionSelectionColor)
48 , m_regionSelectionInvert(regionSelectionInvert)
49 , m_regionSelectionIncludeContourRegions(regionSelectionIncludeContourRegions)
50 , m_regionSelectionIncludeSurroundingRegions(regionSelectionIncludeSurroundingRegions)
51 , m_fillThreshold(fillThreshold)
52 , m_fillOpacitySpread(fillOpacitySpread)
53 , m_closeGap(closeGap)
54 , m_useSelectionAsBoundary(useSelectionAsBoundary)
55 , m_antiAlias(antiAlias)
57 , m_stopGrowingAtDarkestPixel(stopGrowingAtDarkestPixel)
59 , m_usePattern(usePattern)
60 , m_unmerged(unmerged)
61 , m_useBgColor(useBgColor)
62 , m_useCustomBlendingOptions(useCustomBlendingOptions)
63 , m_customOpacity(customOpacity)
64 , m_customCompositeOp(customCompositeOp)
65 , m_outDirtyRect(outDirtyRect)
71 Q_UNUSED(undoAdapter);
129 Q_FOREACH(
const QRect &r, dirtyRects) {
138 Q_UNUSED(undoAdapter);
void expand(ExpansionStrategy &expansionStrategy, KoUpdater *progressUpdater)
void setRegionSelectionIncludeContourRegions(bool include)
void setRegionSelectionIncludeSurroundingRegions(bool include)
void setRegionSelectionColor(const KoColor &color)
void encloseAndFillPattern(KisPixelSelectionSP enclosingMask, KisPaintDeviceSP referenceDevice, QTransform patternTransform=QTransform())
void encloseAndFillColor(KisPixelSelectionSP enclosingMask, KisPaintDeviceSP referenceDevice)
void setRegionSelectionMethod(RegionSelectionMethod regionSelectionMethod)
void setRegionSelectionInvert(bool invert)
KisPaintDeviceSP m_referencePaintDevice
void fillPaintDevice(KisPaintDeviceSP device, KisUndoAdapter *undoAdapter, ProgressHelper &helper)
bool m_useSelectionAsBoundary
void visitColorizeMask(KisColorizeMask *mask, KisUndoAdapter *undoAdapter) override
bool m_regionSelectionInvert
KisPixelSelectionSP m_enclosingMask
void visitNodeWithPaintDevice(KisNode *node, KisUndoAdapter *undoAdapter) override
KisSelectionSP m_selection
KoColor m_regionSelectionColor
bool m_useCustomBlendingOptions
QSharedPointer< QRect > m_outDirtyRect
KisEncloseAndFillProcessingVisitor(KisPaintDeviceSP referencePaintDevice, KisPixelSelectionSP enclosingMask, KisSelectionSP selection, KisResourcesSnapshotSP resources, KisEncloseAndFillPainter::RegionSelectionMethod regionSelectionMethod, const KoColor ®ionSelectionColor, bool regionSelectionInvert, bool regionSelectionIncludeContourRegions, bool regionSelectionIncludeSurroundingRegions, int fillThreshold, int fillOpacitySpread, int closeGap, bool antiAlias, int expand, bool stopGrowingAtDarkestPixel, int feather, bool useSelectionAsBoundary, bool usePattern, bool unmerged, bool useBgColor, bool useCustomBlendingOptions, qreal customOpacity, const QString &customCompositeOp, QSharedPointer< QRect > outDirtyRect)
KisResourcesSnapshotSP m_resources
bool m_regionSelectionIncludeSurroundingRegions
bool m_regionSelectionIncludeContourRegions
bool m_stopGrowingAtDarkestPixel
void visitExternalLayer(KisExternalLayer *layer, KisUndoAdapter *undoAdapter) override
KisEncloseAndFillPainter::RegionSelectionMethod m_regionSelectionMethod
QString m_customCompositeOp
void setSizemod(int sizemod)
void setFillThreshold(int threshold)
void setFeather(int feather)
void setCloseGap(int gap)
void setUseSelectionAsBoundary(bool useSelectionAsBoundary)
void setAntiAlias(bool antiAlias)
void setStopGrowingAtDarkestPixel(bool stopGrowingAtDarkestPixel)
void setOpacitySpread(int opacitySpread)
QRect bounds() const override
void endTransaction(KisUndoAdapter *undoAdapter)
Finish the undoable paint operation.
void beginTransaction(const KUndo2MagicString &transactionName=KUndo2MagicString(), int timedID=-1)
Begin an undoable paint operation.
void setOpacityF(qreal opacity)
void setProgress(KoUpdater *progressUpdater)
void setPaintColor(const KoColor &color)
QVector< QRect > takeDirtyRegion()
void setCompositeOpId(const KoCompositeOp *op)
KoUpdater * updater() const
void setupPainter(KisPainter *painter)
QTransform fillTransform() const
virtual KisPaintDeviceSP paintDevice() const =0
QRect selectedRect() const
bool hasNonEmptyPixelSelection() const