Public Types | Public Member Functions | Protected Member Functions | List of all members
GraphicsLinkItem Class Reference
Inheritance diagram for GraphicsLinkItem:
Inheritance graph
Collaboration diagram for GraphicsLinkItem:
Collaboration graph

Public Types

enum  { Type = UserType + 3 }
enum  Configuration { Step, S_Shape, Loop }

Public Member Functions

 GraphicsLinkItem (QGraphicsItem *parent, ARCSConnection *c=0)
 ~GraphicsLinkItem ()
int type () const
ARCSConnectiongetConnection ()
void setSource (GraphicsPortItem *s)
void setDestination (GraphicsPortItem *d)
GraphicsPortItemgetSource ()
GraphicsPortItemgetDestination ()
void setCurrentPoint (QPointF p)
void markForDeletion ()
bool isFinalized ()
void finalize ()
void connectGrips ()
void connectGrips (QPointF orig, QPointF dest)
void redraw (bool isSource=true)
virtual QPainterPath shape () const

Protected Member Functions

virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *)
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *)
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)

Detailed Description

Definition at line 59 of file graphicslinkitem.h.

Member Enumeration Documentation

A link can have three configurations : –+ -+ +-> -+ | | | | +-> +–+ +---—+ | +->

Definition at line 77 of file graphicslinkitem.h.

Constructor & Destructor Documentation

GraphicsLinkItem::~GraphicsLinkItem ( )
we have a possible problem: should a link always delete its counterpart ? Yes if it is the user intent, no if it was a cleanup operation.

Definition at line 89 of file graphicslinkitem.cpp.

The documentation for this class was generated from the following files: