PlotTracker Class Reference

Mouse hover tracking. More...

#include <PlotTracker.hh>

Inherits QwtPlotPicker.

Public Member Functions

 PlotTracker (QwtPlotCanvas *_canvas)
 Constructor. More...
 
void Update ()
 Update the tracker text. More...
 

Protected Member Functions

virtual QwtText trackerTextF (const QPointF &_pos) const
 Overriden to provide customized hover text. More...
 
virtual void updateDisplay ()
 Overriden to update the hover line and tracker text. More...
 
virtual void widgetMousePressEvent (QMouseEvent *_e)
 Mouse press event used to determine when to show/hide hover line. More...
 
virtual void widgetMouseReleaseEvent (QMouseEvent *_e)
 Mouse release event used to determine when to show/hide hover line. More...
 

Detailed Description

Mouse hover tracking.

Constructor & Destructor Documentation

PlotTracker ( QwtPlotCanvas *  _canvas)
explicit

Constructor.

Parameters
[in]_canvasCanvas the tracker will be attached to.

Member Function Documentation

virtual QwtText trackerTextF ( const QPointF &  _pos) const
protectedvirtual

Overriden to provide customized hover text.

Parameters
[in]_posMouse position
Returns
Text to display
void Update ( )

Update the tracker text.

virtual void updateDisplay ( )
protectedvirtual

Overriden to update the hover line and tracker text.

virtual void widgetMousePressEvent ( QMouseEvent *  _e)
protectedvirtual

Mouse press event used to determine when to show/hide hover line.

Parameters
[in]_eQt mouse event.
virtual void widgetMouseReleaseEvent ( QMouseEvent *  _e)
protectedvirtual

Mouse release event used to determine when to show/hide hover line.

Parameters
[in]_eQt mouse event.

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