Connector Class Reference

#include <qcalcGraphicElements.h>

List of all members.

Public Types

enum  { Type = TYPE_TIMECONNECTOR }

Public Member Functions

 Connector (OutSlot *from, InSlot *to=NULL, const QPointF &toPos=QPointF(), QGraphicsItem *parent=NULL)
virtual ~Connector ()
void updatePosition ()
void setEnd (const QPointF &toPos)
void setEnd (InSlot *to)
OutSlotgetFromSlot ()
InSlotgetToSlot ()
QRectF boundingRect () const
QPainterPath shape () const
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=NULL)
virtual int type () const

Protected Attributes

QPointF fromPos
QPointF toPos
OutSlotfrom
InSlotto
QPolygonF arrowHead


Member Enumeration Documentation

anonymous enum

Enumerator:
Type 


Constructor & Destructor Documentation

Connector::Connector ( OutSlot from,
InSlot to = NULL,
const QPointF &  toPos = QPointF(),
QGraphicsItem *  parent = NULL 
)

Connector::~Connector (  )  [virtual]


Member Function Documentation

QRectF Connector::boundingRect (  )  const

OutSlot* Connector::getFromSlot (  )  [inline]

InSlot* Connector::getToSlot (  )  [inline]

void Connector::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = NULL 
) [virtual]

void Connector::setEnd ( InSlot to  ) 

void Connector::setEnd ( const QPointF &  toPos  ) 

QPainterPath Connector::shape (  )  const

virtual int Connector::type (  )  const [inline, virtual]

void Connector::updatePosition (  ) 


Member Data Documentation

QPolygonF Connector::arrowHead [protected]

OutSlot* Connector::from [protected]

QPointF Connector::fromPos [protected]

InSlot* Connector::to [protected]

QPointF Connector::toPos [protected]


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

Generated on Fri Jan 8 12:51:27 2010 for QSAS by  doxygen 1.5.7