|
Motiv
Marvelous OTF2 Traces Interactive Visualizer
|
A generic indicator bundling common interaction behaviours. More...
#include <GenericIndicator.hpp>


Public Member Functions | |
| GenericIndicator (T *element, QGraphicsItem *parent=nullptr) | |
| void | setOnDoubleClick (const std::function< void(T *)> &fn) |
| Registers a double click handler. More... | |
| void | setOnSelected (const std::function< void(T *)> &fn) |
| Registers a select handler. More... | |
Protected Member Functions | |
| 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 generic indicator bundling common interaction behaviours.
This abstracts handling common interactions such as
| T | |
| G |
Definition at line 32 of file GenericIndicator.hpp.
|
explicit |
Definition at line 29 of file GenericIndicator.cpp.
|
overrideprotected |
Definition at line 66 of file GenericIndicator.cpp.
|
overrideprotected |
Definition at line 77 of file GenericIndicator.cpp.
|
overrideprotected |
Definition at line 46 of file GenericIndicator.cpp.
|
overrideprotected |
Definition at line 56 of file GenericIndicator.cpp.
|
inlineprotectedvirtual |
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 in CollectiveCommunicationIndicator.
Definition at line 82 of file GenericIndicator.hpp.
| void GenericIndicator< T, G >::setOnDoubleClick | ( | const std::function< void(T *)> & | fn | ) |
Registers a double click handler.
Registers a callback function that is invoked whenever the user double clicked on the indicator.
| fn | Callback to be invoked on double click |
Definition at line 36 of file GenericIndicator.cpp.
| void GenericIndicator< T, G >::setOnSelected | ( | const std::function< void(T *)> & | fn | ) |
Registers a select handler.
Registers a callback function that is invoked whenever the user selects the indicator by left cliking on it.
| fn | Callback to be invoked on selection |
Definition at line 41 of file GenericIndicator.cpp.