35 #ifndef OPENMS_VISUAL_TOPPASEDGE_H 36 #define OPENMS_VISUAL_TOPPASEDGE_H 39 #include <OpenMS/VISUAL/OpenMS_GUIConfig.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);
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;
Definition: TOPPASEdge.h:77
QPointF hover_pos_
Position of hovering end while edge is being created.
Definition: TOPPASEdge.h:171
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
Definition: TOPPASEdge.h:73
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
An edge representing a data flow in TOPPAS.
Definition: TOPPASEdge.h:59
Definition: TOPPASEdge.h:70
int source_out_param_
The source output parameter index.
Definition: TOPPASEdge.h:175
QColor color_
The color.
Definition: TOPPASEdge.h:173
EdgeStatus
The status of this edge.
Definition: TOPPASEdge.h:68
Definition: TOPPASEdge.h:72
TOPPASVertex * to_
Pointer to the target of this edge.
Definition: TOPPASEdge.h:169
Definition: TOPPASEdge.h:75
Definition: TOPPASEdge.h:71
int target_in_param_
The target input parameter index.
Definition: TOPPASEdge.h:177
Definition: TOPPASEdge.h:76
Definition: TOPPASEdge.h:74