Référence de la classe KoPathShape

This is the base for all graphical objects. Plus de détails...

#include <KoPathShape.h>

Graphe d'héritage de KoPathShape:

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

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.
KoPathPointmoveTo (const QPointF &p)
 Start a new Subpath.
KoPathPointlineTo (const QPointF &p)
 add a line
KoPathPointcurveTo (const QPointF &c1, const QPointF &c2, const QPointF &p)
 add a cubic Bezier curve.
KoPathPointarcTo (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.
KoPathPointsplitAt (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.
KoPathPointnextPoint (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)

Description détaillée

This is the base for all graphical objects.

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.


Documentation des contructeurs et destructeur

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.


Documentation des fonctions membres

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.

Paramètres:
painter used for painting the shape
converter to convert between internal and view coordinates.
Voir également:
applyConversion()

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.

Renvoie:
the outline of the shape in the form of a path.

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

Renvoie:
the bounding box 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.

Renvoie:
the size of the shape as set by resize()

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.

Renvoie:
the position of the shape

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.

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

Renvoie:
The newly created point

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.

Renvoie:
The newly created point

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.

Paramètres:
c1 control point1
c2 control point2
p The endpoint of this curve-part
Renvoie:
The newly created point

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.

Paramètres:
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
Renvoie:
The newly created point

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.

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

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.

Paramètres:
r the rectangle the requested points are in
Renvoie:
list of points within the rectangle

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.

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

Paramètres:
point the point to remove
Renvoie:
A QPair of the KoSubpath and the position in the subpath the removed point had

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.

Paramètres:
segment the path segment to split
t the segment position in interval [0..1]
Renvoie:
the inserted path point or 0 if splitting failed

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.

Paramètres:
breakPoint the point at which to break
insertedPoint the new inserted point if any
Renvoie:
true if the subpath was broken, else false

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.

Paramètres:
segment the segment at which to break the path
Renvoie:
true if breaking the path was successful, else false

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.

Paramètres:
endPoint1 the first end point to join
endPoint2 the second end point to join
Renvoie:
true if the point could be joined, else false

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.

Paramètres:
path the path to combine with
Renvoie:
true if combining was successful, else false

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.

Paramètres:
separatedPaths the list which contains the separated path shapes
Renvoie:
true if separating the path was successful, else false

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.

Paramètres:
point the point to return the next point for
Renvoie:
the next point, or null if no next point exists

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

Paramètres:
point in shape coordinates
Renvoie:
point in document 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

Paramètres:
rect in shape coordinates
Renvoie:
rect in document 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

Paramètres:
point in document coordinates
Renvoie:
point in shape 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

Paramètres:
rect in document coordinates
Renvoie:
rect in shape 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.

Paramètres:
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]';
Renvoie:
number of points created by the curve

Définition à la ligne 607 du fichier KoPathShape.cpp.

Référencé par arcTo().

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

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


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