Files
qwt/playground/curvetracker/CurveTracker.h
2023-10-31 09:22:42 +01:00

26 lines
737 B
C++

/*****************************************************************************
* Qwt Examples - Copyright (C) 2002 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#pragma once
#include <QwtPlotPicker>
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;
};