/***************************************************************************** * Qwt Examples - Copyright (C) 2002 Uwe Rathmann * This file may be used under the terms of the 3-clause BSD License *****************************************************************************/ #pragma once #include class QwtPlotCurve; class QLineF; class CurveTracker : public QwtPlotPicker { public: CurveTracker( QWidget* ); protected: virtual QwtText trackerTextF( const QPointF& ) const QWT_OVERRIDE; virtual QRect trackerRect( const QFont& ) const QWT_OVERRIDE; private: QString curveInfoAt( const QwtPlotCurve*, const QPointF& ) const; QLineF curveLineAt( const QwtPlotCurve*, double x ) const; };