Files
cavity_LIBS/msvc-deps/qwt-6.2.0/playground/curvetracker/CurveTracker.h
T
2026-11-06 14:45:09 +08: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;
};