Add files from zip
This commit is contained in:
25
playground/curvetracker/CurveTracker.h
Normal file
25
playground/curvetracker/CurveTracker.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*****************************************************************************
|
||||
* 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;
|
||||
};
|
||||
Reference in New Issue
Block a user