|
Krita Source Code Documentation
|
#include <kis_convolution_filter.h>
Inheritance diagram for KisConvolutionFilter:Public Member Functions | |
| QRect | changedRect (const QRect &rect, const KisFilterConfigurationSP _config, int lod) const override |
| KisConvolutionFilter (const KoID &id, const KoID &category, const QString &entry) | |
| QRect | neededRect (const QRect &rect, const KisFilterConfigurationSP _config, int lod) const override |
| void | processImpl (KisPaintDeviceSP device, const QRect &applyRect, const KisFilterConfigurationSP config, KoUpdater *progressUpdater) const override |
Public Member Functions inherited from KisFilter | |
| virtual bool | configurationAllowedForMask (KisFilterConfigurationSP config) const |
| virtual void | fixLoadedFilterConfigurationForMasks (KisFilterConfigurationSP config) const |
| KisFilter (const KoID &id, const KoID &category, const QString &entry) | |
| virtual bool | needsTransparentPixels (const KisFilterConfigurationSP config, const KoColorSpace *cs) const |
| void | process (const KisPaintDeviceSP src, KisPaintDeviceSP dst, KisSelectionSP selection, const QRect &applyRect, const KisFilterConfigurationSP config, KoUpdater *progressUpdater=0) const |
| void | process (KisPaintDeviceSP device, const QRect &applyRect, const KisFilterConfigurationSP config, KoUpdater *progressUpdater=0) const |
| virtual bool | supportsLevelOfDetail (const KisFilterConfigurationSP config, int lod) const |
| ~KisFilter () override | |
Public Member Functions inherited from KisBaseProcessor | |
| KisBookmarkedConfigurationManager * | bookmarkManager () |
| const KisBookmarkedConfigurationManager * | bookmarkManager () const |
| ColorSpaceIndependence | colorSpaceIndependence () const |
| virtual KisConfigWidget * | createConfigurationWidget (QWidget *parent, const KisPaintDeviceSP dev, bool useForMasks) const |
| virtual KisFilterConfigurationSP | defaultConfiguration (KisResourcesInterfaceSP resourcesInterface) const |
| virtual KisFilterConfigurationSP | factoryConfiguration (KisResourcesInterfaceSP resourcesInterface) const |
| QString | id () const |
| KisBaseProcessor (const KoID &id, const KoID &category, const QString &entry) | |
| KoID | menuCategory () const |
| QString | menuEntry () const |
| QString | name () const |
| Private () | |
| QKeySequence | shortcut () const |
| bool | showConfigurationWidget () |
| If true, the filter wants to show a configuration widget. | |
| bool | supportsAdjustmentLayers () const |
| This filter can be used in adjustment layers. | |
| bool | supportsPainting () const |
| bool | supportsThreading () const |
| virtual | ~KisBaseProcessor () |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Protected Member Functions | |
| void | setIgnoreAlpha (bool v) |
Protected Member Functions inherited from KisFilter | |
| QString | configEntryGroup () const |
| void | setSupportsLevelOfDetail (bool value) |
Protected Member Functions inherited from KisBaseProcessor | |
| void | init (const QString &configEntryGroup) |
| void | setColorSpaceIndependence (ColorSpaceIndependence v) |
| void | setShortcut (const QKeySequence &shortcut) |
| void | setShowConfigurationWidget (bool v) |
| void | setSupportsAdjustmentLayers (bool v) |
| void | setSupportsPainting (bool v) |
| void | setSupportsThreading (bool v) |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Protected Attributes | |
| bool | m_ignoreAlpha {false} |
| KisConvolutionKernelSP | m_matrix |
Additional Inherited Members | |
Public Attributes inherited from KisBaseProcessor | |
| KisBookmarkedConfigurationManager * | bookmarkManager |
| KoID | category |
| ColorSpaceIndependence | colorSpaceIndependence |
| QString | entry |
| KoID | id |
| QKeySequence | shortcut |
| bool | showConfigurationWidget |
| bool | supportsAdjustmentLayers |
| bool | supportsPainting |
| bool | supportsThreading |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Definition at line 17 of file kis_convolution_filter.h.
| KisConvolutionFilter::KisConvolutionFilter | ( | const KoID & | id, |
| const KoID & | category, | ||
| const QString & | entry ) |
Definition at line 24 of file kis_convolution_filter.cpp.
References FULLY_INDEPENDENT, KisBaseProcessor::setColorSpaceIndependence(), and KisFilter::setSupportsLevelOfDetail().
|
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.
Reimplemented from KisFilter.
Definition at line 69 of file kis_convolution_filter.cpp.
References neededRect().
|
overridevirtual |
Some filters need pixels outside the current processing rect to compute the new value (for instance, convolution filters)
Reimplemented from KisFilter.
Definition at line 58 of file kis_convolution_filter.cpp.
References KisConvolutionKernel::height(), kisGrowRect(), m_matrix, KisLodTransformScalar::scale(), and KisConvolutionKernel::width().
|
overridevirtual |
Override this function with the implementation of your filter.
This is a low level function that expects all the conditions for the
| device | be met. Use usual process() methods instead. |
| device | the paint device to filter |
| applyRect | the rectangle where the filter is applied |
| config | the parameters of the filter |
| progressUpdater | to pass on the progress the filter is making |
Implements KisFilter.
Definition at line 32 of file kis_convolution_filter.cpp.
References KisConvolutionPainter::applyMatrix(), BORDER_REPEAT, KoColorSpace::channelCount(), KisPaintDevice::colorSpace(), m_matrix, KisPainter::setChannelFlags(), and KisPainter::setProgress().
|
protected |
|
protected |
Definition at line 36 of file kis_convolution_filter.h.
|
protected |
Definition at line 35 of file kis_convolution_filter.h.