|
Krita Source Code Documentation
|
The undo / redo command for merging two subpath end points. More...
#include <KoPathPointMergeCommand.h>
Inheritance diagram for KoPathPointMergeCommand:Public Types | |
| enum | Reverse { ReverseNone = 0 , ReverseFirst = 1 , ReverseSecond = 2 } |
Public Attributes | |
| KoPathPointIndex | mergedPointIndex |
| KoPathShape * | pathShape |
| KoPathPointIndex | pointIndex1 |
| KoPathPointIndex | pointIndex2 |
| KoPathPoint * | removedPoint |
| int | reverse |
| boost::optional< QPointF > | savedControlPoint11 |
| boost::optional< QPointF > | savedControlPoint12 |
| QPointF | savedNodePoint1 |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
The undo / redo command for merging two subpath end points.
Definition at line 18 of file KoPathPointMergeCommand.cpp.
| Enumerator | |
|---|---|
| ReverseNone | |
| ReverseFirst | |
| ReverseSecond | |
Definition at line 79 of file KoPathPointMergeCommand.cpp.
|
inline |
Definition at line 31 of file KoPathPointMergeCommand.cpp.
| KoPathPointMergeCommand::KoPathPointMergeCommand | ( | const KoPathPointData & | pointData1, |
| const KoPathPointData & | pointData2, | ||
| KUndo2Command * | parent = 0 ) |
Command to merge two subpath end points.
The points have to be from the same path shape.
| pointData1 | the data of the first point to merge |
| pointData2 | the data of the second point to merge |
| parent | the parent command used for macro commands |
How does is work:
The goal is to merge the point that is ending an open subpath with the one starting the same or another open subpath.
Definition at line 99 of file KoPathPointMergeCommand.cpp.
References d, KIS_ASSERT, kundo2_i18n(), KoPathPointData::pathShape, and KUndo2Command::setText().
|
override |
|
inline |
Definition at line 68 of file KoPathPointMergeCommand.cpp.
| KoPathPointData KoPathPointMergeCommand::mergedPointData | ( | ) | const |
Definition at line 224 of file KoPathPointMergeCommand.cpp.
References d.
|
inline |
Definition at line 48 of file KoPathPointMergeCommand.cpp.
References dstPoint, p1, p2, and KritaUtils::restoreControlPoint().
|
inline |
Definition at line 21 of file KoPathPointMergeCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 143 of file KoPathPointMergeCommand.cpp.
References d, KIS_SAFE_ASSERT_RECOVER_RETURN, and KUndo2Command::redo().
|
inline |
Definition at line 42 of file KoPathPointMergeCommand.cpp.
References KritaUtils::restoreControlPoint(), and KoPathPoint::setPoint().
|
inline |
Definition at line 36 of file KoPathPointMergeCommand.cpp.
References KritaUtils::fetchControlPoint(), and KoPathPoint::point.
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 188 of file KoPathPointMergeCommand.cpp.
References d, KIS_SAFE_ASSERT_RECOVER_RETURN, and KUndo2Command::undo().
|
private |
Definition at line 42 of file KoPathPointMergeCommand.h.
| KoPathPointIndex KoPathPointMergeCommand::mergedPointIndex |
Definition at line 77 of file KoPathPointMergeCommand.cpp.
| KoPathShape* KoPathPointMergeCommand::pathShape |
Definition at line 72 of file KoPathPointMergeCommand.cpp.
| KoPathPointIndex KoPathPointMergeCommand::pointIndex1 |
Definition at line 73 of file KoPathPointMergeCommand.cpp.
| KoPathPointIndex KoPathPointMergeCommand::pointIndex2 |
Definition at line 74 of file KoPathPointMergeCommand.cpp.
| KoPathPoint* KoPathPointMergeCommand::removedPoint |
Definition at line 76 of file KoPathPointMergeCommand.cpp.
| int KoPathPointMergeCommand::reverse |
Definition at line 85 of file KoPathPointMergeCommand.cpp.
| boost::optional<QPointF> KoPathPointMergeCommand::savedControlPoint11 |
Definition at line 89 of file KoPathPointMergeCommand.cpp.
| boost::optional<QPointF> KoPathPointMergeCommand::savedControlPoint12 |
Definition at line 90 of file KoPathPointMergeCommand.cpp.
| QPointF KoPathPointMergeCommand::savedNodePoint1 |
Definition at line 87 of file KoPathPointMergeCommand.cpp.