Référence de la classe KoSegmentSplitCommand

The undo / redo command for splitting a path segment. Plus de détails...

#include <KoPathCommand.h>

Graphe d'héritage de KoSegmentSplitCommand:

[légende]
Graphe de collaboration de KoSegmentSplitCommand:
[légende]
Liste de tous les membres

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< KoPathSegmentm_segments
QList< KoSegmentDatam_oldNeighbors
QList< KoSegmentDatam_newNeighbors
QList< double > m_splitPos
QList< KoPathPoint * > m_splitPoints
bool m_deletePoint
QList< QPair< KoSubpath *,
int > > 
m_splitPointPos

Description détaillée

The undo / redo command for splitting a path segment.

Définition à la ligne 147 du fichier KoPathCommand.h.


Documentation des définition de type membres

typedef QPair<KoPathPoint,KoPathPoint> KoSegmentSplitCommand::KoSegmentData [private]

Définition à la ligne 180 du fichier KoPathCommand.h.


Documentation des contructeurs et destructeur

KoSegmentSplitCommand::KoSegmentSplitCommand ( KoPathShape shape,
const KoPathSegment segment,
double  splitPosition 
)

Command to split a single path segment at the given position

Paramètres:
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

Paramètres:
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

Paramètres:
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]

Définition à la ligne 349 du fichier KoPathCommand.cpp.

Références m_deletePoint, et m_splitPoints.


Documentation des fonctions membres

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

return the name of this command

Définition à la ligne 399 du fichier KoPathCommand.cpp.


Documentation des données membres

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().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:48:52 2006 pour KPlato par  doxygen 1.5.1-p1