|
Krita Source Code Documentation
|
Strategy to rubber select points of a path shape. More...
#include <KoPathPointRubberSelectStrategy.h>
Inheritance diagram for KoPathPointRubberSelectStrategy:Public Member Functions | |
| void | cancelInteraction () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &p, Qt::KeyboardModifiers modifiers) override |
| KoPathPointRubberSelectStrategy (KoPathTool *tool, const QPointF &clicked) | |
| ~KoPathPointRubberSelectStrategy () override | |
Public Member Functions inherited from KoShapeRubberSelectStrategy | |
| KUndo2Command * | createCommand () override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| KoShapeRubberSelectStrategy (KoToolBase *tool, const QPointF &clicked, bool useSnapToGrid=false) | |
| void | paint (QPainter &painter, const KoViewConverter &converter) override |
Public Member Functions inherited from KoInteractionStrategy | |
| KoInteractionStrategy (KoToolBase *parent) | |
| constructor | |
| KoToolBase * | tool () const |
| virtual | ~KoInteractionStrategy () |
| Destructor. | |
Private Attributes | |
| KoPathTool * | m_tool |
| pointer to the path tool | |
Additional Inherited Members | |
Protected Types inherited from KoShapeRubberSelectStrategy | |
| enum | SelectionMode { CrossingSelection , CoveringSelection } |
Protected Member Functions inherited from KoShapeRubberSelectStrategy | |
| virtual SelectionMode | currentMode () const |
| KoShapeRubberSelectStrategy (KoShapeRubberSelectStrategyPrivate &) | |
| constructor | |
| QRectF | selectedRectangle () const |
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 to rubber select points of a path shape.
Definition at line 18 of file KoPathPointRubberSelectStrategy.h.
| KoPathPointRubberSelectStrategy::KoPathPointRubberSelectStrategy | ( | KoPathTool * | tool, |
| const QPointF & | clicked ) |
Definition at line 15 of file KoPathPointRubberSelectStrategy.cpp.
|
inlineoverride |
Definition at line 22 of file KoPathPointRubberSelectStrategy.h.
|
overridevirtual |
This method will undo frames based interactions by calling createCommand() and unexecuting that.
Reimplemented from KoInteractionStrategy.
Definition at line 46 of file KoPathPointRubberSelectStrategy.cpp.
References KoToolBase::canvas(), KoPathTool::decorationsRect(), m_tool, and KoCanvasBase::updateCanvas().
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 31 of file KoPathPointRubberSelectStrategy.cpp.
References KoToolBase::canvas(), KoPathTool::decorationsRect(), m_tool, KoPathTool::selection(), KoPathToolSelection::selectPoints(), and KoCanvasBase::updateCanvas().
|
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 21 of file KoPathPointRubberSelectStrategy.cpp.
References KoPathToolSelection::clear(), KoShapeRubberSelectStrategy::handleMouseMove(), m_tool, p, and KoPathTool::selection().
|
private |
pointer to the path tool
Definition at line 30 of file KoPathPointRubberSelectStrategy.h.