15 #ifndef BORNAGAIN_GUI_VIEW_PLOTUTIL_SCIENTIFICPLOTEVENT_H
16 #define BORNAGAIN_GUI_VIEW_PLOTUTIL_SCIENTIFICPLOTEVENT_H
Defines the class PlotEventInfo.
Contains parameters of mouse position in 1D or 2D plot.
Helps ScientificPlot to handle mouse events. Particularly, it constructs a valid status string....
~ScientificPlotEvent() override
ScientificPlot * scientificPlot()
void positionChanged(double x, double y)
PlotEventInfo currentPlotDescriptor(QMouseEvent *event) const
Constructs current position of the data.
void onCustomMouseMove(QMouseEvent *event)
Constructs status string on mouse move event coming from QCustomPlot. String is emitted if mouse is i...
ScientificPlotEvent(ScientificPlot *scientific_plot)
QCustomPlot * customPlot()
void setMouseTrackingEnabled(bool enable)
Sets tracking of the mouse for parent DescriptedPlot.
Common interface for plot-descriptor interaction.