SourceForge Logo
Public Implementation of a Graph Algorithm
Library and Editor

H. de Fraysseix      P. Ossona de Mendez

EdgeItem Class Reference

Collaboration diagram for EdgeItem:

Collaboration graph

List of all members.

Detailed Description

An edge is represented by two EdgeItem (corresponding to its lower and upper part) and an ArrowItem.

Public Member Functions

Public Attributes

Private Attributes

Constructor & Destructor Documentation

EdgeItem ( GraphWidget g,
tedge ee,
double  x_from,
double  y_from,
double  x_to,
double  y_to,
bool  _lower,
NodeItem node 

Member Function Documentation

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 

void SetColor ( QColor  c,
bool  both = true 

void SetColors ( QColor  c1,
QColor  c2 

void setFromPoint ( double  x,
double  y 

void setToPoint ( double  x,
double  y 

int type (  )  const [inline]

QRectF boundingRect (  )  const

Member Data Documentation

tedge e

EdgeItem* opp

ArrowItem* arrow

NodeItem* node

bool lower

GraphWidget* gwp [private]

Generated on Thu Jan 31 16:51:46 2008 for Pigale by  doxygen 1.5.4