|
Krita Source Code Documentation
|
Command to break a subpath at points. More...
#include <KoPathBreakAtPointCommand.h>
Inheritance diagram for KoPathBreakAtPointCommand:Public Member Functions | |
| KoPathBreakAtPointCommand (const QList< KoPathPointData > &pointDataList, KUndo2Command *parent=0) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoPathBreakAtPointCommand () override | |
Public Member Functions inherited from KUndo2Command | |
| QString | actionText () const |
| virtual bool | canAnnihilateWith (const KUndo2Command *other) const |
| const KUndo2Command * | child (int index) const |
| int | childCount () const |
| virtual QTime | endTime () const |
| KUndo2CommandExtraData * | extraData () const |
| bool | hasParent () const |
| virtual int | id () const |
| virtual bool | isMerged () const |
| KUndo2Command (const KUndo2MagicString &text, KUndo2Command *parent=0) | |
| KUndo2Command (KUndo2Command *parent=0) | |
| virtual QVector< KUndo2Command * > | mergeCommandsVector () const |
| virtual bool | mergeWith (const KUndo2Command *other) |
| virtual void | redoMergedCommands () |
| void | setEndTime () |
| virtual void | setEndTime (const QTime &time) |
| void | setExtraData (KUndo2CommandExtraData *data) |
| void | setText (const KUndo2MagicString &text) |
| void | setTime () |
| virtual void | setTime (const QTime &time) |
| virtual void | setTimedID (int timedID) |
| KUndo2MagicString | text () const |
| virtual QTime | time () const |
| virtual int | timedId () const |
| virtual bool | timedMergeWith (KUndo2Command *other) |
| virtual void | undoMergedCommands () |
| virtual | ~KUndo2Command () |
Private Attributes | |
| QList< KoPathPointIndex > | m_closedIndex |
| bool | m_deletePoints |
| QList< KoPathPointData > | m_pointDataList |
| QList< KoPathPoint * > | m_points |
Command to break a subpath at points.
Definition at line 18 of file KoPathBreakAtPointCommand.h.
|
explicit |
Command to break a subpath at points.
The paths are broken at the given points. New points will be inserted after the given points and then the paths will be split after the given points.
| pointDataList | List of point data where the path should be split. |
| parent | the parent command used for macro commands |
Definition at line 21 of file KoPathBreakAtPointCommand.cpp.
References KoPathShape::isClosedSubpath(), kundo2_i18n(), m_closedIndex, m_pointDataList, m_points, KoPathPointData::pathShape, KoPathShape::pointByIndex(), KoPathPointData::pointIndex, KUndo2Command::setText(), and KoPathShape::subpathPointCount().
|
override |
Definition at line 64 of file KoPathBreakAtPointCommand.cpp.
References m_deletePoints, and m_points.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 71 of file KoPathBreakAtPointCommand.cpp.
References KoPathShape::breakAfter(), KoPathShape::insertPoint(), m_closedIndex, m_deletePoints, m_pointDataList, m_points, KoPathShape::openSubpath(), KoPathPointData::pathShape, KoPathPointData::pointIndex, KUndo2Command::redo(), and KoShapeContainer::update().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 114 of file KoPathBreakAtPointCommand.cpp.
References KoPathShape::closeSubpath(), KoPathShape::join(), m_closedIndex, m_deletePoints, m_pointDataList, m_points, KoPathPointData::pathShape, KoPathPointData::pointIndex, KoPathShape::removePoint(), KUndo2Command::undo(), and KoShapeContainer::update().
|
private |
Definition at line 43 of file KoPathBreakAtPointCommand.h.
|
private |
Definition at line 44 of file KoPathBreakAtPointCommand.h.
|
private |
Definition at line 39 of file KoPathBreakAtPointCommand.h.
|
private |
Definition at line 40 of file KoPathBreakAtPointCommand.h.