|
Krita Source Code Documentation
|
Strategy for changing control points of parametric shapes. More...
#include <KoParameterChangeStrategy.h>
Inheritance diagram for KoParameterChangeStrategy:Public Member Functions | |
| KUndo2Command * | createCommand () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| KoParameterChangeStrategy (KoToolBase *tool, KoParameterShape *parameterShape, int handleId) | |
| ~KoParameterChangeStrategy () override | |
Public Member Functions inherited from KoInteractionStrategy | |
| virtual void | cancelInteraction () |
| KoInteractionStrategy (KoToolBase *parent) | |
| constructor | |
| virtual void | paint (QPainter &painter, const KoViewConverter &converter) |
| KoToolBase * | tool () const |
| virtual | ~KoInteractionStrategy () |
| Destructor. | |
Protected Member Functions | |
| KoParameterChangeStrategy (KoParameterChangeStrategyPrivate &) | |
| constructor | |
Protected Member Functions inherited from KoInteractionStrategy | |
| uint | decorationThickness () const |
| uint | grabSensitivity () const |
| Convenience function to get the global grab sensitivity. | |
| uint | handleRadius () const |
| Convenience function to get the global handle radius. | |
| KoInteractionStrategy (KoInteractionStrategyPrivate &) | |
| constructor | |
Additional Inherited Members | |
Protected Attributes inherited from KoInteractionStrategy | |
| KoInteractionStrategyPrivate * | d_ptr |
Strategy for changing control points of parametric shapes.
Definition at line 18 of file KoParameterChangeStrategy.h.
| KoParameterChangeStrategy::KoParameterChangeStrategy | ( | KoToolBase * | tool, |
| KoParameterShape * | parameterShape, | ||
| int | handleId ) |
Constructs a strategy for changing control points of parametric shapes.
| tool | the tool the strategy belongs to |
| parameterShape | the parametric shapes the strategy is working on |
| handleId | the id of the handle to modify |
Definition at line 16 of file KoParameterChangeStrategy.cpp.
|
override |
Definition at line 29 of file KoParameterChangeStrategy.cpp.
|
protected |
constructor
Definition at line 23 of file KoParameterChangeStrategy.cpp.
|
overridevirtual |
For interactions that are undo-able this method should be implemented to return such a command. Implementations should return 0 otherwise.
Implements KoInteractionStrategy.
Definition at line 44 of file KoParameterChangeStrategy.cpp.
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 58 of file KoParameterChangeStrategy.cpp.
|
overridevirtual |
Extending classes should implement this method to update the selectedShapes based on the new mouse position.
| mouseLocation | the new location in pt |
| modifiers | OR-ed set of keys pressed. |
Implements KoInteractionStrategy.
Definition at line 33 of file KoParameterChangeStrategy.cpp.