#include <KoPathCommand.h>
Graphe d'héritage de KoSegmentSplitCommand:
Fonctions membres publiques | |
KoSegmentSplitCommand (KoPathShape *shape, const KoPathSegment &segment, double splitPosition) | |
KoSegmentSplitCommand (KoPathShape *shape, const QList< KoPathSegment > &segments, const QList< double > &splitPositions) | |
KoSegmentSplitCommand (KoPathShape *shape, const QList< KoPathSegment > &segments, double splitPosition) | |
virtual | ~KoSegmentSplitCommand () |
void | execute () |
execute the command | |
void | unexecute () |
revert the actions done in execute | |
QString | name () const |
return the name of this command | |
Types privés | |
typedef QPair< KoPathPoint, KoPathPoint > | KoSegmentData |
Attributs privés | |
QList< KoPathSegment > | m_segments |
QList< KoSegmentData > | m_oldNeighbors |
QList< KoSegmentData > | m_newNeighbors |
QList< double > | m_splitPos |
QList< KoPathPoint * > | m_splitPoints |
bool | m_deletePoint |
QList< QPair< KoSubpath *, int > > | m_splitPointPos |
Définition à la ligne 147 du fichier KoPathCommand.h.
typedef QPair<KoPathPoint,KoPathPoint> KoSegmentSplitCommand::KoSegmentData [private] |
Définition à la ligne 180 du fichier KoPathCommand.h.
KoSegmentSplitCommand::KoSegmentSplitCommand | ( | KoPathShape * | shape, | |
const KoPathSegment & | segment, | |||
double | splitPosition | |||
) |
Command to split a single path segment at the given position
shape | the path shape containing the points | |
segment | the segment to split | |
splitPosition | the position to split at [0..1] |
Définition à la ligne 293 du fichier KoPathCommand.cpp.
Références m_newNeighbors, m_oldNeighbors, m_segments, m_splitPointPos, m_splitPoints, et m_splitPos.
KoSegmentSplitCommand::KoSegmentSplitCommand | ( | KoPathShape * | shape, | |
const QList< KoPathSegment > & | segments, | |||
const QList< double > & | splitPositions | |||
) |
Command to split multiple path segments at different positions
shape | the path shape containing the points | |
segments | the segments to split | |
splitPositions | the positions to split at [0..1] |
Définition à la ligne 308 du fichier KoPathCommand.cpp.
Références m_newNeighbors, m_oldNeighbors, m_segments, m_splitPointPos, m_splitPoints, et m_splitPos.
KoSegmentSplitCommand::KoSegmentSplitCommand | ( | KoPathShape * | shape, | |
const QList< KoPathSegment > & | segments, | |||
double | splitPosition | |||
) |
Command to split multiple path segments at the same position
shape | the path shape containing the points | |
segments | the segments to split | |
splitPosition | the position to split at [0..1] |
Définition à la ligne 329 du fichier KoPathCommand.cpp.
Références m_newNeighbors, m_oldNeighbors, m_segments, m_splitPointPos, m_splitPoints, et m_splitPos.
KoSegmentSplitCommand::~KoSegmentSplitCommand | ( | ) | [virtual] |
void KoSegmentSplitCommand::execute | ( | ) |
execute the command
Définition à la ligne 358 du fichier KoPathCommand.cpp.
Références KoPathShape::insertPoint(), m_deletePoint, m_newNeighbors, m_segments, KoPathBaseCommand::m_shape, m_splitPointPos, m_splitPoints, m_splitPos, KoPathShape::outline(), KoPathBaseCommand::repaint(), et KoPathShape::splitAt().
Voici le graphe d'appel pour cette fonction :
void KoSegmentSplitCommand::unexecute | ( | ) |
revert the actions done in execute
Définition à la ligne 383 du fichier KoPathCommand.cpp.
Références m_deletePoint, m_oldNeighbors, m_segments, KoPathBaseCommand::m_shape, m_splitPointPos, m_splitPoints, KoPathShape::outline(), KoPathShape::removePoint(), et KoPathBaseCommand::repaint().
Voici le graphe d'appel pour cette fonction :
QString KoSegmentSplitCommand::name | ( | ) | const |
QList<KoPathSegment> KoSegmentSplitCommand::m_segments [private] |
Définition à la ligne 179 du fichier KoPathCommand.h.
Référencé par execute(), KoSegmentSplitCommand(), et unexecute().
QList<KoSegmentData> KoSegmentSplitCommand::m_oldNeighbors [private] |
Définition à la ligne 181 du fichier KoPathCommand.h.
Référencé par KoSegmentSplitCommand(), et unexecute().
QList<KoSegmentData> KoSegmentSplitCommand::m_newNeighbors [private] |
Définition à la ligne 182 du fichier KoPathCommand.h.
Référencé par execute(), et KoSegmentSplitCommand().
QList<double> KoSegmentSplitCommand::m_splitPos [private] |
Définition à la ligne 183 du fichier KoPathCommand.h.
Référencé par execute(), et KoSegmentSplitCommand().
QList<KoPathPoint*> KoSegmentSplitCommand::m_splitPoints [private] |
Définition à la ligne 184 du fichier KoPathCommand.h.
Référencé par execute(), KoSegmentSplitCommand(), unexecute(), et ~KoSegmentSplitCommand().
bool KoSegmentSplitCommand::m_deletePoint [private] |
Définition à la ligne 185 du fichier KoPathCommand.h.
Référencé par execute(), unexecute(), et ~KoSegmentSplitCommand().
QList< QPair<KoSubpath*,int> > KoSegmentSplitCommand::m_splitPointPos [private] |
Définition à la ligne 186 du fichier KoPathCommand.h.
Référencé par execute(), KoSegmentSplitCommand(), et unexecute().