source: ntrip/trunk/BNC/qwt/qwt_plot_seriesitem.h@ 10573

Last change on this file since 10573 was 9383, checked in by stoecker, 4 years ago

update to qwt verion 6.1.1 to fix build with newer Qt5

File size: 1.9 KB
Line 
1/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10#ifndef QWT_PLOT_SERIES_ITEM_H
11#define QWT_PLOT_SERIES_ITEM_H
12
13#include "qwt_global.h"
14#include "qwt_plot_item.h"
15#include "qwt_scale_div.h"
16#include "qwt_series_data.h"
17#include "qwt_series_store.h"
18
19/*!
20 \brief Base class for plot items representing a series of samples
21*/
22class QWT_EXPORT QwtPlotSeriesItem: public QwtPlotItem,
23 public virtual QwtAbstractSeriesStore
24{
25public:
26 explicit QwtPlotSeriesItem( const QString &title = QString() );
27 explicit QwtPlotSeriesItem( const QwtText &title );
28
29 virtual ~QwtPlotSeriesItem();
30
31 void setOrientation( Qt::Orientation );
32 Qt::Orientation orientation() const;
33
34 virtual void draw( QPainter *,
35 const QwtScaleMap &xMap, const QwtScaleMap &yMap,
36 const QRectF & ) const;
37
38 /*!
39 Draw a subset of the samples
40
41 \param painter Painter
42 \param xMap Maps x-values into pixel coordinates.
43 \param yMap Maps y-values into pixel coordinates.
44 \param canvasRect Contents rectangle of the canvas
45 \param from Index of the first point to be painted
46 \param to Index of the last point to be painted. If to < 0 the
47 curve will be painted to its last point.
48 */
49 virtual void drawSeries( QPainter *painter,
50 const QwtScaleMap &xMap, const QwtScaleMap &yMap,
51 const QRectF &canvasRect, int from, int to ) const = 0;
52
53 virtual QRectF boundingRect() const;
54
55 virtual void updateScaleDiv(
56 const QwtScaleDiv &, const QwtScaleDiv & );
57
58protected:
59 virtual void dataChanged();
60
61private:
62 class PrivateData;
63 PrivateData *d_data;
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.