|
Motiv
Marvelous OTF2 Traces Interactive Visualizer
|
Indicator for collective communications. More...
#include <CollectiveCommunicationIndicator.hpp>


Public Member Functions | |
| CollectiveCommunicationIndicator (CollectiveCommunicationEvent *element, QGraphicsItem *parent=nullptr) | |
| Creates a new instance of the CollectiveCommunicationIdicator class. More... | |
Public Member Functions inherited from GenericIndicator< CollectiveCommunicationEvent, QGraphicsRectItem > | |
| GenericIndicator (CollectiveCommunicationEvent *element, QGraphicsItem *parent=nullptr) | |
| void | setOnDoubleClick (const std::function< void(CollectiveCommunicationEvent *)> &fn) |
| Registers a double click handler. More... | |
| void | setOnSelected (const std::function< void(CollectiveCommunicationEvent *)> &fn) |
| Registers a select handler. More... | |
Protected Member Functions | |
| bool | respondToEvent (QPointF mousePos) override |
| Checks whether the indicator should react to an event at a given point. More... | |
Protected Member Functions inherited from GenericIndicator< CollectiveCommunicationEvent, QGraphicsRectItem > | |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
| virtual bool | respondToEvent (QPointF) |
| Checks whether the indicator should react to an event at a given point. More... | |
Indicator for collective communications.
A collective communication is indicated by a rectangle. It only reacts to click events, if there are no other elements drawn behind it to avoid confusion when clicking on slots within a collective communication. For the same reasons, it does not highlight when hovering over it.
Definition at line 33 of file CollectiveCommunicationIndicator.hpp.
|
explicit |
Creates a new instance of the CollectiveCommunicationIdicator class.
| element | The CollectiveCommunicationEvent object the indicator is representing |
| parent | The parent QGraphicsItem |
Definition at line 23 of file CollectiveCommunicationIndicator.cpp.
|
overrideprotectedvirtual |
Checks whether the indicator should react to an event at a given point.
This function should be overwritten in derived classes. By default this function always returns true.
| point | The point at which the event occured |
Reimplemented from GenericIndicator< CollectiveCommunicationEvent, QGraphicsRectItem >.
Definition at line 29 of file CollectiveCommunicationIndicator.cpp.