16 #include <qcustomplot.h> 
   20     , m_plot_type(plot_type)
 
   29     return customPlot()->xAxis->coordToPixel(axis_coordinate);
 
   34     return customPlot()->yAxis->coordToPixel(axis_coordinate);
 
   39     return customPlot()->xAxis->pixelToCoord(pixel);
 
   44     return customPlot()->yAxis->pixelToCoord(pixel);
 
   54     return customPlot()->xAxis->range().contains(xpos)
 
   55            && 
customPlot()->yAxis->range().contains(ypos);
 
Defines class ScientificPlotEvent.
 
Helps ScientificPlot to handle mouse events. Particularly, it constructs a valid status string....
 
void setMouseTrackingEnabled(bool enable)
Sets tracking of the mouse for parent DescriptedPlot.
 
ScientificPlot(QWidget *parent, PLOT_TYPE plot_type)
 
bool axesRangeContains(double xpos, double ypos) const
Returns true if axes rectangle contains given in axes coordinates.
 
virtual QCustomPlot * customPlot()=0
 
double yAxisCoordToPixel(double axis_coordinate) const
 
~ScientificPlot() override
 
double pixelToYaxisCoord(double pixel) const
 
ScientificPlotEvent * m_event
 
double pixelToXaxisCoord(double pixel) const
transform widget coordinates to axes coordinates
 
void setMouseTrackingEnabled(bool enable)
Tracks move events (used when showing profile histograms and printing status string)
 
double xAxisCoordToPixel(double axis_coordinate) const
transform axes coordinates to CustomPlot widget coordinates