kivio
KivioPoint Class Reference
List of all members.Detailed Description
Definition at line 24 of file kivio_point.h.
Public Types | |
enum | KivioPointType { kptNone = 0, kptNormal, kptBezier, kptArc, kptLast } |
Public Member Functions | |
KivioPoint () | |
KivioPoint (const KivioPoint &) | |
KivioPoint (double, double, KivioPointType pt=kptNormal) | |
virtual | ~KivioPoint () |
void | copyInto (KivioPoint *) const |
bool | loadXML (const QDomElement &) |
QDomElement | saveXML (QDomDocument &) |
double | x () const |
double | y () const |
KivioPointType | pointType () const |
void | setX (double newX) |
void | setY (double newY) |
void | setPointType (KivioPointType pt) |
void | set (double newX, double newY, KivioPointType pt=kptNormal) |
void | set (const KivioPoint &p, KivioPointType pt=kptNormal) |
void | moveBy (double dx, double dy) |
void | moveBy (const KivioPoint &p) |
Static Public Member Functions | |
static KivioPoint::KivioPointType | pointTypeFromString (const QString &) |
Protected Attributes | |
double | m_x |
double | m_y |
KivioPointType | m_pointType |
Constructor & Destructor Documentation
KivioPoint::KivioPoint | ( | ) |
Constructor.
Sets this point to (0,0) and of type normal.
Definition at line 40 of file kivio_point.cpp.
KivioPoint::KivioPoint | ( | const KivioPoint & | copy | ) |
Copy constructor.
- Parameters:
-
copy The KivioPoint to make a copy of.
Definition at line 55 of file kivio_point.cpp.
KivioPoint::KivioPoint | ( | double | newX, | |
double | newY, | |||
KivioPointType | pt = kptNormal | |||
) |
Alternate constructor.
- Parameters:
-
newX The x value of the point newY The y value of the point pt The point type
Definition at line 72 of file kivio_point.cpp.
KivioPoint::~KivioPoint | ( | ) | [virtual] |
Member Function Documentation
void KivioPoint::copyInto | ( | KivioPoint * | pTarget | ) | const |
Copies this object's data into pTarget.
- Parameters:
-
pTarget The destination of the copy
Definition at line 93 of file kivio_point.cpp.
bool KivioPoint::loadXML | ( | const QDomElement & | e | ) |
Load this object from an XML element.
- Parameters:
-
e The element to load from
- Returns:
- true on success, false on failure.
Definition at line 138 of file kivio_point.cpp.
QDomElement KivioPoint::saveXML | ( | QDomDocument & | doc | ) |
Save this object to an XML element.
- Parameters:
-
doc The document we are saving to
- Returns:
- QDomElement
Definition at line 162 of file kivio_point.cpp.
KivioPoint::KivioPointType KivioPoint::pointTypeFromString | ( | const QString & | str | ) | [static] |
Figure out the KivioPointType from a string.
- Parameters:
-
str The string to search with
Definition at line 112 of file kivio_point.cpp.
The documentation for this class was generated from the following files: