|
Krita Source Code Documentation
|
#include <patterngenerator.h>
Inheritance diagram for PatternGenerator:Public Member Functions | |
| bool | allowsSplittingIntoPatches () const override |
| KisConfigWidget * | createConfigurationWidget (QWidget *parent, const KisPaintDeviceSP dev, bool useForMasks) const override |
| KisFilterConfigurationSP | defaultConfiguration (KisResourcesInterfaceSP resourcesInterface) const override |
| KisFilterConfigurationSP | factoryConfiguration (KisResourcesInterfaceSP resourcesInterface) const override |
| virtual void | generate (KisProcessingInformation dst, const QSize &size, const KisFilterConfigurationSP config) const |
| void | generate (KisProcessingInformation dst, const QSize &size, const KisFilterConfigurationSP config, KoUpdater *progressUpdater) const override |
| virtual void | generate (KisProcessingInformation dst, const QSize &size, const KisFilterConfigurationSP config, KoUpdater *progressUpdater) const=0 |
| PatternGenerator () | |
Public Member Functions inherited from KisGenerator | |
| virtual QRect | generatedRect (QRect _imageArea, const KisFilterConfigurationSP=0) const |
| KisGenerator (const KoID &id, const KoID &category, const QString &entry) | |
| ~KisGenerator () override | |
Public Member Functions inherited from KisBaseProcessor | |
| KisBookmarkedConfigurationManager * | bookmarkManager () |
| const KisBookmarkedConfigurationManager * | bookmarkManager () const |
| ColorSpaceIndependence | colorSpaceIndependence () 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 () |
Static Public Member Functions | |
| static KoID | id () |
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 |
Protected Member Functions inherited from KisGenerator | |
| QString | configEntryGroup () const |
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 () | |
Definition at line 26 of file patterngenerator.h.
| PatternGenerator::PatternGenerator | ( | ) |
Definition at line 197 of file patterngenerator.cpp.
References FULLY_INDEPENDENT, KisBaseProcessor::setColorSpaceIndependence(), and KisBaseProcessor::setSupportsPainting().
|
inlineoverridevirtual |
This generator pastes a single instance of pattern over the whole layer.
Reimplemented from KisGenerator.
Definition at line 51 of file patterngenerator.h.
|
overridevirtual |
Create the configuration widget for this processor.
| parent | the Qt owner widget of this widget |
| dev | the paintdevice this filter will act on |
| useForMasks | shown if the filer is going to be used in a mask. Some filters may provide limited options when applied as a mask (e.g. Gaussian Blur) |
Reimplemented from KisBaseProcessor.
Definition at line 245 of file patterngenerator.cpp.
|
overridevirtual |
Return the configuration set as the default by the user or the default configuration from the filter writer as returned by factoryConfiguration.
This configuration is used by default for the configuration widget and given to the process function if there is no configuration widget.
Reimplemented from KisBaseProcessor.
Definition at line 209 of file patterngenerator.cpp.
References factoryConfiguration(), ResourceType::Patterns, and source().
|
overridevirtual |
Reimplemented from KisBaseProcessor.
Definition at line 204 of file patterngenerator.cpp.
|
virtual |
Provided for convenience when no progress reporting is needed.
Reimplemented from KisGenerator.
Definition at line 59 of file kis_generator.cpp.
|
overridevirtual |
Override this function with the implementation of your generator.
| dst | the destination paint device |
| size | the size of the area that is to be filled |
| config | the parameters of the filter |
| progressUpdater | the progress updater |
HACK ALERT: using "no-compose" version of fillRect discards all the opacity, selection, and channel flags options. Though it doesn't seem that we have a any GUI in Krita that actually passes a selection to the generator itself. Fill layers apply their settings on a later stage of the compositing pipeline.
Implements KisGenerator.
Definition at line 251 of file patterngenerator.cpp.
References KisFilterConfiguration::channelFlags, KisSharedPtr< T >::data(), KisPainter::end(), KisFillPainter::fillRectNoCompose(), KisPainter::FillStylePattern, KisSharedPtr< T >::isNull(), KIS_SAFE_ASSERT_RECOVER_RETURN, KisProcessingInformation::paintDevice(), PatternGeneratorConfiguration::pattern(), KisConstProcessingInformation::selection, KisPainter::setChannelFlags(), KisPainter::setFillStyle(), KisFillPainter::setHeight(), KisPainter::setOpacityToUnit(), KisPainter::setPattern(), KisPainter::setProgress(), KisPainter::setSelection(), KisFillPainter::setWidth(), KisConstProcessingInformation::topLeft, and PatternGeneratorConfiguration::transform().
|
virtual |
Override this function with the implementation of your generator.
| dst | the destination paint device |
| size | the size of the area that is to be filled |
| config | the parameters of the filter |
| progressUpdater | the progress updater |
Implements KisGenerator.
|
inlinestatic |
Definition at line 40 of file patterngenerator.h.