#include <KoParameterShape.h>
Graphe d'héritage de KoParameterShape:
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 |
Définition à la ligne 25 du fichier KoParameterShape.h.
KoParameterShape::KoParameterShape | ( | ) |
Définition à la ligne 25 du fichier KoParameterShape.cpp.
KoParameterShape::~KoParameterShape | ( | ) |
Définition à la ligne 30 du fichier KoParameterShape.cpp.
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.
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.
rect | in shape coordinates |
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.
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.
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.
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.
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
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.
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.
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.
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.
size | of the shape |
Référencé par moveHandle().
Voici le graphe d'appel pour cette fonction :
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().