kivio
KivioArrowHead Class ReferenceList of all members.
Detailed Description
Definition at line 86 of file kivio_arrowhead.h.
|
Public Member Functions |
| KivioArrowHead () |
virtual | ~KivioArrowHead () |
void | setType (int) |
int | type () |
float | cut () |
void | setWidth (float f) |
void | setLength (float f) |
void | setSize (float f1, float f2) |
float | width () |
float | length () |
void | paint (KivioPainter *, float, float, float, float, KoZoomHandler *zoomHandler) |
bool | loadXML (const QDomElement &) |
QDomElement | saveXML (QDomDocument &) |
Protected Member Functions |
void | paintArrowLine (KivioArrowHeadData *) |
void | paintArrowTriangle (KivioArrowHeadData *, bool) |
void | paintDoubleTriangle (KivioArrowHeadData *, bool) |
void | paintForwardSlash (KivioArrowHeadData *) |
void | paintBackSlash (KivioArrowHeadData *) |
void | paintPipe (KivioArrowHeadData *) |
void | paintDiamond (KivioArrowHeadData *, bool) |
void | paintCircle (KivioArrowHeadData *, bool) |
void | paintCrowFoot (KivioArrowHeadData *) |
void | paintFork (KivioArrowHeadData *) |
void | paintCrowFootPipe (KivioArrowHeadData *) |
void | paintMidForwardSlash (KivioArrowHeadData *) |
void | paintMidBackSlash (KivioArrowHeadData *) |
void | paintMidPipe (KivioArrowHeadData *) |
Protected Attributes |
float | m_cut |
float | m_w |
float | m_l |
int | m_type |
Member Function Documentation
void KivioArrowHead::paint |
( |
KivioPainter * |
painter, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
vecX, |
|
|
float |
vecY, |
|
|
KoZoomHandler * |
zoomHandler |
|
) |
|
|
|
Paints the arrow head at a given point, direction, and scale.
- Parameters:
-
| painter | The painter object to draw with |
| x | The x position of the arrow head (the point) |
| y | The y position of the arrow head (the point) |
| vecX | The X component of the negative direction vector |
| vecY | The Y component of the negative direction vector |
| zoomHandler | The zoom handler to use to scale |
The (x,y) should be the vertex representing the endpoint of the line. The <vecX, vecY> is a vector pointing to (x,y) (in the direction of the arrow head).
Definition at line 130 of file kivio_arrowhead.cpp. |
Member Data Documentation
|
The cut is the distance 'into' the arrowhead the line should continue.
Definition at line 92 of file kivio_arrowhead.h. |
The documentation for this class was generated from the following files:
|