karbon
VSubpath Class Reference
#include <vpath.h>
Inheritance diagram for VSubpath:
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.
Member Function Documentation
void VSubpath::accept |
( |
VVisitor & |
visitor |
) |
[virtual] |
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: