Developer Documentation
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. More...
 

Public Member Functions

 ConnectionPoint (ElementInOut *_e, QGraphicsItem *_parent)
 Constructor. More...
 
 ~ConnectionPoint ()
 Destructor. More...
 
ElementInOutinOut () 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

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

Member Enumeration Documentation

◆ State

State of the connection point.

Definition at line 75 of file connectionPoint.hh.

Constructor & Destructor Documentation

◆ ConnectionPoint()

VSI::ConnectionPoint::ConnectionPoint ( ElementInOut _e,
QGraphicsItem *  _parent 
)

Constructor.

Definition at line 80 of file connectionPoint.cc.

◆ ~ConnectionPoint()

VSI::ConnectionPoint::~ConnectionPoint ( )

Destructor.

Definition at line 95 of file connectionPoint.cc.

Member Function Documentation

◆ connectPos()

QPointF VSI::ConnectionPoint::connectPos ( )

Position for connections.

Definition at line 141 of file connectionPoint.cc.

◆ hoverEnterEvent()

void VSI::ConnectionPoint::hoverEnterEvent ( QGraphicsSceneHoverEvent *  _event)
protected

Definition at line 190 of file connectionPoint.cc.

◆ hoverLeaveEvent()

void VSI::ConnectionPoint::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  _event)
protected

Definition at line 209 of file connectionPoint.cc.

◆ inOut()

ElementInOut * VSI::ConnectionPoint::inOut ( ) const
inline

Input/output element.

Definition at line 91 of file connectionPoint.hh.

◆ mousePressEvent()

void VSI::ConnectionPoint::mousePressEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Definition at line 131 of file connectionPoint.cc.

◆ paint()

void VSI::ConnectionPoint::paint ( QPainter *  _painter,
const QStyleOptionGraphicsItem *  _option,
QWidget *  _widget = 0 
)

Definition at line 237 of file connectionPoint.cc.

◆ setGeometry()

void VSI::ConnectionPoint::setGeometry ( const QRectF &  _rect)
virtual

Sets the geometry.

Definition at line 102 of file connectionPoint.cc.

◆ setState()

void VSI::ConnectionPoint::setState ( State  _state)

sets the state

Definition at line 153 of file connectionPoint.cc.

◆ setWidth()

void VSI::ConnectionPoint::setWidth ( int  _width)

Sets the diameter.

Definition at line 228 of file connectionPoint.cc.

◆ sizeHint()

QSizeF VSI::ConnectionPoint::sizeHint ( Qt::SizeHint  _which,
const QSizeF &  _constraint = QSizeF() 
) const
protectedvirtual

Definition at line 112 of file connectionPoint.cc.

Member Data Documentation

◆ inout_

ElementInOut* VSI::ConnectionPoint::inout_
private

Definition at line 122 of file connectionPoint.hh.

◆ width_

int VSI::ConnectionPoint::width_
private

Definition at line 124 of file connectionPoint.hh.


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