You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
716 B
44 lines
716 B
|
3 years ago
|
#ifndef _PLOT_H_
|
||
|
|
#define _PLOT_H_
|
||
|
|
|
||
|
|
#include <qwt_plot.h>
|
||
|
|
#include <qwt_scale_div.h>
|
||
|
|
#include <qwt_series_data.h>
|
||
|
|
|
||
|
|
class QwtPlotCurve;
|
||
|
|
class QwtPlotIntervalCurve;
|
||
|
|
|
||
|
|
class Plot: public QwtPlot
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
enum Mode
|
||
|
|
{
|
||
|
|
Bars,
|
||
|
|
Tube
|
||
|
|
};
|
||
|
|
|
||
|
|
Plot( QWidget * = NULL );
|
||
|
|
|
||
|
|
public Q_SLOTS:
|
||
|
|
void setMode( int );
|
||
|
|
void exportPlot();
|
||
|
|
|
||
|
|
private:
|
||
|
|
void insertCurve( const QString &title,
|
||
|
|
const QVector<QPointF> &, const QColor & );
|
||
|
|
|
||
|
|
void insertErrorBars( const QString &title,
|
||
|
|
const QVector<QwtIntervalSample> &,
|
||
|
|
const QColor &color );
|
||
|
|
|
||
|
|
|
||
|
|
QwtScaleDiv yearScaleDiv() const;
|
||
|
|
|
||
|
|
QwtPlotIntervalCurve *d_intervalCurve;
|
||
|
|
QwtPlotCurve *d_curve;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|