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

#include <CommunicationIndicator.hpp>

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

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

Detailed Description

A QGraphicsItem showing a communication to be added to a QGraphicsScene

Definition at line 29 of file CommunicationIndicator.hpp.

Constructor & Destructor Documentation

◆ CommunicationIndicator() [1/2]

CommunicationIndicator::CommunicationIndicator ( Communication communication,
QPointF  from,
QPointF  to,
qreal  headLength = 10 
)

Creates a new instance

Parameters
communicationThe represented communication
fromOrigin of the communication
toTarget of the communication
headLengthLength of the arrows head in px

Definition at line 28 of file CommunicationIndicator.cpp.

◆ CommunicationIndicator() [2/2]

CommunicationIndicator::CommunicationIndicator ( Communication communication,
qreal  fromX,
qreal  fromY,
qreal  toX,
qreal  toY,
qreal  headLength = 10 
)

Creates a new instance

Parameters
communicationThe represented communication
fromXOrigin x coordinate of the communication
fromYOrigin y coordinate of the communication
toXTarget x coordinate of the communication
toYTarget y coordinate of the communication
headLengthLength of the arrows head in px

Definition at line 23 of file CommunicationIndicator.cpp.


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