35 #ifndef OPENMS_VISUAL_TOPPASEDGE_H
36 #define OPENMS_VISUAL_TOPPASEDGE_H
41 #include <QtGui/QGraphicsItem>
46 class TOPPASToolVertex;
47 class TOPPASInputFileListVertex;
93 QRectF boundingRect()
const;
95 QPainterPath shape()
const;
97 void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget);
99 QPointF startPos()
const;
101 QPointF endPos()
const;
103 void setHoverPos(
const QPointF & pos);
113 void prepareResize();
115 void setColor(
const QColor & color);
117 EdgeStatus getEdgeStatus();
119 void setSourceOutParam(
int out);
121 int getSourceOutParam();
123 QString getSourceOutParamName();
125 void setTargetInParam(
int in);
127 int getTargetInParam();
129 QString getTargetInParamName();
135 void showIOMappingDialog();
140 void sourceHasChanged();
145 void somethingHasChanged();
151 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * e);
152 void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
162 QPointF borderPoint_(
bool atTargetVertex =
true)
const;
165 QPointF nearestPoint_(
const QPointF & origin,
const QList<QPointF> & list)
const;
QPointF hover_pos_
Position of hovering end while edge is being created.
Definition: TOPPASEdge.h:171
Definition: TOPPASEdge.h:76
The base class of the different vertex classes.
Definition: TOPPASVertex.h:101
TOPPASVertex * from_
Pointer to the source of this edge.
Definition: TOPPASEdge.h:167
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
An edge representing a data flow in TOPPAS.
Definition: TOPPASEdge.h:59
Definition: TOPPASEdge.h:77
EdgeStatus
The status of this edge.
Definition: TOPPASEdge.h:68
Definition: TOPPASEdge.h:73
int source_out_param_
The source output parameter index.
Definition: TOPPASEdge.h:175
QColor color_
The color.
Definition: TOPPASEdge.h:173
Definition: TOPPASEdge.h:72
Definition: TOPPASEdge.h:70
Definition: TOPPASEdge.h:71
TOPPASVertex * to_
Pointer to the target of this edge.
Definition: TOPPASEdge.h:169
Definition: TOPPASEdge.h:75
int target_in_param_
The target input parameter index.
Definition: TOPPASEdge.h:177
Definition: TOPPASEdge.h:74