the Edge drawing on screen. long explanation here... More...
#include <OrientedEdgeItem.h>
Public Types | |
| enum | { Type = UserType + 3 } |
Public Slots | |
| void | remove () |
| void | updatePos () |
| void | updateAttributes () |
Public Member Functions | |
| OrientedEdgeItem (Edge *edge, QGraphicsItem *parent=0) | |
| virtual | ~OrientedEdgeItem () |
| int | type () const |
| Edge * | edge () |
Protected Member Functions | |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
the Edge drawing on screen. long explanation here...
Definition at line 34 of file OrientedEdgeItem.h.
| anonymous enum |
| OrientedEdgeItem::OrientedEdgeItem | ( | Edge * | edge, | |
| QGraphicsItem * | parent = 0 | |||
| ) | [explicit] |
default constructor
| node | the libgraph::Node that this item will interact to.
|
Definition at line 42 of file OrientedEdgeItem.cpp.
| OrientedEdgeItem::~OrientedEdgeItem | ( | ) | [virtual] |
Definition at line 57 of file OrientedEdgeItem.cpp.
| Edge* OrientedEdgeItem::edge | ( | ) | [inline] |
Gets the edge of the node
Definition at line 55 of file OrientedEdgeItem.h.
| void OrientedEdgeItem::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
when there's a mouse click on the node, this method is invocked
| event | the mouse object |
Definition at line 168 of file OrientedEdgeItem.cpp.
| void OrientedEdgeItem::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
when the mouse is released, this method is invocked
| event | the mouse object |
Definition at line 172 of file OrientedEdgeItem.cpp.
| void OrientedEdgeItem::paint | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget = 0 | |||
| ) | [protected] |
Definition at line 257 of file OrientedEdgeItem.cpp.
| void OrientedEdgeItem::remove | ( | ) | [slot] |
Definition at line 176 of file OrientedEdgeItem.cpp.
| int OrientedEdgeItem::type | ( | ) | const [inline] |
gets the type of the item
Definition at line 49 of file OrientedEdgeItem.h.
| void OrientedEdgeItem::updateAttributes | ( | ) | [slot] |
Definition at line 202 of file OrientedEdgeItem.cpp.
| void OrientedEdgeItem::updatePos | ( | ) | [slot] |
Definition at line 182 of file OrientedEdgeItem.cpp.
1.6.3