|
Krita Source Code Documentation
|
Strategy for moving points of a path shape. More...
#include <KoPathPointMoveStrategy.h>
Inheritance diagram for KoPathPointMoveStrategy:Public Member Functions | |
| KUndo2Command * | createCommand () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| KoPathPointMoveStrategy (KoPathTool *tool, const QPointF &mousePosition, const QPointF &pointPosition) | |
| ~KoPathPointMoveStrategy () 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. | |
Private Attributes | |
| QScopedPointer< KUndo2Command > | m_intermediateCommand |
| QPointF | m_move |
| the accumulated point move amount | |
| QPointF | m_startMousePosition |
| QPointF | m_startPointPosition |
| KoPathTool * | m_tool |
| pointer to the path tool | |
Additional Inherited Members | |
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 | |
Protected Attributes inherited from KoInteractionStrategy | |
| KoInteractionStrategyPrivate * | d_ptr |
Strategy for moving points of a path shape.
Definition at line 21 of file KoPathPointMoveStrategy.h.
| KoPathPointMoveStrategy::KoPathPointMoveStrategy | ( | KoPathTool * | tool, |
| const QPointF & | mousePosition, | ||
| const QPointF & | pointPosition ) |
Definition at line 20 of file KoPathPointMoveStrategy.cpp.
|
override |
Definition at line 28 of file KoPathPointMoveStrategy.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 59 of file KoPathPointMoveStrategy.cpp.
References m_intermediateCommand.
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 54 of file KoPathPointMoveStrategy.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 32 of file KoPathPointMoveStrategy.cpp.
References KoToolBase::canvas(), m_intermediateCommand, m_move, m_startMousePosition, m_startPointPosition, m_tool, KisCommandUtils::redoAndMergeIntoAccumulatingCommand(), KoPathToolSelection::selectedPointsData(), KoPathTool::selection(), KoSnapGuide::snap(), KoCanvasBase::snapGuide, and snapToClosestAxis().
|
private |
Definition at line 37 of file KoPathPointMoveStrategy.h.
|
private |
the accumulated point move amount
Definition at line 34 of file KoPathPointMoveStrategy.h.
|
private |
Definition at line 31 of file KoPathPointMoveStrategy.h.
|
private |
Definition at line 32 of file KoPathPointMoveStrategy.h.
|
private |
pointer to the path tool
Definition at line 36 of file KoPathPointMoveStrategy.h.