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;
97 QRectF boundingRect()
const;
99 QPainterPath shape()
const;
101 void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget);
103 QPointF startPos()
const;
105 QPointF endPos()
const;
107 void setHoverPos(
const QPointF & pos);
117 void prepareResize();
119 void setColor(
const QColor & color);
123 void setSourceOutParam(
int out);
125 int getSourceOutParam();
127 QString getSourceOutParamName();
129 void setTargetInParam(
int in);
131 int getTargetInParam();
133 QString getTargetInParamName();
139 void showIOMappingDialog();
144 void sourceHasChanged();
149 void somethingHasChanged();
155 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * e);
156 void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
166 QPointF borderPoint_(
bool atTargetVertex =
true)
const;
169 QPointF nearestPoint_(
const QPointF & origin,
const QList<QPointF> & list)
const;
Definition: TOPPASEdge.h:78
QPointF hover_pos_
Position of hovering end while edge is being created.
Definition: TOPPASEdge.h:175
A more convenient string class.
Definition: String.h:57
The base class of the different vertex classes.
Definition: TOPPASVertex.h:101
TOPPASVertex * from_
Pointer to the source of this edge.
Definition: TOPPASEdge.h:171
Definition: TOPPASEdge.h:74
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
An edge representing a data flow in TOPPAS.
Definition: TOPPASEdge.h:60
Definition: TOPPASEdge.h:71
int source_out_param_
The source output parameter index.
Definition: TOPPASEdge.h:179
QColor color_
The color.
Definition: TOPPASEdge.h:177
EdgeStatus
The status of this edge.
Definition: TOPPASEdge.h:69
Definition: TOPPASEdge.h:73
TOPPASVertex * to_
Pointer to the target of this edge.
Definition: TOPPASEdge.h:173
Definition: TOPPASEdge.h:76
Definition: TOPPASEdge.h:72
int target_in_param_
The target input parameter index.
Definition: TOPPASEdge.h:181
Definition: TOPPASEdge.h:77
Definition: TOPPASEdge.h:75
String toString(T i)
toString functions (single argument)
Definition: StringUtils.h:69