libs/flake

KoPointGroup Class Reference

A KoPointGroup represents points in a path that should be treated as one. More...

#include <KoPointGroup.h>

List of all members.

Public Member Functions

 KoPointGroup ()
 ~KoPointGroup ()
void add (KoPathPoint *point)
void map (const QMatrix &matrix)
const QSet< KoPathPoint * > & points () const
void remove (KoPathPoint *point)

Detailed Description

A KoPointGroup represents points in a path that should be treated as one.

In svg it is possible when you use a close and the create a new subpath not using a moveTo that the new subpath starts at the same point as the last subpath. As every point can only have 2 control points we have this class to group points together which should be handled as one in e.g. a move.

Definition at line 34 of file KoPointGroup.h.


Constructor & Destructor Documentation

KoPointGroup::KoPointGroup (  )  [inline]

Definition at line 37 of file KoPointGroup.h.

KoPointGroup::~KoPointGroup (  )  [inline]

Definition at line 38 of file KoPointGroup.h.


Member Function Documentation

void KoPointGroup::add ( KoPathPoint point  ) 

Add a point to the group.

Definition at line 25 of file KoPointGroup.cpp.

void KoPointGroup::map ( const QMatrix matrix  ) 

Definition at line 43 of file KoPointGroup.cpp.

const QSet<KoPathPoint *>& KoPointGroup::points (  )  const [inline]

get The point belonging to the group

Returns:
all points of the group

Definition at line 60 of file KoPointGroup.h.

void KoPointGroup::remove ( KoPathPoint point  ) 

Remove a point from the group.

This also remove the pointer to the group in the point. When the second last point is removed from the group, the group removes also the last point and deletes itself.

Definition at line 31 of file KoPointGroup.cpp.


The documentation for this class was generated from the following files: