Developer Documentation
|
#include <Plugin-VSI/scene/connectionPoint.hh>
Public Types | |
enum | State { NoValue = 0 , Optional = 1 , RuntimeInput = 2 , UserInput = 3 , Connected = 4 , OutputNotConnected = 5 } |
State of the connection point. More... | |
Public Member Functions | |
ConnectionPoint (ElementInOut *_e, QGraphicsItem *_parent) | |
Constructor. More... | |
~ConnectionPoint () | |
Destructor. More... | |
ElementInOut * | inOut () const |
Input/output element. More... | |
QPointF | connectPos () |
Position for connections. More... | |
virtual void | setGeometry (const QRectF &_rect) |
Sets the geometry. More... | |
void | setState (State _state) |
sets the state More... | |
void | setWidth (int _width) |
Sets the diameter. More... | |
void | paint (QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget=0) |
Protected Member Functions | |
void | mousePressEvent (QGraphicsSceneMouseEvent *_event) |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *_event) |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *_event) |
virtual QSizeF | sizeHint (Qt::SizeHint _which, const QSizeF &_constraint=QSizeF()) const |
Private Attributes | |
ElementInOut * | inout_ |
int | width_ |
Widget that represents the point where connection can be connected to/from. It also displays the current status of its input/output in a different color
Definition at line 67 of file connectionPoint.hh.
State of the connection point.
Definition at line 75 of file connectionPoint.hh.
VSI::ConnectionPoint::ConnectionPoint | ( | ElementInOut * | _e, |
QGraphicsItem * | _parent | ||
) |
Constructor.
Definition at line 80 of file connectionPoint.cc.
VSI::ConnectionPoint::~ConnectionPoint | ( | ) |
Destructor.
Definition at line 95 of file connectionPoint.cc.
QPointF VSI::ConnectionPoint::connectPos | ( | ) |
Position for connections.
Definition at line 141 of file connectionPoint.cc.
|
protected |
Definition at line 190 of file connectionPoint.cc.
|
protected |
Definition at line 209 of file connectionPoint.cc.
|
inline |
Input/output element.
Definition at line 91 of file connectionPoint.hh.
|
protected |
Definition at line 131 of file connectionPoint.cc.
void VSI::ConnectionPoint::paint | ( | QPainter * | _painter, |
const QStyleOptionGraphicsItem * | _option, | ||
QWidget * | _widget = 0 |
||
) |
Definition at line 237 of file connectionPoint.cc.
|
virtual |
Sets the geometry.
Definition at line 102 of file connectionPoint.cc.
void VSI::ConnectionPoint::setState | ( | State | _state | ) |
sets the state
Definition at line 153 of file connectionPoint.cc.
void VSI::ConnectionPoint::setWidth | ( | int | _width | ) |
Sets the diameter.
Definition at line 228 of file connectionPoint.cc.
|
protectedvirtual |
Definition at line 112 of file connectionPoint.cc.
|
private |
Definition at line 122 of file connectionPoint.hh.
|
private |
Definition at line 124 of file connectionPoint.hh.