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

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

Inheritance diagram for VSI::Connection:

Public Member Functions

 Connection (ConnectionPoint *_start, QGraphicsScene *_scene)
 Constructor.
 
 Connection (ConnectionPoint *_start, ConnectionPoint *_end, QGraphicsScene *_scene)
 Constructor.
 
 ~Connection ()
 Destructor.
 
void updatePositions ()
 called to update position on element movement
 
ElementInputinput ()
 Input of this connection.
 
ElementOutputoutput ()
 Output of this connection.
 
const QPolygonF & way () const
 way of the connection
 
void invalidate ()
 invalidate way
 

Protected Member Functions

void mouseMoveEvent (QGraphicsSceneMouseEvent *_event)
 
void mousePressEvent (QGraphicsSceneMouseEvent *_event)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event)
 

Private Member Functions

ConnectionPointcPointAt (QPointF _pnt)
 
void updateLine ()
 

Private Attributes

QGraphicsItem * elementArea_
 
GraphicsScenescene_
 
ConnectionPointp1_
 
ConnectionPointp2_
 
ConnectionPointold_
 
QPolygonF way_
 

Friends

class GraphicsScene
 

Detailed Description

Represents a connection between input and output

Definition at line 72 of file connection.hh.


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