12#include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
14#include <QtWidgets/QGraphicsItem>
19 class TOPPASToolVertex;
20 class TOPPASInputFileListVertex;
72 QPainterPath
shape()
const override;
74 void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget)
override;
A more convenient string class.
Definition String.h:34
An edge representing a data flow in TOPPAS.
Definition TOPPASEdge.h:36
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:146
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)
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:152
int getSourceOutParam() const
Returns the source output parameter index.
EdgeStatus
The status of this edge.
Definition TOPPASEdge.h:43
@ ES_MERGER_EXT_MISMATCH
Definition TOPPASEdge.h:48
@ ES_VALID
Definition TOPPASEdge.h:44
@ ES_NOT_READY_YET
Definition TOPPASEdge.h:50
@ ES_TOOL_API_CHANGED
Definition TOPPASEdge.h:51
@ ES_NO_TARGET_PARAM
Definition TOPPASEdge.h:45
@ ES_MERGER_WITHOUT_TOOL
Definition TOPPASEdge.h:49
@ ES_FILE_EXT_MISMATCH
Definition TOPPASEdge.h:47
@ ES_NO_SOURCE_PARAM
Definition TOPPASEdge.h:46
QString getTargetInParamName()
Returns the target input parameter index.
QPointF startPos() const
Returns the start position of this edge.
TOPPASEdge & operator=(const TOPPASEdge &rhs)
Assignment operator.
int getTargetInParam() const
Returns the target input parameter index.
QColor color_
The color.
Definition TOPPASEdge.h:148
TOPPASEdge(const TOPPASEdge &rhs)
Copy constructor.
TOPPASEdge(TOPPASVertex *from, const QPointF &hover_pos)
Constructor.
TOPPASVertex * to_
Pointer to the target of this edge.
Definition TOPPASEdge.h:144
TOPPASVertex * getSourceVertex()
Returns the source vertex.
TOPPASVertex * from_
Pointer to the source of this edge.
Definition TOPPASEdge.h:142
int source_out_param_
The source output parameter index.
Definition TOPPASEdge.h:150
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.
TOPPASVertex * getTargetVertex()
Returns the target vertex.
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) override
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.
The base class of the different vertex classes.
Definition TOPPASVertex.h:78
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19