Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
VSI::ConnectionPoint Class Reference

#include <Plugin-VSI/scene/connectionPoint.hh>

Inheritance diagram for VSI::ConnectionPoint:

Public Types

enum  State {
  NoValue = 0, Optional = 1, RuntimeInput = 2, UserInput = 3,
  Connected = 4, OutputNotConnected = 5
 State of the connection point.

Public Member Functions

 ConnectionPoint (ElementInOut *_e, QGraphicsItem *_parent)
 ~ConnectionPoint ()
ElementInOutinOut () const
 Input/output element.
QPointF connectPos ()
 Position for connections.
virtual void setGeometry (const QRectF &_rect)
 Sets the geometry.
void setState (State _state)
 sets the state
void setWidth (int _width)
 Sets the diameter.
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

int width_

Detailed Description

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 73 of file connectionPoint.hh.

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