Référence de la classe KoPathTool::KoPathPointSelection

Handle the selection of points. Plus de détails...

Graphe de collaboration de KoPathTool::KoPathPointSelection:

[légende]
Liste de tous les membres

Fonctions membres publiques

 KoPathPointSelection (KoPathTool *tool)
 ~KoPathPointSelection ()
void paint (QPainter &painter, KoViewConverter &converter)
 Draw the selected points.
void add (KoPathPoint *point, bool clear)
 Add a point to the selection.
void remove (KoPathPoint *point)
 Remove a point form the selection.
void clear ()
 Clear the selection.
int objectCount () const
 Get the number of path objects in the selection.
int size () const
 Get the number of path objects in the selection.
bool contains (KoPathPoint *point)
 Check if a point is in the selection.
const QSet< KoPathPoint * > & selectedPoints () const
 Get all selected points.
const KoPathShapePointMapselectedPointMap () const
 Get the selected point map.
void repaint ()
 trigger a repaint

Attributs privés

QSet< KoPathPoint * > m_selectedPoints
KoPathShapePointMap m_shapePointMap
KoPathToolm_tool

Description détaillée

Handle the selection of points.

This class handles the selection of points. It makes sure the canvas is repainted when the selection changes.

Définition à la ligne 125 du fichier KoPathTool.h.


Documentation des contructeurs et destructeur

KoPathTool::KoPathPointSelection::KoPathPointSelection ( KoPathTool tool  )  [inline]

Définition à la ligne 128 du fichier KoPathTool.h.

KoPathTool::KoPathPointSelection::~KoPathPointSelection (  )  [inline]

Définition à la ligne 131 du fichier KoPathTool.h.


Documentation des fonctions membres

void KoPathTool::KoPathPointSelection::paint ( QPainter &  painter,
KoViewConverter converter 
)

Draw the selected points.

Définition à la ligne 574 du fichier KoPathTool.cpp.

Références KoShape::applyConversion(), KoPathTool::handleRect(), m_shapePointMap, m_tool, KoPathPoint::paint(), et KoViewConverter::viewToDocument().

Référencé par KoPathTool::paint().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoPathTool::KoPathPointSelection::add ( KoPathPoint point,
bool  clear 
)

Add a point to the selection.

Paramètres:
point to add to the selection
clear if true the selection will be cleared before adding the point

Définition à la ligne 593 du fichier KoPathTool.cpp.

Références clear(), m_selectedPoints, m_shapePointMap, m_tool, KoPathTool::repaint(), et size().

Référencé par KoPathTool::ActivePointHandle::mousePressEvent(), et KoPathTool::selectPoints().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoPathTool::KoPathPointSelection::remove ( KoPathPoint point  ) 

Remove a point form the selection.

Paramètres:
point to remove from the selection

Définition à la ligne 626 du fichier KoPathTool.cpp.

Références KoPathPoint::boundingRect(), m_selectedPoints, m_shapePointMap, m_tool, KoPathPoint::parent(), KoPathTool::repaint(), et size().

Référencé par KoPathTool::ActivePointHandle::mousePressEvent().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoPathTool::KoPathPointSelection::clear (  ) 

Clear the selection.

Définition à la ligne 640 du fichier KoPathTool.cpp.

Références m_selectedPoints, m_shapePointMap, et repaint().

Référencé par add(), KoPathTool::deactivate(), KoPathTool::keyPressEvent(), KoPathTool::ActiveParameterHandle::mousePressEvent(), KoPathTool::mousePressEvent(), et KoPathTool::selectPoints().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

int KoPathTool::KoPathPointSelection::objectCount (  )  const [inline]

Get the number of path objects in the selection.

Renvoie:
number of path object in the point selection

Définition à la ligne 161 du fichier KoPathTool.h.

Références m_shapePointMap.

Référencé par KoPathTool::keyPressEvent().

Voici le graphe d'appel pour cette fonction :

int KoPathTool::KoPathPointSelection::size (  )  const [inline]

Get the number of path objects in the selection.

Renvoie:
number of points in the selection

Définition à la ligne 168 du fichier KoPathTool.h.

Références m_selectedPoints.

Référencé par add(), KoPathTool::keyPressEvent(), et remove().

Voici le graphe d'appel pour cette fonction :

bool KoPathTool::KoPathPointSelection::contains ( KoPathPoint point  )  [inline]

Check if a point is in the selection.

Renvoie:
true when the point is in the selection, false otherwise

Définition à la ligne 175 du fichier KoPathTool.h.

Références m_selectedPoints.

Référencé par KoPathTool::keyPressEvent(), KoPathTool::ActivePointHandle::mousePressEvent(), et KoPathTool::ActivePointHandle::paint().

Voici le graphe d'appel pour cette fonction :

const QSet<KoPathPoint *>& KoPathTool::KoPathPointSelection::selectedPoints (  )  const [inline]

Get all selected points.

Renvoie:
set of selected points

Définition à la ligne 182 du fichier KoPathTool.h.

Références m_selectedPoints.

Référencé par KoPathTool::keyPressEvent().

Voici le graphe d'appel pour cette fonction :

const KoPathShapePointMap& KoPathTool::KoPathPointSelection::selectedPointMap (  )  const [inline]

Get the selected point map.

Renvoie:
KoSelectedPointMap containing all objects and selected points typedef QMap<KoPathShape *, QSet<KoPathPoint *> > KoSelectedPointMap;

Définition à la ligne 190 du fichier KoPathTool.h.

Références m_shapePointMap.

Référencé par KoPathTool::keyPressEvent().

Voici le graphe d'appel pour cette fonction :

void KoPathTool::KoPathPointSelection::repaint (  ) 

trigger a repaint

Définition à la ligne 647 du fichier KoPathTool.cpp.

Références KoPathPoint::boundingRect(), m_selectedPoints, m_tool, et KoPathTool::repaint().

Référencé par clear(), KoPathTool::keyPressEvent(), et KoPathTool::mouseMoveEvent().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

QSet<KoPathPoint *> KoPathTool::KoPathPointSelection::m_selectedPoints [private]

Définition à la ligne 198 du fichier KoPathTool.h.

Référencé par add(), clear(), contains(), remove(), repaint(), selectedPoints(), et size().

KoPathShapePointMap KoPathTool::KoPathPointSelection::m_shapePointMap [private]

Définition à la ligne 199 du fichier KoPathTool.h.

Référencé par add(), clear(), objectCount(), paint(), remove(), et selectedPointMap().

KoPathTool* KoPathTool::KoPathPointSelection::m_tool [private]

Définition à la ligne 200 du fichier KoPathTool.h.

Référencé par add(), paint(), remove(), et repaint().


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