##

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()

PlotTracker | ( | QwtPlotCanvas * | _canvas | ) |

explicit

Constructor.

Parameters

  [in] | _canvas | Canvas the tracker will be attached to.

## Member Function Documentation

## trackerTextF()

virtual QwtText trackerTextF | ( | const QPointF & | _pos | ) | const

protected virtual

Overriden to provide customized hover text.

Parameters

  [in] | _pos | Mouse position

Returns
  Text to display

## Update()

void Update | ( |  | ) |

Update the tracker text.

## updateDisplay()

virtual void updateDisplay | ( |  | ) |

protected virtual

Overriden to update the hover line and tracker text.

## widgetMousePressEvent()

virtual void widgetMousePressEvent | ( | QMouseEvent * | _e | ) |

protected virtual

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

Parameters

  [in] | _e | Qt mouse event.

## widgetMouseReleaseEvent()

virtual void widgetMouseReleaseEvent | ( | QMouseEvent * | _e | ) |

protected virtual

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

Parameters

  [in] | _e | Qt mouse event.

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

- PlotTracker.hh