karbon

VSubpath Class Reference

#include <vpath.h>

Inheritance diagram for VSubpath:

VObject List of all members.

Detailed Description

VSubpath provides a sophisticated list of VSegment.

Noted: it also may contain segments which are marked "deleted". If you are not interested in those undo/redo housholding data, please always use a VSubpathIterator to access segments.

Definition at line 42 of file vpath.h.


Public Member Functions

 VSubpath (VObject *parent)
 VSubpath (const VSubpath &list)
 VSubpath (const VSegment &segment)
virtual ~VSubpath ()
const KoPoint & currentPoint () const
bool moveTo (const KoPoint &p)
bool lineTo (const KoPoint &p)
bool curveTo (const KoPoint &p1, const KoPoint &p2, const KoPoint &p3)
bool curve1To (const KoPoint &p2, const KoPoint &p3)
bool curve2To (const KoPoint &p1, const KoPoint &p3)
bool arcTo (const KoPoint &p1, const KoPoint &p2, const double r)
bool isClosed () const
void close ()
bool pointIsInside (const KoPoint &p) const
bool intersects (const VSegment &segment) const
bool counterClockwise () const
void revert ()
bool isEmpty () const
virtual const KoRect & boundingBox () const
virtual void save (QDomElement &) const
virtual void load (const QDomElement &element)
void saveSvgPath (QString &) const
virtual VSubpathclone () const
virtual void accept (VVisitor &visitor)
VSubpathoperator= (const VSubpath &list)
bool insert (const VSegment *segment)
bool insert (uint i, const VSegment *segment)
void prepend (const VSegment *segment)
void append (const VSegment *segment)
void clear ()
uint count () const
VSegmentcurrent () const
VSegmentgetFirst () const
VSegmentgetLast () const
VSegmentfirst ()
VSegmentlast ()
VSegmentprev ()
VSegmentnext ()

Friends

class VSubpathIterator

Member Function Documentation

void VSubpath::accept VVisitor visitor  )  [virtual]
 

Accept a VVisitor.

Reimplemented from VObject.

Definition at line 775 of file vpath.cc.

const KoRect & VSubpath::boundingBox  )  const [virtual]
 

Calculates the tightest bounding box around the object.

Returns:
the bounding box.

Reimplemented from VObject.

Definition at line 674 of file vpath.cc.

VSubpath * VSubpath::clone  )  const [virtual]
 

Create an exact copy of this object.

Returns:
the exact object copy

Implements VObject.

Definition at line 698 of file vpath.cc.

bool VSubpath::counterClockwise  )  const
 

Returns false if segmentlist is oriented clockwise.

Definition at line 590 of file vpath.cc.

bool VSubpath::intersects const VSegment segment  )  const
 

Returns true if the segment intersects this path.

Definition at line 562 of file vpath.cc.

bool VSubpath::isEmpty  )  const [inline]
 

Returns true if the current path is "emtpy".

That means that it has zero or just one ( == "begin") segment.

Definition at line 100 of file vpath.h.

void VSubpath::load const QDomElement &  element  )  [virtual]
 

Load this object's state from xml and initialize this object accordingly.

Parameters:
element the DOM element from which the attributes are read

Reimplemented from VObject.

Definition at line 751 of file vpath.cc.

bool VSubpath::pointIsInside const KoPoint &  p  )  const
 

Returns true if point p is located inside the path.

The winding number test is used.

Definition at line 416 of file vpath.cc.

void VSubpath::revert  ) 
 

Reverts the winding orientation.

Definition at line 650 of file vpath.cc.

virtual void VSubpath::save QDomElement &   )  const [inline, virtual]
 

Save this object's state to xml.

Parameters:
element the DOM element to which the attributes are saved

Reimplemented from VObject.

Definition at line 109 of file vpath.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys