15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_INTENSITYDATAWIDGETS_SCIENTIFICPLOTEVENT_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INTENSITYDATAWIDGETS_SCIENTIFICPLOTEVENT_H
Defines the class PlotEventInfo.
Contains parameters of mouse position in 1D or 2D plot.
Helps ScientificPlot to handle mouse events.
~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.
ScientificPlotEvent(ScientificPlot *scientific_plot)
QCustomPlot * customPlot()
void setMouseTrackingEnabled(bool enable)
Sets tracking of the mouse for parent DescriptedPlot.
Common interface for plot-descriptor interaction.