OrientedEdgeItem Class Reference

the Edge drawing on screen. long explanation here... More...

#include <OrientedEdgeItem.h>

Inheritance diagram for OrientedEdgeItem:
QObject

List of all members.

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
Edgeedge ()

Protected Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event)
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)

Detailed Description

the Edge drawing on screen. long explanation here...

Definition at line 34 of file OrientedEdgeItem.h.


Member Enumeration Documentation

anonymous enum

The type of the item

Enumerator:
Type 

Definition at line 44 of file OrientedEdgeItem.h.


Constructor & Destructor Documentation

OrientedEdgeItem::OrientedEdgeItem ( Edge edge,
QGraphicsItem *  parent = 0 
) [explicit]

default constructor

Parameters:
node the libgraph::Node that this item will interact to.
Parameters:
parent the QGraphicsITem that this Item belongs to.

Definition at line 42 of file OrientedEdgeItem.cpp.

OrientedEdgeItem::~OrientedEdgeItem (  )  [virtual]

Definition at line 57 of file OrientedEdgeItem.cpp.


Member Function Documentation

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

Parameters:
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

Parameters:
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

Returns:
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.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:41 2010 for Gluon by  doxygen 1.6.3