|
Krita Source Code Documentation
|
Strategy for moving points of a path shape. More...
#include <KoPathControlPointMoveStrategy.h>
Inheritance diagram for KoPathControlPointMoveStrategy:Public Member Functions | |
| KUndo2Command * | createCommand () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| KoPathControlPointMoveStrategy (KoPathTool *tool, const KoPathPointData &point, KoPathPoint::PointType type, const QPointF &pos) | |
| ~KoPathControlPointMoveStrategy () 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_lastPosition |
| the last mouse position | |
| QPointF | m_move |
| the accumulated point move amount | |
| KoPathShape * | m_path |
| KoPathPointData | m_pointData |
| KoPathPoint::PointType | m_pointType |
| KoPathTool * | m_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.
/internal
Definition at line 22 of file KoPathControlPointMoveStrategy.h.
| KoPathControlPointMoveStrategy::KoPathControlPointMoveStrategy | ( | KoPathTool * | tool, |
| const KoPathPointData & | point, | ||
| KoPathPoint::PointType | type, | ||
| const QPointF & | pos ) |
Definition at line 16 of file KoPathControlPointMoveStrategy.cpp.
References m_path, m_pointData, and KoPathPointData::pathShape.
|
override |
Definition at line 27 of file KoPathControlPointMoveStrategy.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 52 of file KoPathControlPointMoveStrategy.cpp.
References m_intermediateCommand.
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 47 of file KoPathControlPointMoveStrategy.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 31 of file KoPathControlPointMoveStrategy.cpp.
References KoToolBase::canvas(), KoShape::documentToShape(), m_intermediateCommand, m_lastPosition, m_move, m_path, m_pointData, m_pointType, m_tool, KisCommandUtils::redoAndMergeIntoAccumulatingCommand(), KoSnapGuide::snap(), and KoCanvasBase::snapGuide.
|
private |
Definition at line 42 of file KoPathControlPointMoveStrategy.h.
|
private |
the last mouse position
Definition at line 34 of file KoPathControlPointMoveStrategy.h.
|
private |
the accumulated point move amount
Definition at line 36 of file KoPathControlPointMoveStrategy.h.
|
private |
Definition at line 40 of file KoPathControlPointMoveStrategy.h.
|
private |
Definition at line 39 of file KoPathControlPointMoveStrategy.h.
|
private |
Definition at line 41 of file KoPathControlPointMoveStrategy.h.
|
private |
Definition at line 38 of file KoPathControlPointMoveStrategy.h.