|
Krita Source Code Documentation
|
#include <multigridpatterngenerator.h>
Inheritance diagram for KisMultigridPatternGenerator:Public Types | |
| enum | Connector { None , Acute , Obtuse , Cross , CenterDot , CornerDot } |
Public Member Functions | |
| virtual bool | allowsSplittingIntoPatches () const override |
| KisConfigWidget * | createConfigurationWidget (QWidget *parent, const KisPaintDeviceSP dev, bool useForMasks) const override |
| KisFilterConfigurationSP | defaultConfiguration (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 |
| KisMultigridPatternGenerator () | |
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 |
| 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 () |
Static Public Member Functions | |
| static KoID | id () |
Private Member Functions | |
| QList< KisMultiGridRhomb > | generateRhombs (int lines, int divisions, qreal offset) const |
| QList< int > | getIndicesFromPoint (QPointF point, QList< qreal > angles, qreal offset) const |
| QPointF | getVertice (QList< int > indices, QList< qreal > angles) const |
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 45 of file multigridpatterngenerator.h.
| KisMultigridPatternGenerator::KisMultigridPatternGenerator | ( | ) |
Definition at line 51 of file multigridpatterngenerator.cpp.
References FULLY_INDEPENDENT, KisBaseProcessor::setColorSpaceIndependence(), and KisBaseProcessor::setSupportsPainting().
|
inlineoverridevirtual |
Reports whether this generator can run properly while tiling the image into patches (as opposed to over the whole image in one single pass).
Generators that are known to not work properly should override this function and return false.
Reimplemented from KisGenerator.
Definition at line 76 of file multigridpatterngenerator.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 92 of file multigridpatterngenerator.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 57 of file multigridpatterngenerator.cpp.
References KisBaseProcessor::factoryConfiguration(), KoStopGradient::fromQGradient(), None, and v.
|
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 |
Implements KisGenerator.
Definition at line 98 of file multigridpatterngenerator.cpp.
References Acute, bounds, CenterDot, CornerDot, Cross, KisPainter::end(), KisPainter::fill(), KisPainter::fillPainterPath(), KisPainter::FillStyleBackgroundColor, KoStopGradient::fromQGradient(), KoStopGradient::fromXML(), generateRhombs(), KisSharedPtr< T >::isNull(), length(), KisMultiGridRhomb::line1, KisMultiGridRhomb::line2, M_PI, None, Obtuse, p, KisProcessingInformation::paintDevice(), KisMultiGridRhomb::parallel1, KisMultiGridRhomb::parallel2, KisConstProcessingInformation::selection, KisPainter::setBackgroundColor(), KisPainter::setChannelFlags(), KisPainter::setFillStyle(), KoColor::setOpacity(), KisPainter::setOpacityToUnit(), KisPainter::setSelection(), KisPainter::setStrokeStyle(), KisMultiGridRhomb::shape, KisProgressUpdateHelper::step(), KoStopGradient::stops(), and KisPainter::StrokeStyleBrush.
|
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.
|
private |
Definition at line 316 of file multigridpatterngenerator.cpp.
References getIndicesFromPoint(), getVertice(), KisMultiGridRhomb::line1, KisMultiGridRhomb::line2, M_PI, p1, p2, p3, KisMultiGridRhomb::parallel1, KisMultiGridRhomb::parallel2, and KisMultiGridRhomb::shape.
|
private |
Definition at line 401 of file multigridpatterngenerator.cpp.
References p.
|
private |
Projects the 5d vertice to a point.
Definition at line 415 of file multigridpatterngenerator.cpp.
|
inlinestatic |
Definition at line 68 of file multigridpatterngenerator.h.