|
Krita Source Code Documentation
|
#include <kis_brush_based_paintop_settings.h>
Inheritance diagram for KisBrushBasedPaintOpSettings:Protected Member Functions | |
| KisOptimizedBrushOutline | brushOutlineImpl (const KisPaintInformation &info, const OutlineMode &mode, qreal alignForZoom, qreal additionalScale) |
| void | onPropertyChanged () override |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Protected Attributes | |
| KisBrushSP | m_savedBrush |
| QList< KisUniformPaintOpPropertyWSP > | m_uniformProperties |
Definition at line 18 of file kis_brush_based_paintop_settings.h.
| KisBrushBasedPaintOpSettings::KisBrushBasedPaintOpSettings | ( | KisResourcesInterfaceSP | resourcesInterface | ) |
Definition at line 58 of file kis_brush_based_paintop_settings.cpp.
|
inlineoverride |
Definition at line 22 of file kis_brush_based_paintop_settings.h.
| bool KisBrushBasedPaintOpSettings::autoSpacingActive | ( | ) |
Definition at line 166 of file kis_brush_based_paintop_settings.cpp.
References brush(), and KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE.
| qreal KisBrushBasedPaintOpSettings::autoSpacingCoeff | ( | ) |
Definition at line 172 of file kis_brush_based_paintop_settings.cpp.
References brush(), and KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE.
| KisBrushSP KisBrushBasedPaintOpSettings::brush | ( | ) | const |
Definition at line 92 of file kis_brush_based_paintop_settings.cpp.
References brush(), and m_savedBrush.
|
virtual |
Returns the brush outline in pixel coordinates. Tool is responsible for conversion into view coordinates. Outline mode has to be passed to the paintop which builds the outline as some paintops have to paint outline always like clone paintop indicating the duplicate position
Reimplemented from KisPaintOpSettings.
Reimplemented in KisDuplicateOpSettings, KisDuplicateOpSettings, KisHairyPaintOpSettings, KisHairyPaintOpSettings, and KisSketchPaintOpSettings.
Definition at line 189 of file kis_paintop_settings.cpp.
|
overridevirtual |
Returns the brush outline in pixel coordinates. Tool is responsible for conversion into view coordinates. Outline mode has to be passed to the paintop which builds the outline as some paintops have to paint outline always like clone paintop indicating the duplicate position
Reimplemented from KisPaintOpSettings.
Reimplemented in KisDuplicateOpSettings, KisDuplicateOpSettings, KisHairyPaintOpSettings, KisHairyPaintOpSettings, and KisSketchPaintOpSettings.
Definition at line 140 of file kis_brush_based_paintop_settings.cpp.
References brushOutlineImpl().
|
protected |
Definition at line 105 of file kis_brush_based_paintop_settings.cpp.
References KisOptimizedBrushOutline::boundingRect(), brush(), KisCurrentOutlineFetcher::fetchOutline(), KisPaintOpSettings::OutlineMode::forceCircle, KisPaintOpSettings::OutlineMode::isVisible, KisPaintOpSettings::makeTiltIndicator(), KisOutlineGenerationPolicy< KisPaintOpSettings >::outlineFetcher(), qFuzzyCompare(), and KisPaintOpSettings::OutlineMode::showTiltDecoration.
|
overridevirtual |
Clone the current settings object. Override this if your settings instance doesn't store everything as properties.
We don't copy m_savedBrush directly because it can also depend on "canvas resources", which should be baked into the preset on cloning. This dependency is tracked by KisPresetShadowUpdater and reset when needed via resetting cache interface.
Reimplemented from KisPaintOpSettings.
Reimplemented in KisDuplicateOpSettings.
Definition at line 75 of file kis_brush_based_paintop_settings.cpp.
References KisSharedPtr< T >::data(), and KisPaintOpSettings::resourceCacheInterface.
|
overridevirtual |
Reimplemented from KisPaintOpSettings.
Reimplemented in KisFilterOpSettings, KisHairyPaintOpSettings, and KisSketchPaintOpSettings.
Definition at line 323 of file kis_brush_based_paintop_settings.cpp.
|
overrideprotectedvirtual |
The callback is called every time when a property changes
Reimplemented from KisPaintOpSettings.
Definition at line 317 of file kis_brush_based_paintop_settings.cpp.
References m_savedBrush, and KisOutlineGenerationPolicy< ParentClass >::onPropertyChanged().
|
overridevirtual |
Reimplemented.
Reimplemented from KisPaintOpSettings.
Reimplemented in KisDuplicateOpSettings, KisFilterOpSettings, and KisSketchPaintOpSettings.
Definition at line 68 of file kis_brush_based_paintop_settings.cpp.
References BUILDUP, KisPaintingModeOptionData::hasPaintingModeProperty, KisPaintingModeOptionData::paintingMode, and KisPaintingModeOptionData::read().
|
overridevirtual |
Implements KisPaintOpSettings.
Definition at line 202 of file kis_brush_based_paintop_settings.cpp.
References brush(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, kisRadiansToDegrees(), and value().
|
overridevirtual |
Implements KisPaintOpSettings.
Definition at line 186 of file kis_brush_based_paintop_settings.cpp.
References brush(), and KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE.
|
overridevirtual |
Reimplemented from KisPaintOpSettings.
Definition at line 364 of file kis_brush_based_paintop_settings.cpp.
References brush(), and KIS_SAFE_ASSERT_RECOVER_RETURN.
|
overridevirtual |
Reimplemented from KisPaintOpSettings.
Definition at line 328 of file kis_brush_based_paintop_settings.cpp.
References KisTextureOption::applyingGradient(), KoCanvasResource::BackgroundColor, brush(), KoCanvasResource::CurrentEffectiveCompositeOp, KoCanvasResource::CurrentGradient, KoCanvasResource::ForegroundColor, KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, and KisTextureOption::requiresEffectiveCompositeOp().
| void KisBrushBasedPaintOpSettings::setAutoSpacing | ( | bool | active, |
| qreal | coeff ) |
Definition at line 158 of file kis_brush_based_paintop_settings.cpp.
|
overridevirtual |
Set paintop angle (in degrees) directly in the properties. Increasing the angle corresponds to a counter-clockwise rotation.
Implements KisPaintOpSettings.
Definition at line 192 of file kis_brush_based_paintop_settings.cpp.
References kisDegreesToRadians(), normalizeAngleDegrees(), and value().
|
overridevirtual |
Set paintop size directly in the properties
Implements KisPaintOpSettings.
Definition at line 178 of file kis_brush_based_paintop_settings.cpp.
References value().
|
overridevirtual |
Reimplemented from KisPaintOpSettings.
Definition at line 346 of file kis_brush_based_paintop_settings.cpp.
References brush(), KIS_SAFE_ASSERT_RECOVER_NOOP, and m_savedBrush.
| void KisBrushBasedPaintOpSettings::setSpacing | ( | qreal | spacing | ) |
Definition at line 145 of file kis_brush_based_paintop_settings.cpp.
References value().
| qreal KisBrushBasedPaintOpSettings::spacing | ( | ) |
Definition at line 152 of file kis_brush_based_paintop_settings.cpp.
References brush(), and KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE.
|
overridevirtual |
Reimplemented from KisPaintOpSettings.
Reimplemented in KisColorSmudgeOpSettings, KisBrushOpSettings, KisDuplicateOpSettings, and KisHatchingPaintOpSettings.
Definition at line 214 of file kis_brush_based_paintop_settings.cpp.
References autoSpacingActive(), autoSpacingCoeff(), listWeakToStrong(), m_uniformProperties, paintOpAngle(), setAutoSpacing(), setPaintOpAngle(), KisCallbackBasedPaintopProperty< ParentClass >::setReadCallback(), setSpacing(), KisCallbackBasedPaintopProperty< ParentClass >::setWriteCallback(), spacing(), toQShared(), KisPaintOpSettings::uniformProperties, and value().
|
mutableprotected |
Definition at line 61 of file kis_brush_based_paintop_settings.h.
|
protected |
Definition at line 62 of file kis_brush_based_paintop_settings.h.