38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
40 #include <QtWidgets/QGraphicsItem>
45 class TOPPASToolVertex;
46 class TOPPASInputFileListVertex;
98 QPainterPath
shape()
const override;
100 void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget)
override;
168 QPointF
nearestPoint_(
const QPointF & origin,
const QList<QPointF> & list)
const;
A more convenient string class.
Definition: String.h:61
An edge representing a data flow in TOPPAS.
Definition: TOPPASEdge.h:62
QPointF borderPoint_(bool atTargetVertex=true) const
point where the current edge touches the source or target (default) vertex
QPainterPath shape() const override
Returns a more precise shape.
QPointF hover_pos_
Position of hovering end while edge is being created.
Definition: TOPPASEdge.h:174
void sourceHasChanged()
Called by the source vertex when it has changed.
void showIOMappingDialog()
Shows the I/O mapping dialog.
~TOPPASEdge() override
Destructor.
void prepareResize()
Call this before changing the item geometry.
EdgeStatus getToolToolStatus_(TOPPASToolVertex *source, int source_param_index, TOPPASToolVertex *target, int target_param_index)
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) override
EdgeStatus getListToolStatus_(TOPPASInputFileListVertex *source, TOPPASToolVertex *target, int target_param_index)
int getSourceOutParam()
Returns the source output parameter index.
QString getSourceOutParamName()
Returns the source output parameter name.
EdgeStatus getEdgeStatus()
Returns the status of this edge.
void updateColor()
Updates the edge color.
int target_in_param_
The target input parameter index.
Definition: TOPPASEdge.h:180
TOPPASEdge & operator=(const TOPPASEdge &rhs)
Assignment operator.
EdgeStatus
The status of this edge.
Definition: TOPPASEdge.h:69
@ ES_MERGER_EXT_MISMATCH
Definition: TOPPASEdge.h:74
@ ES_VALID
Definition: TOPPASEdge.h:70
@ ES_NOT_READY_YET
Definition: TOPPASEdge.h:76
@ ES_TOOL_API_CHANGED
Definition: TOPPASEdge.h:77
@ ES_NO_TARGET_PARAM
Definition: TOPPASEdge.h:71
@ ES_MERGER_WITHOUT_TOOL
Definition: TOPPASEdge.h:75
@ ES_FILE_EXT_MISMATCH
Definition: TOPPASEdge.h:73
@ ES_NO_SOURCE_PARAM
Definition: TOPPASEdge.h:72
QString getTargetInParamName()
Returns the target input parameter index.
QPointF startPos() const
Returns the start position of this edge.
QPointF nearestPoint_(const QPointF &origin, const QList< QPointF > &list) const
Returns the point in the list that is nearest to origin.
QColor color_
The color.
Definition: TOPPASEdge.h:176
TOPPASEdge(const TOPPASEdge &rhs)
Copy constructor.
TOPPASEdge(TOPPASVertex *from, const QPointF &hover_pos)
Constructor.
TOPPASVertex * getTargetVertex()
Returns the target vertex.
TOPPASVertex * to_
Pointer to the target of this edge.
Definition: TOPPASEdge.h:172
TOPPASVertex * from_
Pointer to the source of this edge.
Definition: TOPPASEdge.h:170
int source_out_param_
The source output parameter index.
Definition: TOPPASEdge.h:178
void setColor(const QColor &color)
Sets the color.
QPointF endPos() const
Returns the end position of this edge.
TOPPASEdge()
Standard constructor.
void setSourceVertex(TOPPASVertex *tv)
Sets the source vertex of this edge.
void setTargetVertex(TOPPASVertex *tv)
Sets the target vertex of this edge.
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) override
TOPPASVertex * getSourceVertex()
Returns the source vertex.
void setHoverPos(const QPointF &pos)
Sets the position of the hovering end while edge is being created.
void setTargetInParam(int in)
Sets the target input parameter index.
QRectF boundingRect() const override
Returns the bounding rectangle of this item.
void somethingHasChanged()
Emitted when something has changed.
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Paints the item.
String toString()
for debug output
void setSourceOutParam(int out)
Sets the source output parameter index.
void emitChanged()
Emits the somethingHasChanged() signal.
int getTargetInParam()
Returns the target input parameter index.
The base class of the different vertex classes.
Definition: TOPPASVertex.h:104
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47