|
Krita Source Code Documentation
|
#include <kis_deform_paintop_settings.h>
Inheritance diagram for KisDeformPaintOpSettings:Classes | |
| struct | Private |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Definition at line 15 of file kis_deform_paintop_settings.h.
| KisDeformPaintOpSettings::KisDeformPaintOpSettings | ( | KisResourcesInterfaceSP | resourcesInterface | ) |
Definition at line 20 of file kis_deform_paintop_settings.cpp.
|
override |
Definition at line 28 of file kis_deform_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.
Definition at line 73 of file kis_deform_paintop_settings.cpp.
References KisPaintOpSettings::ellipseOutline(), KisCurrentOutlineFetcher::fetchOutline(), KisPropertiesConfiguration::getDouble(), KisPropertiesConfiguration::getInt(), KisPaintOpSettings::OutlineMode::isVisible, KisPaintOpSettings::makeTiltIndicator(), KisOutlineGenerationPolicy< KisPaintOpSettings >::outlineFetcher(), and KisPaintOpSettings::OutlineMode::showTiltDecoration.
|
overridevirtual |
Whether this paintop wants to deposit paint even when not moving, i.e. the tool needs to activate its timer. If this is true, painting updates need to be generated at regular intervals even in the absence of input device events, e.g. when the cursor is not moving.
The default implementation checks the property AIRBRUSH_ENABLED, defaulting to false if the property is not found. This should be suitable for most paintops.
Reimplemented from KisPaintOpSettings.
Definition at line 62 of file kis_deform_paintop_settings.cpp.
References AIRBRUSH_ENABLED, KisPropertiesConfiguration::getBool(), and KisPropertiesConfiguration::hasProperty().
|
overridevirtual |
XXX: Remove this after 2.0, when the paint operation (incremental/non incremental) will be completely handled in the paintop, not in the tool. This is a filthy hack to move the option to the right place, at least.
Reimplemented from KisPaintOpSettings.
Definition at line 57 of file kis_deform_paintop_settings.cpp.
|
overridevirtual |
Implements KisPaintOpSettings.
Definition at line 52 of file kis_deform_paintop_settings.cpp.
|
overridevirtual |
Implements KisPaintOpSettings.
Definition at line 40 of file kis_deform_paintop_settings.cpp.
References KisBrushSizeOptionData::brushDiameter, and KisBrushSizeOptionData::read().
|
overridevirtual |
Set paintop angle (in degrees) directly in the properties. Increasing the angle corresponds to a counter-clockwise rotation.
Implements KisPaintOpSettings.
Definition at line 47 of file kis_deform_paintop_settings.cpp.
References value().
|
overridevirtual |
Set paintop size directly in the properties
Implements KisPaintOpSettings.
Definition at line 32 of file kis_deform_paintop_settings.cpp.
References KisBrushSizeOptionData::brushDiameter, KisBrushSizeOptionData::read(), value(), and KisBrushSizeOptionData::write().
|
overridevirtual |
Reimplemented from KisPaintOpSettings.
Definition at line 99 of file kis_deform_paintop_settings.cpp.
References KisBrushSizeOptionData::brushRotation, KisDeformOptionData::deformAction, KisDeformOptionData::deformAmount, listWeakToStrong(), m_d, KisBrushSizeOptionData::read(), KisDeformOptionData::read(), KisCallbackBasedPaintopProperty< ParentClass >::setReadCallback(), KisCallbackBasedPaintopProperty< ParentClass >::setWriteCallback(), toQShared(), KisPaintOpSettings::uniformProperties, KisBrushSizeOptionData::write(), and KisDeformOptionData::write().
|
private |
Definition at line 37 of file kis_deform_paintop_settings.h.