|  | OpenMS
    2.6.0
    | 
 
 
  
  
 
Go to the documentation of this file.
   44 #define __DEBUG_BEGIN_METHOD__ \ 
   46     for (int dbg_indnt_cntr = 0; dbg_indnt_cntr < global_debug_indent_; ++dbg_indnt_cntr)   \ 
   50     std::cout << "BEGIN [" << topo_nr_ << "] " << OPENMS_PRETTY_FUNCTION << std::endl;             \ 
   51     ++global_debug_indent_;                                                                                                                             \ 
   54 #define __DEBUG_END_METHOD__ \ 
   56     --global_debug_indent_;                                                                                                                             \ 
   57     if (global_debug_indent_ < 0) global_debug_indent_ = 0;                                                             \ 
   58     for (int dbg_indnt_cntr = 0; dbg_indnt_cntr < global_debug_indent_; ++dbg_indnt_cntr)   \ 
   62     std::cout << "END [" << topo_nr_ << "] " << OPENMS_PRETTY_FUNCTION << std::endl;                   \ 
   65 #define __DEBUG_BEGIN_METHOD__ {} 
   66 #define __DEBUG_END_METHOD__ {} 
   72 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 
   78 #include <QPainterPath> 
   79 #include <QtWidgets/QGraphicsSceneMouseEvent> 
   80 #include <QtWidgets/QGraphicsSceneContextMenuEvent> 
   81 #include <QtWidgets/QGraphicsItem> 
   82 #include <QtCore/QProcess> 
   83 #include <QtWidgets/QMenu> 
   84 #include <QStringList> 
  125       const QStringList& get() 
const;
 
  126       const QString& operator[](
int i) 
const;
 
  130       void set(
const QStringList& filenames);
 
  131       void set(
const QString& filename, 
int i);
 
  132       void push_back(
const QString& filename);
 
  133       void append(
const QStringList& filenames);
 
  136       QStringList getSuffixCounts() 
const;
 
  145       void check_(
const QString& filename);
 
  180       TV_UNFINISHED_INBRANCH 
 
  192     void paint(QPainter* painter, 
const QStyleOptionGraphicsItem* , 
QWidget* , 
bool round_shape = 
true);
 
  197     bool buildRoundPackages(RoundPackages & pkg, 
String & error_msg);
 
  200     bool isUpstreamFinished() 
const;
 
  203     QRectF boundingRect() 
const override = 0;
 
  205     QPainterPath shape() const final;
 
  207     ConstEdgeIterator outEdgesBegin() const;
 
  209     ConstEdgeIterator outEdgesEnd() const;
 
  211     ConstEdgeIterator inEdgesBegin() const;
 
  213     ConstEdgeIterator inEdgesEnd() const;
 
  215     Size incomingEdgesCount();
 
  217     Size outgoingEdgesCount();
 
  227     DFS_COLOR getDFSColor();
 
  229     void setDFSColor(DFS_COLOR color);
 
  233     bool isTopoSortMarked();
 
  235     void setTopoSortMarked(
bool b);
 
  239     virtual 
void setTopoNr(
UInt nr);
 
  242     virtual 
void reset(
bool reset_all_files = false);
 
  244     virtual 
void markUnreachable();
 
  248     bool isFinished() const;
 
  253     virtual 
bool invertRecylingMode();
 
  255     bool isRecyclingEnabled() const;
 
  257     void setRecycling(const 
bool is_enabled);
 
  260     virtual 
String getName() const = 0;
 
  267     QStringList getFileNames(
int param_index, 
int round) const;
 
  270     QStringList getFileNames() const;
 
  273     const RoundPackages & getOutputFiles() const;
 
  277     bool allInputsReady();
 
  283     virtual 
void inEdgeHasChanged();
 
  285     virtual 
void outEdgeHasChanged();
 
  294     void hoveringEdgePosChanged(const QPointF & new_pos);
 
  296     void newHoveringEdge(const QPointF & pos);
 
  298     void finishHoveringEdge();
 
  300     void somethingHasChanged();
 
  302     void itemDragged(qreal dx, qreal dy);
 
  305     void parameterChanged(const 
bool invalidates_running_pipeline);
 
  314     bool edge_being_created_{
false};
 
  316     QColor pen_color_{Qt::black};
 
  318     QColor brush_color_{ Qt::lightGray};
 
  322     bool topo_sort_marked_{
false};
 
  328     int round_total_{-1};
 
  330     int round_counter_{0};
 
  332     bool finished_{
false};
 
  334     bool reachable_{
true};
 
  336     bool allow_output_recycling_{
false};
 
  341     static int global_debug_indent_;
 
  346     void mouseReleaseEvent(QGraphicsSceneMouseEvent * e) 
override;
 
  347     void mousePressEvent(QGraphicsSceneMouseEvent * e) 
override;
 
  348     void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * e) 
override;
 
  349     void mouseMoveEvent(QGraphicsSceneMouseEvent * e) 
override;
 
  350     void contextMenuEvent(QGraphicsSceneContextMenuEvent * event) 
override;
 
  354     virtual void moveNewEdgeTo_(
const QPointF & pos);
 
  366       for (
int i = 0; i < global_debug_indent_; ++i)
 
  370       std::cout << 
"[" << topo_nr_ << 
"] " << message << std::endl;
 
  
RoundPackages output_files_
Stores the current output file names for each output parameter.
Definition: TOPPASVertex.h:326
A more convenient string class.
Definition: String.h:59
some direct downstream node is not done
Definition: TOPPASVertex.h:179
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
QStringList filenames_
filenames passed from upstream node in this round
Definition: TOPPASVertex.h:146
all downstream nodes are done (including the ones which are feed by a parallel subtree)
Definition: TOPPASVertex.h:178
QList< TOPPASEdge * > EdgeContainer
The container for in/out edges.
Definition: TOPPASVertex.h:110
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Info for one edge and round, to be passed to next node.
Definition: TOPPASVertex.h:150
EdgeContainer::const_iterator ConstEdgeIterator
A const iterator for in/out edges.
Definition: TOPPASVertex.h:114
Definition: TOPPASVertex.h:170
RoundPackage::const_iterator RoundPackageConstIt
Definition: TOPPASVertex.h:161
UInt topo_nr_
The number in a topological sort of the entire graph.
Definition: TOPPASVertex.h:324
RoundPackage::iterator RoundPackageIt
Definition: TOPPASVertex.h:162
T round(T x)
Rounds the value.
Definition: MathFunctions.h:138
DFS_COLOR
The color of a vertex during depth-first search.
Definition: TOPPASVertex.h:168
The base class of the different vertex classes.
Definition: TOPPASVertex.h:101
void append(const T &i, String &target)
Definition: StringUtils.h:119
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Definition: TOPPASVertex.h:119
void debugOut_(const String &) const
Displays the debug output message, if TOPPAS_DEBUG is defined.
Definition: TOPPASVertex.h:359
std::map< Int, VertexRoundPackage > RoundPackage
Definition: TOPPASVertex.h:160
TOPPASFilenames filenames
filenames passed from upstream node in this round
Definition: TOPPASVertex.h:152
An edge representing a data flow in TOPPAS.
Definition: TOPPASEdge.h:59
EdgeContainer::iterator EdgeIterator
A mutable iterator for in/out edges.
Definition: TOPPASVertex.h:112
std::vector< RoundPackage > RoundPackages
all information a node needs to process all rounds
Definition: TOPPASVertex.h:165
SUBSTREESTATUS
The color of a vertex during depth-first search.
Definition: TOPPASVertex.h:176
Definition: TOPPASVertex.h:171