Motiv
Marvelous OTF2 Traces Interactive Visualizer
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
CollectiveCommunicationIndicator Class Reference

Indicator for collective communications. More...

#include <CollectiveCommunicationIndicator.hpp>

Inheritance diagram for CollectiveCommunicationIndicator:
Inheritance graph
[legend]
Collaboration diagram for CollectiveCommunicationIndicator:
Collaboration graph
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CollectiveCommunicationIndicator()

CollectiveCommunicationIndicator::CollectiveCommunicationIndicator ( CollectiveCommunicationEvent element,
QGraphicsItem *  parent = nullptr 
)
explicit

Creates a new instance of the CollectiveCommunicationIdicator class.

Parameters
elementThe CollectiveCommunicationEvent object the indicator is representing
parentThe parent QGraphicsItem

Definition at line 23 of file CollectiveCommunicationIndicator.cpp.

Member Function Documentation

◆ respondToEvent()

bool CollectiveCommunicationIndicator::respondToEvent ( QPointF  mousePos)
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.

Parameters
pointThe point at which the event occured
Returns
True if the indicator should react to the event, false otherwise

Reimplemented from GenericIndicator< CollectiveCommunicationEvent, QGraphicsRectItem >.

Definition at line 29 of file CollectiveCommunicationIndicator.cpp.


The documentation for this class was generated from the following files: