Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_curve.h


Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_plot_curve.h

    r8127 r9383  
    3434  <dl><dt>a) Assign curve properties</dt>
    3535  <dd>When a curve is created, it is configured to draw black solid lines
    36   with in QwtPlotCurve::Lines style and no symbols. 
     36  with in QwtPlotCurve::Lines style and no symbols.
    3737  You can change this by calling
    3838  setPen(), setStyle() and setSymbol().</dd>
     
    5353  \sa QwtPointSeriesData, QwtSymbol, QwtScaleMap
    5454*/
    55 class QWT_EXPORT QwtPlotCurve: 
     55class QWT_EXPORT QwtPlotCurve:
    5656    public QwtPlotSeriesItem, public QwtSeriesStore<QPointF>
    5757{
     
    7676
    7777        /*!
    78            Draw vertical or horizontal sticks ( depending on the 
     78           Draw vertical or horizontal sticks ( depending on the
    7979           orientation() ) from a baseline which is defined by setBaseline().
    8080        */
     
    9191           Draw dots at the locations of the data points. Note:
    9292           This is different from a dotted line (see setPen()), and faster
    93            as a curve in QwtPlotCurve::NoStyle style and a symbol 
     93           as a curve in QwtPlotCurve::NoStyle style and a symbol
    9494           painting a point.
    9595        */
     
    111111    {
    112112        /*!
    113            For QwtPlotCurve::Steps only. 
     113           For QwtPlotCurve::Steps only.
    114114           Draws a step function from the right to the left.
    115115         */
     
    142142    {
    143143        /*!
    144           QwtPlotCurve tries to find a color representing the curve 
     144          QwtPlotCurve tries to find a color representing the curve
    145145          and paints a rectangle with it.
    146146         */
     
    148148
    149149        /*!
    150           If the style() is not QwtPlotCurve::NoCurve a line 
     150          If the style() is not QwtPlotCurve::NoCurve a line
    151151          is painted with the curve pen().
    152152         */
     
    192192
    193193        /*!
    194           Minimize memory usage that is temporarily needed for the 
     194          Minimize memory usage that is temporarily needed for the
    195195          translated points, before they get painted.
    196           This might slow down the performance of painting 
     196          This might slow down the performance of painting
    197197         */
    198198        MinimizeMemory = 0x04,
     
    201201          Render the points to a temporary image and paint the image.
    202202          This is a very special optimization for Dots style, when
    203           having a huge amount of points. 
     203          having a huge amount of points.
    204204          With a reasonable number of points QPainter::drawPoints()
    205205          will be faster.
     
    211211    typedef QFlags<PaintAttribute> PaintAttributes;
    212212
    213     explicit QwtPlotCurve( const QString &title = QString::null );
     213    explicit QwtPlotCurve( const QString &title = QString() );
    214214    explicit QwtPlotCurve( const QwtText &title );
    215215
     
    271271    void init();
    272272
    273     virtual void drawCurve( QPainter *p, int style,
    274         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    275         const QRectF &canvasRect, int from, int to ) const;
    276 
    277     virtual void drawSymbols( QPainter *p, const QwtSymbol &,
    278         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    279         const QRectF &canvasRect, int from, int to ) const;
    280 
    281     virtual void drawLines( QPainter *p,
    282         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    283         const QRectF &canvasRect, int from, int to ) const;
    284 
    285     virtual void drawSticks( QPainter *p,
    286         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    287         const QRectF &canvasRect, int from, int to ) const;
    288 
    289     virtual void drawDots( QPainter *p,
    290         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    291         const QRectF &canvasRect, int from, int to ) const;
    292 
    293     virtual void drawSteps( QPainter *p,
     273    virtual void drawCurve( QPainter *, int style,
     274        const QwtScaleMap &xMap, const QwtScaleMap &yMap,
     275        const QRectF &canvasRect, int from, int to ) const;
     276
     277    virtual void drawSymbols( QPainter *, const QwtSymbol &,
     278        const QwtScaleMap &xMap, const QwtScaleMap &yMap,
     279        const QRectF &canvasRect, int from, int to ) const;
     280
     281    virtual void drawLines( QPainter *,
     282        const QwtScaleMap &xMap, const QwtScaleMap &yMap,
     283        const QRectF &canvasRect, int from, int to ) const;
     284
     285    virtual void drawSticks( QPainter *,
     286        const QwtScaleMap &xMap, const QwtScaleMap &yMap,
     287        const QRectF &canvasRect, int from, int to ) const;
     288
     289    virtual void drawDots( QPainter *,
     290        const QwtScaleMap &xMap, const QwtScaleMap &yMap,
     291        const QRectF &canvasRect, int from, int to ) const;
     292
     293    virtual void drawSteps( QPainter *,
    294294        const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    295295        const QRectF &canvasRect, int from, int to ) const;
    296296
    297297    virtual void fillCurve( QPainter *,
    298         const QwtScaleMap &, const QwtScaleMap &, 
     298        const QwtScaleMap &, const QwtScaleMap &,
    299299        const QRectF &canvasRect, QPolygonF & ) const;
    300300
Note: See TracChangeset for help on using the changeset viewer.