OpenMS
TOPPASSplitterVertex.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Hendrik Weisser $
6 // $Authors: Johannes Junker, Chris Bielow, Hendrik Weisser $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
15 
16 namespace OpenMS
17 {
27  class OPENMS_GUI_DLLAPI TOPPASSplitterVertex :
28  public TOPPASVertex
29  {
30  Q_OBJECT
31 
32 public:
33 
35  TOPPASSplitterVertex() = default;
39  ~TOPPASSplitterVertex() override = default;
43  String getName() const override;
45  void run() override;
46  // documented in base class
47  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
48  // documented in base class
49  QRectF boundingRect() const override;
50  // documented in base class
51  void markUnreachable() override;
52 
53 protected:
54 
56 
57  void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* e) override;
59 
60  };
61 }
62 
A more convenient string class.
Definition: String.h:34
A special vertex that allows to split a list of inputs.
Definition: TOPPASSplitterVertex.h:29
void markUnreachable() override
Marks this node (and everything further downstream) as unreachable. Overridden behavior in mergers.
String getName() const override
returns "SplitterVertex"
TOPPASSplitterVertex & operator=(const TOPPASSplitterVertex &rhs)
Assignment operator.
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) override
~TOPPASSplitterVertex() override=default
Destructor.
QRectF boundingRect() const override
Returns the bounding rectangle of this item.
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
void run() override
check if upstream nodes are finished and call downstream nodes
TOPPASSplitterVertex()=default
Default constructor.
TOPPASSplitterVertex(const TOPPASSplitterVertex &rhs)
Copy constructor.
The base class of the different vertex classes.
Definition: TOPPASVertex.h:77
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22