Référence de la classe KoParameterShape

#include <KoParameterShape.h>

Graphe d'héritage de KoParameterShape:

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

Fonctions membres publiques

 KoParameterShape ()
 ~KoParameterShape ()
virtual void moveHandle (int handleId, const QPointF &point, Qt::KeyboardModifiers modifiers=Qt::NoModifier)
 Move handle to point.
virtual int handleIdAt (const QRectF &rect) const
 Get the handleId in the rect.
virtual QPointF handlePosition (int handleId)
 Get the handle position.
virtual void paintHandles (QPainter &painter, const KoViewConverter &converter)
 Paint the handles.
virtual void paintHandle (QPainter &painter, const KoViewConverter &converter, int handleId)
 Paint the given handles.
virtual void resize (const QSizeF &newSize)
 Resize the shape.
bool isParametricShape () const
 Check if object is a parametric shape.
void setModified (bool modified)
 Set the modified status.
virtual QPointF normalize ()
 Normalizes the path data.

Fonctions membres protégées

virtual void moveHandleAction (int handleId, const QPointF &point, Qt::KeyboardModifiers modifiers=Qt::NoModifier)=0
 Updates the internal state of a KoParameterShape.
virtual void updatePath (const QSizeF &size)=0
 Update the path of the parameter shape.

Attributs protégés

QList< QPointF > m_handles
bool m_modified

Description détaillée

Définition à la ligne 25 du fichier KoParameterShape.h.


Documentation des contructeurs et destructeur

KoParameterShape::KoParameterShape (  ) 

Définition à la ligne 25 du fichier KoParameterShape.cpp.

KoParameterShape::~KoParameterShape (  ) 

Définition à la ligne 30 du fichier KoParameterShape.cpp.


Documentation des fonctions membres

void KoParameterShape::moveHandle ( int  handleId,
const QPointF &  point,
Qt::KeyboardModifiers  modifiers = Qt::NoModifier 
) [virtual]

Move handle to point.

This method calls moveHandleAction. Overload moveHandleAction to get the behaviour you want. After that updatePath and a repaint is called.

Paramètres:
handleId of the handle
point to move the handle to
modifiers used during move to point

Définition à la ligne 34 du fichier KoParameterShape.cpp.

Références m_handles, moveHandleAction(), KoShape::repaint(), KoPathShape::size(), et updatePath().

Référencé par KoParameterChangeCommand::execute(), KoParameterChangeStrategy::handleMouseMove(), et KoParameterChangeCommand::unexecute().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

int KoParameterShape::handleIdAt ( const QRectF &  rect  )  const [virtual]

Get the handleId in the rect.

Paramètres:
rect in shape coordinates
Renvoie:
id of the found handle or -1 if one was found

Définition à la ligne 51 du fichier KoParameterShape.cpp.

Références m_handles.

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

Voici le graphe d'appel pour cette fonction :

QPointF KoParameterShape::handlePosition ( int  handleId  )  [virtual]

Get the handle position.

Paramètres:
handleId for which ti get the position in shape coordinates

Définition à la ligne 66 du fichier KoParameterShape.cpp.

Références m_handles.

Référencé par KoParameterChangeStrategy::createCommand(), et KoPathTool::ActiveParameterHandle::repaint().

Voici le graphe d'appel pour cette fonction :

void KoParameterShape::paintHandles ( QPainter &  painter,
const KoViewConverter converter 
) [virtual]

Paint the handles.

Paramètres:
painter 
converter 

Définition à la ligne 71 du fichier KoParameterShape.cpp.

Références KoShape::applyConversion(), KoPathShape::handleRect(), et m_handles.

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

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoParameterShape::paintHandle ( QPainter &  painter,
const KoViewConverter converter,
int  handleId 
) [virtual]

Paint the given handles.

Paramètres:
painter 
converter 
handleId of the handle which should be repainted

Définition à la ligne 93 du fichier KoParameterShape.cpp.

Références KoShape::applyConversion(), KoPathShape::handleRect(), et m_handles.

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

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoParameterShape::resize ( const QSizeF &  newSize  )  [virtual]

Resize the shape.

Paramètres:
size the new size of the shape. This is different from scaling as scaling is a so called secondairy operation which is comparable to zooming in instead of changing the size of the basic shape. Easiest example of this difference is that using this method will not distort the size of pattern-fills and borders.

Réimplémentée à partir de KoPathShape.

Définition à la ligne 108 du fichier KoParameterShape.cpp.

Références m_handles, KoPathShape::resize(), et KoPathShape::size().

Voici le graphe d'appel pour cette fonction :

bool KoParameterShape::isParametricShape (  )  const [inline]

Check if object is a parametric shape.

It is no longer a parametric shape when the path was manipulated

Renvoie:
true if it is a parametic shape, false otherwise

Définition à la ligne 84 du fichier KoParameterShape.h.

Références m_modified.

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

Voici le graphe d'appel pour cette fonction :

void KoParameterShape::setModified ( bool  modified  )  [inline]

Set the modified status.

After the state is set to modified it is no longer possible to work with parameters on this shape.

Paramètres:
modified the modification state

Définition à la ligne 94 du fichier KoParameterShape.h.

Références m_modified.

Référencé par KoParameterToPathCommand::execute(), et KoParameterToPathCommand::unexecute().

Voici le graphe d'appel pour cette fonction :

QPointF KoParameterShape::normalize (  )  [virtual]

Normalizes the path data.

The path points are transformed so that the top-left corner of the bounding rect is (0,0). This should be called after adding points to the path.

Renvoie:
the offset by which the points are moved in shape coordinates.

Réimplémentée à partir de KoPathShape.

Définition à la ligne 121 du fichier KoParameterShape.cpp.

Références m_handles, et KoPathShape::normalize().

Voici le graphe d'appel pour cette fonction :

virtual void KoParameterShape::moveHandleAction ( int  handleId,
const QPointF &  point,
Qt::KeyboardModifiers  modifiers = Qt::NoModifier 
) [protected, pure virtual]

Updates the internal state of a KoParameterShape.

This method is called from moveHandle.

Paramètres:
handleId of the handle
point to move the handle to
modifiers used during move to point

Référencé par moveHandle().

Voici le graphe d'appel pour cette fonction :

virtual void KoParameterShape::updatePath ( const QSizeF &  size  )  [protected, pure virtual]

Update the path of the parameter shape.

Paramètres:
size of the shape

Référencé par moveHandle().

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

QList<QPointF> KoParameterShape::m_handles [protected]

Définition à la ligne 117 du fichier KoParameterShape.h.

Référencé par handleIdAt(), handlePosition(), moveHandle(), normalize(), paintHandle(), paintHandles(), et resize().

bool KoParameterShape::m_modified [protected]

Définition à la ligne 118 du fichier KoParameterShape.h.

Référencé par isParametricShape(), et setModified().


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