#include <KoPathShape.h>
Graphe d'héritage de KoPathShape:
Fonctions membres publiques | |
KoPathShape () | |
virtual | ~KoPathShape () |
virtual void | paint (QPainter &painter, const KoViewConverter &converter) |
Paint the shape The class extending this one is responsible for painting itself. Since we do not assume the shape is square the paint must also clear its background if it will draw something transparent on top. This can be done with a method like: painter.fillRect(converter.normalToView(QRectF(QPointF(0.0,0.0), size())), background()); Or equavalent for non-square objects. | |
virtual void | paintPoints (QPainter &painter, const KoViewConverter &converter) |
virtual const QPainterPath | outline () const |
virtual QRectF | boundingRect () const |
Get the bounding box of the shape. | |
virtual QSizeF | size () const |
Get the size of the shape in pt. | |
virtual QPointF | position () const |
Get the position of the shape in pt. | |
virtual void | resize (const QSizeF &size) |
Resize the shape. | |
KoPathPoint * | moveTo (const QPointF &p) |
Start a new Subpath. | |
KoPathPoint * | lineTo (const QPointF &p) |
add a line | |
KoPathPoint * | curveTo (const QPointF &c1, const QPointF &c2, const QPointF &p) |
add a cubic Bezier curve. | |
KoPathPoint * | arcTo (double rx, double ry, double startAngle, double sweepAngle) |
add a arc. | |
void | close () |
close the current subpath | |
void | closeMerge () |
close the current subpath | |
void | update () |
The path is updated. | |
virtual QPointF | normalize () |
Normalizes the path data. | |
QList< KoPathPoint * > | pointsAt (const QRectF &r) |
Returns the path points within the given rectangle. | |
void | insertPoint (KoPathPoint *point, KoSubpath *subpath, int position) |
Inserts a new point into the given subpath at the specified position. | |
KoPointPosition | removePoint (KoPathPoint *point) |
Removes point from the path. | |
KoPathPoint * | splitAt (const KoPathSegment &segment, double t) |
Splits the given path segment at the specified position. | |
bool | breakAt (KoPathPoint *breakPoint, KoPathPoint *&insertedPoint) |
Breaks the path at the given path point. | |
bool | breakAt (const KoPathSegment &segment) |
Breaks the path at the given segment. | |
bool | joinBetween (KoPathPoint *endPoint1, KoPathPoint *endPoint2) |
Joins the two given end subpath end points. | |
bool | combine (KoPathShape *path) |
Combines two path by appending the data of the specified path. | |
bool | separate (QList< KoPathShape * > &separatedPaths) |
Creates separate path shapes, one for each existing subpath. | |
KoPathPoint * | nextPoint (KoPathPoint *point) |
Returns the next point of a given path point. | |
void | debugPath () |
print debug information about a the points of the path | |
QPointF | shapeToDocument (const QPointF &point) const |
transform point from shape coordinates to document coordinates | |
QRectF | shapeToDocument (const QRectF &rect) const |
transform rect from shape coordinates to document coordinates | |
QPointF | documentToShape (const QPointF &point) const |
transform point from world coordinates to document coordinates | |
QRectF | documentToShape (const QRectF &rect) const |
transform rect from world coordinates to document coordinates | |
Fonctions membres protégées | |
QRectF | handleRect (const QPointF &p) const |
int | arcToCurve (double rx, double ry, double startAngle, double sweepAngle, const QPointF &offset, QPointF *curvePoints) const |
add a arc. | |
Attributs protégés | |
KoSubpathList | m_subpaths |
Fonctions membres privées | |
void | map (const QMatrix &matrix) |
void | updateLast (KoPathPoint **lastPoint) |
void | closeSubpath (KoSubpath *subpath) |
closes specified subpath | |
void | closeMergeSubpath (KoSubpath *subpath) |
close-merges specified subpath | |
KoPointPosition | findPoint (KoPathPoint *point) |
return subpath and position of specified point | |
void | reverseSubpath (KoSubpath &subpath) |
reverses specified subpath (last point becomes first point) | |
void | paintDebug (QPainter &painter) |
All graphical objects are based on this object e.g. lines, rectangulars, pies and so on.
The KoPathShape uses KoPathPoint's to describe the path of the shape.
Here a short example: 3 points connected by a curveTo's described by the following svg: M 100,200 C 100,100 250,100 250,200 C 250,200 400,300 400,200.
This will be stored in 3 KoPathPoint's as The first point contains in point 100,200 controlPoint2 100,100 The second point contains in point 250,200 controlPoint1 250,100 controlPoint2 250,300 The third point contains in point 400,300 controlPoint1 400,200
Not the segments are stored but the points. Out of the points the segments are generated. See the outline method. The reason for storing it like that is that it is the points that are modified by the user and not the segments.
Définition à la ligne 331 du fichier KoPathShape.h.
KoPathShape::KoPathShape | ( | ) |
Définition à la ligne 317 du fichier KoPathShape.cpp.
Référencé par separate().
Voici le graphe d'appel pour cette fonction :
KoPathShape::~KoPathShape | ( | ) | [virtual] |
Définition à la ligne 321 du fichier KoPathShape.cpp.
void KoPathShape::paint | ( | QPainter & | painter, | |
const KoViewConverter & | converter | |||
) | [virtual] |
Paint the shape The class extending this one is responsible for painting itself. Since we do not assume the shape is square the paint must also clear its background if it will draw something transparent on top. This can be done with a method like: painter.fillRect(converter.normalToView(QRectF(QPointF(0.0,0.0), size())), background());
Or equavalent for non-square objects.
painter | used for painting the shape | |
converter | to convert between internal and view coordinates. |
Implémente KoShape.
Définition à la ligne 325 du fichier KoPathShape.cpp.
Références KoShape::applyConversion(), KoShape::background(), et outline().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::paintPoints | ( | QPainter & | painter, | |
const KoViewConverter & | converter | |||
) | [virtual] |
Définition à la ligne 417 du fichier KoPathShape.cpp.
Références KoShape::applyConversion(), handleRect(), m_subpaths, 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 :
const QPainterPath KoPathShape::outline | ( | ) | const [virtual] |
returns the outline of the shape in the form of a path. The outline returned will always have the position() of the shape as the origin, so moving the shape will not alter the result. The outline is used to draw the border on, for example.
Réimplémentée à partir de KoShape.
Définition à la ligne 442 du fichier KoPathShape.cpp.
Références KoPathPoint::CloseSubpath, KoPathPoint::controlPoint2(), m_subpaths, KoPathPoint::point(), et KoPathPoint::StartSubpath.
Référencé par boundingRect(), TestPathShape::close(), KoSegmentTypeCommand::execute(), KoSegmentSplitCommand::execute(), KoPointPropertyCommand::execute(), TestPathShape::moveTo(), TestPathShape::normalize(), normalize(), paint(), KoPathBaseCommand::repaint(), size(), KoSegmentTypeCommand::unexecute(), KoSegmentSplitCommand::unexecute(), et KoPointPropertyCommand::unexecute().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QRectF KoPathShape::boundingRect | ( | ) | const [virtual] |
Get the bounding box of the shape.
This includes the line width but not the shadow of the shape
Réimplémentée à partir de KoShape.
Définition à la ligne 507 du fichier KoPathShape.cpp.
Références KoShapeBorderModel::borderInsets(), KoInsets::bottom, KoInsets::left, KoShape::m_border, outline(), KoInsets::right, KoInsets::top, et KoShape::transformationMatrix().
Référencé par normalize().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QSizeF KoPathShape::size | ( | ) | const [virtual] |
Get the size of the shape in pt.
Réimplémentée à partir de KoShape.
Définition à la ligne 521 du fichier KoPathShape.cpp.
Références outline().
Référencé par breakAt(), KoParameterShape::moveHandle(), resize(), KoParameterShape::resize(), et reverseSubpath().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QPointF KoPathShape::position | ( | ) | const [virtual] |
Get the position of the shape in pt.
Réimplémentée à partir de KoShape.
Définition à la ligne 527 du fichier KoPathShape.cpp.
Références KoShape::position().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::resize | ( | const QSizeF & | size | ) | [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 KoShape.
Réimplémentée dans KoParameterShape.
Définition à la ligne 533 du fichier KoPathShape.cpp.
Références map(), KoShape::resize(), et size().
Référencé par KoParameterShape::resize().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoPathPoint * KoPathShape::moveTo | ( | const QPointF & | p | ) |
Start a new Subpath.
Moves the pen to p and starts a new subpath.
Définition à la ligne 545 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint2, m_subpaths, et KoPathPoint::StartSubpath.
Référencé par arcTo(), KoPathShapeFactory::createDefaultShape(), curveTo(), lineTo(), TestPathShape::moveTo(), et TestPathShape::normalize().
Voici le graphe d'appel pour cette fonction :
KoPathPoint * KoPathShape::lineTo | ( | const QPointF & | p | ) |
add a line
Adds a straight line between the last point and the given p.
Définition à la ligne 554 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint1, m_subpaths, moveTo(), et updateLast().
Référencé par TestPathShape::close(), TestPathShape::moveTo(), et TestPathShape::normalize().
Voici le graphe d'appel pour cette fonction :
KoPathPoint * KoPathShape::curveTo | ( | const QPointF & | c1, | |
const QPointF & | c2, | |||
const QPointF & | p | |||
) |
add a cubic Bezier curve.
Adds a cubic Bezier curve between the last point and the given p, using the control points specified by c1, and c2.
c1 | control point1 | |
c2 | control point2 | |
p | The endpoint of this curve-part |
Définition à la ligne 567 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint1, m_subpaths, moveTo(), KoPathPoint::setControlPoint1(), KoPathPoint::setControlPoint2(), et updateLast().
Référencé par arcTo(), et KoPathShapeFactory::createDefaultShape().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoPathPoint * KoPathShape::arcTo | ( | double | rx, | |
double | ry, | |||
double | startAngle, | |||
double | sweepAngle | |||
) |
add a arc.
Adds an arc starting at the current point. The arc will be converted to bezier curves.
rx | x radius of the ellipse | |
ry | y radius of the ellipse | |
startAngle | the angle where the arc will be started | |
sweepAngle | the length of the angle TODO add param to have angle of the ellipse |
Définition à la ligne 582 du fichier KoPathShape.cpp.
Références arcToCurve(), KoPathPoint::CloseSubpath, curveTo(), m_subpaths, moveTo(), KoPathPoint::point(), et KoPathPoint::properties().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::close | ( | ) |
close the current subpath
Définition à la ligne 669 du fichier KoPathShape.cpp.
Références closeSubpath(), et m_subpaths.
Référencé par TestPathShape::close().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::closeMerge | ( | ) |
close the current subpath
It tries to merge the last and first point of the subpath to one point and then closes the subpath. If merging is not possible as the two point are to far from each other a close will be done. TODO define a maximum distance between the two points until this is working
Définition à la ligne 678 du fichier KoPathShape.cpp.
Références closeMergeSubpath(), et m_subpaths.
Voici le graphe d'appel pour cette fonction :
void KoPathShape::update | ( | ) |
The path is updated.
This is called when a point of the path is updated. It will be used to make it possible to cache things.
Définition à la ligne 687 du fichier KoPathShape.cpp.
Références KoShape::updateTree().
Référencé par KoPathPoint::map(), KoPathPoint::setControlPoint1(), KoPathPoint::setControlPoint2(), KoPathPoint::setPoint(), et KoPathPoint::setProperties().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QPointF KoPathShape::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 dans KoParameterShape.
Définition à la ligne 692 du fichier KoPathShape.cpp.
Références boundingRect(), map(), KoShape::moveBy(), et outline().
Référencé par combine(), KoPathShapeFactory::createDefaultShape(), KoSegmentTypeCommand::execute(), KoControlPointMoveCommand::execute(), TestPathShape::normalize(), KoParameterShape::normalize(), KoPathBaseCommand::repaint(), separate(), et KoPointRemoveCommand::unexecute().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QList< KoPathPoint * > KoPathShape::pointsAt | ( | const QRectF & | r | ) |
Returns the path points within the given rectangle.
r | the rectangle the requested points are in |
Définition à la ligne 744 du fichier KoPathShape.cpp.
Références m_subpaths, et testguiform::result.
Référencé par KoPathTool::mouseMoveEvent(), et KoPathTool::selectPoints().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::insertPoint | ( | KoPathPoint * | point, | |
KoSubpath * | subpath, | |||
int | position | |||
) |
Inserts a new point into the given subpath at the specified position.
point | the point to insert | |
subpath | the subpath to insert the point into | |
position | the position within the subpath to insert the point at |
Définition à la ligne 808 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint1, et KoPathPoint::CanHaveControlPoint2.
Référencé par KoSegmentSplitCommand::execute(), et KoPointRemoveCommand::unexecute().
Voici le graphe d'appel pour cette fonction :
KoPointPosition KoPathShape::removePoint | ( | KoPathPoint * | point | ) |
Removes point from the path.
point | the point to remove |
Définition à la ligne 765 du fichier KoPathShape.cpp.
Références KoPathPoint::CloseSubpath, m_subpaths, KoPathPoint::properties(), et KoPathPoint::StartSubpath.
Référencé par closeMergeSubpath(), KoSubpathBreakCommand::unexecute(), et KoSegmentSplitCommand::unexecute().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoPathPoint * KoPathShape::splitAt | ( | const KoPathSegment & | segment, | |
double | t | |||
) |
Splits the given path segment at the specified position.
segment | the path segment to split | |
t | the segment position in interval [0..1] |
Définition à la ligne 896 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint1, KoPathPoint::CanHaveControlPoint2, KoPathPoint::HasControlPoint1, KoPathPoint::HasControlPoint2, m_subpaths, KoPathPoint::setControlPoint1(), et KoPathPoint::setControlPoint2().
Référencé par KoSegmentSplitCommand::execute().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPathShape::breakAt | ( | KoPathPoint * | breakPoint, | |
KoPathPoint *& | insertedPoint | |||
) |
Breaks the path at the given path point.
The subpath which owns the given point is broken into two subpaths, where the break point is doubled. The old breakpoint becomes an ending node in the first part and the doubled breakpoint a starting node in the second part. If the subpath is closed, it is just opened at the given position.
breakPoint | the point at which to break | |
insertedPoint | the new inserted point if any |
Définition à la ligne 967 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint1, KoPathPoint::CanHaveControlPoint2, KoPathPoint::CloseSubpath, findPoint(), m_subpaths, KoPathPoint::setProperty(), size(), KoPathPoint::StartSubpath, et KoPathPoint::unsetProperty().
Référencé par KoSubpathBreakCommand::execute(), et KoPointJoinCommand::unexecute().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPathShape::breakAt | ( | const KoPathSegment & | segment | ) |
Breaks the path at the given segment.
The subpath is broken by deleting the given segment. If the segment points are the start and end point of a single closed subpath, the subpath is simply unclosed. If the segment points are in the middle of the subpath, two new subpath are mode out of the subpath to break. So both segment points become starting/ending nodes of the new subpaths.
segment | the segment at which to break the path |
Définition à la ligne 1062 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint1, KoPathPoint::CanHaveControlPoint2, KoPathPoint::CloseSubpath, findPoint(), m_subpaths, KoPathPoint::properties(), KoShape::repaint(), KoPathPoint::setProperties(), KoPathPoint::setProperty(), size(), KoPathPoint::StartSubpath, et KoPathPoint::unsetProperty().
Voici le graphe d'appel pour cette fonction :
bool KoPathShape::joinBetween | ( | KoPathPoint * | endPoint1, | |
KoPathPoint * | endPoint2 | |||
) |
Joins the two given end subpath end points.
If the two end points are of the same subpath, the subpath is simply closed. If they belong to different subpaths, these subpaths are merged into one subpath.
endPoint1 | the first end point to join | |
endPoint2 | the second end point to join |
Définition à la ligne 1132 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint2, closeSubpath(), KoPathPoint::CloseSubpath, findPoint(), m_subpaths, reverseSubpath(), et KoPathPoint::StartSubpath.
Référencé par KoPointJoinCommand::execute(), et KoSubpathBreakCommand::unexecute().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPathShape::combine | ( | KoPathShape * | path | ) |
Combines two path by appending the data of the specified path.
path | the path to combine with |
Définition à la ligne 1189 du fichier KoPathShape.cpp.
Références m_subpaths, KoPathPoint::map(), normalize(), et KoShape::transformationMatrix().
Référencé par KoPathCombineCommand::execute().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPathShape::separate | ( | QList< KoPathShape * > & | separatedPaths | ) |
Creates separate path shapes, one for each existing subpath.
separatedPaths | the list which contains the separated path shapes |
Définition à la ligne 1214 du fichier KoPathShape.cpp.
Références KoShape::border(), KoPathShape(), m_subpaths, KoPathPoint::map(), normalize(), KoShape::setBorder(), KoShape::setShapeId(), KoShape::shapeId(), et KoShape::transformationMatrix().
Référencé par KoPathSeparateCommand::execute().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoPathPoint * KoPathShape::nextPoint | ( | KoPathPoint * | point | ) |
Returns the next point of a given path point.
Only a next point of the same subpath is returned.
point | the point to return the next point for |
Définition à la ligne 821 du fichier KoPathShape.cpp.
Références m_subpaths.
Référencé par KoPathTool::keyPressEvent(), KoSubpathBreakCommand::KoSubpathBreakCommand(), et KoSubpathBreakCommand::unexecute().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::debugPath | ( | ) |
print debug information about a the points of the path
Définition à la ligne 383 du fichier KoPathShape.cpp.
Références m_subpaths.
QPointF KoPathShape::shapeToDocument | ( | const QPointF & | point | ) | const |
transform point from shape coordinates to document coordinates
point | in shape coordinates |
Définition à la ligne 396 du fichier KoPathShape.cpp.
Références KoShape::transformationMatrix().
Référencé par KoPathPoint::boundingRect(), et KoPathTool::ActiveParameterHandle::repaint().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QRectF KoPathShape::shapeToDocument | ( | const QRectF & | rect | ) | const |
transform rect from shape coordinates to document coordinates
rect | in shape coordinates |
Définition à la ligne 401 du fichier KoPathShape.cpp.
Références KoShape::transformationMatrix().
Voici le graphe d'appel pour cette fonction :
QPointF KoPathShape::documentToShape | ( | const QPointF & | point | ) | const |
transform point from world coordinates to document coordinates
point | in document coordinates |
Définition à la ligne 406 du fichier KoPathShape.cpp.
Références KoShape::transformationMatrix().
Référencé par KoParameterChangeStrategy::handleMouseMove(), KoPathTool::mouseMoveEvent(), et KoPathTool::selectPoints().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QRectF KoPathShape::documentToShape | ( | const QRectF & | rect | ) | const |
transform rect from world coordinates to document coordinates
rect | in document coordinates |
Définition à la ligne 411 du fichier KoPathShape.cpp.
Références KoShape::transformationMatrix().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::map | ( | const QMatrix & | matrix | ) | [private] |
Définition à la ligne 708 du fichier KoPathShape.cpp.
Références m_subpaths.
Référencé par normalize(), et resize().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::updateLast | ( | KoPathPoint ** | lastPoint | ) | [private] |
Définition à la ligne 721 du fichier KoPathShape.cpp.
Références KoPointGroup::add(), KoPathPoint::CanHaveControlPoint2, KoPathPoint::CloseSubpath, m_subpaths, KoPathPoint::Normal, et KoPathPoint::setProperties().
Référencé par curveTo(), et lineTo().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoPathShape::closeSubpath | ( | KoSubpath * | subpath | ) | [private] |
closes specified subpath
Définition à la ligne 1256 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint1, KoPathPoint::CanHaveControlPoint2, KoPathPoint::CloseSubpath, KoPathPoint::properties(), et KoPathPoint::setProperties().
Référencé par close(), closeMergeSubpath(), et joinBetween().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoPathShape::closeMergeSubpath | ( | KoSubpath * | subpath | ) | [private] |
close-merges specified subpath
Définition à la ligne 1267 du fichier KoPathShape.cpp.
Références KoPathPoint::activeControlPoint1(), KoPathPoint::CanHaveControlPoint1, KoPathPoint::CanHaveControlPoint2, closeSubpath(), KoPathPoint::CloseSubpath, KoPathPoint::controlPoint1(), KoPathPoint::point(), KoPathPoint::properties(), removePoint(), KoPathPoint::setControlPoint1(), et KoPathPoint::setProperties().
Référencé par closeMerge().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoPointPosition KoPathShape::findPoint | ( | KoPathPoint * | point | ) | [private] |
return subpath and position of specified point
Définition à la ligne 1244 du fichier KoPathShape.cpp.
Références m_subpaths.
Référencé par breakAt(), et joinBetween().
Voici le graphe d'appel pour cette fonction :
void KoPathShape::reverseSubpath | ( | KoSubpath & | subpath | ) | [private] |
reverses specified subpath (last point becomes first point)
Définition à la ligne 1292 du fichier KoPathShape.cpp.
Références KoPathPoint::CloseSubpath, KoPathPoint::properties(), KoPathPoint::setProperties(), size(), et KoPathPoint::StartSubpath.
Référencé par joinBetween().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoPathShape::paintDebug | ( | QPainter & | painter | ) | [private] |
Définition à la ligne 336 du fichier KoPathShape.cpp.
Références KoPathPoint::CanHaveControlPoint1, KoPathPoint::CanHaveControlPoint2, KoPathPoint::group(), m_subpaths, KoPathPoint::point(), et KoPathPoint::properties().
Voici le graphe d'appel pour cette fonction :
QRectF KoPathShape::handleRect | ( | const QPointF & | p | ) | const [protected] |
Définition à la ligne 436 du fichier KoPathShape.cpp.
Référencé par KoParameterShape::paintHandle(), KoParameterShape::paintHandles(), et paintPoints().
Voici le graphe d'appel pour cette fonction :
int KoPathShape::arcToCurve | ( | double | rx, | |
double | ry, | |||
double | startAngle, | |||
double | sweepAngle, | |||
const QPointF & | offset, | |||
QPointF * | curvePoints | |||
) | const [protected] |
add a arc.
Adds an arc starting at the current point. The arc will be converted to bezier curves.
rx | x radius of the ellipse | |
ry | y radius of the ellipse | |
startAngle | the angle where the arc will be started | |
sweepAngle | the length of the angle TODO add param to have angle of the ellipse | |
offset | to the first point in the arc | |
curvePoints | a array which take the cuve points, pass a 'QPointF curvePoins[12]'; |
Définition à la ligne 607 du fichier KoPathShape.cpp.
Référencé par arcTo().
Voici le graphe d'appel pour cette fonction :
KoSubpathList KoPathShape::m_subpaths [protected] |
Définition à la ligne 632 du fichier KoPathShape.h.
Référencé par arcTo(), breakAt(), close(), closeMerge(), combine(), curveTo(), debugPath(), findPoint(), joinBetween(), lineTo(), map(), moveTo(), nextPoint(), outline(), paintDebug(), paintPoints(), pointsAt(), removePoint(), separate(), splitAt(), et updateLast().