OpenMS
TOPPASMergerVertex.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Johannes Veit $
6 // $Authors: Johannes Junker, Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
15 
16 namespace OpenMS
17 {
32  class OPENMS_GUI_DLLAPI TOPPASMergerVertex :
33  public TOPPASVertex
34  {
35  Q_OBJECT
36 
37 public:
38 
40  TOPPASMergerVertex() = default;
42  TOPPASMergerVertex(bool round_based);
44  TOPPASMergerVertex(const TOPPASMergerVertex& rhs) = default;
46  ~TOPPASMergerVertex() override = default;
50  String getName() const override;
52  void run() override;
54  bool roundBasedMode() const;
55  // documented in base class
56  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
57  // documented in base class
58  QRectF boundingRect() const override;
59  // documented in base class
60  void markUnreachable() override;
61 
62 public slots:
63 
64 signals:
66  void mergeFailed(const QString message);
67 
68 protected:
69 
71  bool round_based_mode_{true};
72  };
73 }
74 
A more convenient string class.
Definition: String.h:34
A special vertex that allows to merge several inputs.
Definition: TOPPASMergerVertex.h:34
bool roundBasedMode() const
Determines whether this merger is merging round based or merging all inputs into one list.
TOPPASMergerVertex & operator=(const TOPPASMergerVertex &rhs)=default
Assignment operator.
TOPPASMergerVertex()=default
Default constructor.
void markUnreachable() override
Marks this node (and everything further downstream) as unreachable. Overridden behavior in mergers.
TOPPASMergerVertex(bool round_based)
Constructor.
~TOPPASMergerVertex() override=default
Destructor.
String getName() const override
returns "MergerVertex"
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
TOPPASMergerVertex(const TOPPASMergerVertex &rhs)=default
Copy constructor.
void mergeFailed(const QString message)
Emitted when merging upstream data failed.
The base class of the different vertex classes.
Definition: TOPPASVertex.h:78
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19