|
Motiv
Marvelous OTF2 Traces Interactive Visualizer
|
#include <CommunicationIndicator.hpp>


Public Member Functions | |
| CommunicationIndicator (Communication *communication, QPointF from, QPointF to, qreal headLength=10) | |
| CommunicationIndicator (Communication *communication, qreal fromX, qreal fromY, qreal toX, qreal toY, qreal headLength=10) | |
Public Member Functions inherited from GenericIndicator< Communication, QGraphicsPolygonItem > | |
| GenericIndicator (Communication *element, QGraphicsItem *parent=nullptr) | |
| void | setOnDoubleClick (const std::function< void(Communication *)> &fn) |
| Registers a double click handler. More... | |
| void | setOnSelected (const std::function< void(Communication *)> &fn) |
| Registers a select handler. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from GenericIndicator< Communication, QGraphicsPolygonItem > | |
| 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... | |
A QGraphicsItem showing a communication to be added to a QGraphicsScene
Definition at line 29 of file CommunicationIndicator.hpp.
| CommunicationIndicator::CommunicationIndicator | ( | Communication * | communication, |
| QPointF | from, | ||
| QPointF | to, | ||
| qreal | headLength = 10 |
||
| ) |
Creates a new instance
| communication | The represented communication |
| from | Origin of the communication |
| to | Target of the communication |
| headLength | Length of the arrows head in px |
Definition at line 28 of file CommunicationIndicator.cpp.
| CommunicationIndicator::CommunicationIndicator | ( | Communication * | communication, |
| qreal | fromX, | ||
| qreal | fromY, | ||
| qreal | toX, | ||
| qreal | toY, | ||
| qreal | headLength = 10 |
||
| ) |
Creates a new instance
| communication | The represented communication |
| fromX | Origin x coordinate of the communication |
| fromY | Origin y coordinate of the communication |
| toX | Target x coordinate of the communication |
| toY | Target y coordinate of the communication |
| headLength | Length of the arrows head in px |
Definition at line 23 of file CommunicationIndicator.cpp.