35 #ifndef OPENMS_VISUAL_TOPPASEDGE_H
36 #define OPENMS_VISUAL_TOPPASEDGE_H
38 #include <OpenMS/config.h>
40 #include <QtGui/QGraphicsItem>
45 class TOPPASToolVertex;
46 class TOPPASInputFileListVertex;
92 QRectF boundingRect()
const;
94 QPainterPath shape()
const;
96 void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget);
98 QPointF startPos()
const;
100 QPointF endPos()
const;
102 void setHoverPos(
const QPointF & pos);
112 void prepareResize();
114 void setColor(
const QColor & color);
116 EdgeStatus getEdgeStatus();
118 void setSourceOutParam(
int out);
120 int getSourceOutParam();
122 QString getSourceOutParamName();
124 void setTargetInParam(
int in);
126 int getTargetInParam();
128 QString getTargetInParamName();
134 void showIOMappingDialog();
139 void sourceHasChanged();
144 void somethingHasChanged();
150 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * e);
151 void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
161 QPointF borderPoint_(
bool atTargetVertex =
true)
const;
164 QPointF nearestPoint_(
const QPointF & origin,
const QList<QPointF> & list)
const;
Definition: TOPPASEdge.h:76
QPointF hover_pos_
Position of hovering end while edge is being created.
Definition: TOPPASEdge.h:170
The base class of the different vertex classes.
Definition: TOPPASVertex.h:98
TOPPASVertex * from_
Pointer to the source of this edge.
Definition: TOPPASEdge.h:166
Definition: TOPPASEdge.h:72
An edge representing a data flow in TOPPAS.
Definition: TOPPASEdge.h:58
Definition: TOPPASEdge.h:69
int source_out_param_
The source output parameter index.
Definition: TOPPASEdge.h:174
QColor color_
The color.
Definition: TOPPASEdge.h:172
EdgeStatus
The status of this edge.
Definition: TOPPASEdge.h:67
Definition: TOPPASEdge.h:71
TOPPASVertex * to_
Pointer to the target of this edge.
Definition: TOPPASEdge.h:168
Definition: TOPPASEdge.h:74
Definition: TOPPASEdge.h:70
int target_in_param_
The target input parameter index.
Definition: TOPPASEdge.h:176
Definition: TOPPASEdge.h:75
Definition: TOPPASEdge.h:73