|
Krita Source Code Documentation
|
#include <kis_ls_stroke_filter.h>
Inheritance diagram for KisLsStrokeFilter:Public Member Functions | |
| QRect | changedRect (const QRect &rect, KisPSDLayerStyleSP style, KisLayerStyleFilterEnvironment *env) const override |
| KisLayerStyleFilter * | clone () const override |
| KisLsStrokeFilter () | |
| QRect | neededRect (const QRect &rect, KisPSDLayerStyleSP style, KisLayerStyleFilterEnvironment *env) const override |
| void | processDirectly (KisPaintDeviceSP src, KisMultipleProjection *dst, KisLayerStyleKnockoutBlower *blower, const QRect &applyRect, KisPSDLayerStyleSP style, KisLayerStyleFilterEnvironment *env) const override |
| KritaUtils::ThresholdMode | sourcePlaneOpacityThresholdRequirement (KisPSDLayerStyleSP style) const |
Public Member Functions inherited from KisLayerStyleFilter | |
| QString | id () const |
| KisLayerStyleFilter (const KoID &id) | |
| virtual | ~KisLayerStyleFilter () |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Private Member Functions | |
| void | applyStroke (KisPaintDeviceSP srcDevice, KisMultipleProjection *dst, KisLayerStyleKnockoutBlower *blower, const QRect &applyRect, const psd_layer_effects_stroke *config, KisResourcesInterfaceSP resourcesInterface, KisLayerStyleFilterEnvironment *env) const |
| KisLsStrokeFilter (const KisLsStrokeFilter &rhs) | |
Additional Inherited Members | |
Public Attributes inherited from KisLayerStyleFilter | |
| KoID | id |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Protected Member Functions inherited from KisLayerStyleFilter | |
| KisLayerStyleFilter (const KisLayerStyleFilter &rhs) | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Definition at line 18 of file kis_ls_stroke_filter.h.
| KisLsStrokeFilter::KisLsStrokeFilter | ( | ) |
Definition at line 66 of file kis_ls_stroke_filter.cpp.
|
private |
Definition at line 71 of file kis_ls_stroke_filter.cpp.
|
private |
Definition at line 81 of file kis_ls_stroke_filter.cpp.
References KisGaussianKernel::applyDilate(), KisGaussianKernel::applyErodeU8(), KisPainter::bitBlt(), psd_layer_effects_shadow_base::blendMode(), KisLayerStyleFilterEnvironment::cachedSelection(), COMPOSITE_COPY, COMPOSITE_ERASE, KisMultipleProjection::defaultProjectionId(), KisPainter::end(), KisLsUtils::fillOverlayDevice(), KisMultipleProjection::getProjection(), kisGrowRect(), KisLayerStyleKnockoutBlower::knockoutSelectionLazy(), KisPaintDevice::makeCloneFromRough(), psd_layer_effects_shadow_base::opacity(), KisSelection::pixelSelection, psd_layer_effects_stroke::position(), psd_stroke_center, psd_stroke_inside, psd_stroke_outside, s1, s2, KisLsUtils::selectionFromAlphaChannel(), KisPainter::setCompositeOpId(), and psd_layer_effects_shadow_base::size().
|
overridevirtual |
Similar to neededRect: some filters will alter a lot of pixels that are near to each other at the same time. So when you changed a single rectangle in a device, the actual rectangle that will feel the influence of this change might be bigger. Use this function to determine that rect.
Implements KisLayerStyleFilter.
Definition at line 160 of file kis_ls_stroke_filter.cpp.
References neededRect().
|
overridevirtual |
Implements KisLayerStyleFilter.
Definition at line 76 of file kis_ls_stroke_filter.cpp.
References KisLsStrokeFilter().
|
overridevirtual |
Some filters need pixels outside the current processing rect to compute the new value (for instance, convolution filters)
Implements KisLayerStyleFilter.
Definition at line 151 of file kis_ls_stroke_filter.cpp.
References KisLayerStyleFilterEnvironment::currentLevelOfDetail(), psd_layer_effects_shadow_base::effectEnabled(), and kisGrowRect().
|
overridevirtual |
Implements KisLayerStyleFilter.
Definition at line 134 of file kis_ls_stroke_filter.cpp.
References applyStroke(), KisLsUtils::checkEffectEnabled(), KisLayerStyleFilterEnvironment::currentLevelOfDetail(), and KIS_ASSERT_RECOVER_RETURN.
| KritaUtils::ThresholdMode KisLsStrokeFilter::sourcePlaneOpacityThresholdRequirement | ( | KisPSDLayerStyleSP | style | ) | const |
Definition at line 165 of file kis_ls_stroke_filter.cpp.
References psd_layer_effects_shadow_base::effectEnabled(), psd_layer_effects_stroke::position(), psd_stroke_center, psd_stroke_inside, KritaUtils::ThresholdCeil, KritaUtils::ThresholdFloor, and KritaUtils::ThresholdNone.