Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_marker.h


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (3 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

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

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1111#define QWT_PLOT_MARKER_H
    1212
    13 #include <qpen.h>
    14 #include <qfont.h>
    15 #include <qstring.h>
    16 #include <qbrush.h>
    1713#include "qwt_global.h"
    1814#include "qwt_plot_item.h"
    1915
     16class QString;
    2017class QRectF;
    2118class QwtText;
    … …  
    2320
    2421/*!
    25   \brief A class for drawing markers
     22   \brief A class for drawing markers
    2623
    27   A marker can be a horizontal line, a vertical line,
    28   a symbol, a label or any combination of them, which can
    29   be drawn around a center point inside a bounding rectangle.
     24   A marker can be a horizontal line, a vertical line,
     25   a symbol, a label or any combination of them, which can
     26   be drawn around a center point inside a bounding rectangle.
    3027
    31   The setSymbol() member assigns a symbol to the marker.
    32   The symbol is drawn at the specified point.
     28   The setSymbol() member assigns a symbol to the marker.
     29   The symbol is drawn at the specified point.
    3330
    34   With setLabel(), a label can be assigned to the marker.
    35   The setLabelAlignment() member specifies where the label is
    36   drawn. All the Align*-constants in Qt::AlignmentFlags (see Qt documentation)
    37   are valid. The interpretation of the alignment depends on the marker's
    38   line style. The alignment refers to the center point of
    39   the marker, which means, for example, that the label would be printed
    40   left above the center point if the alignment was set to
    41   Qt::AlignLeft | Qt::AlignTop.
     31   With setLabel(), a label can be assigned to the marker.
     32   The setLabelAlignment() member specifies where the label is
     33   drawn. All the Align*-constants in Qt::AlignmentFlags (see Qt documentation)
     34   are valid. The interpretation of the alignment depends on the marker's
     35   line style. The alignment refers to the center point of
     36   the marker, which means, for example, that the label would be printed
     37   left above the center point if the alignment was set to
     38   Qt::AlignLeft | Qt::AlignTop.
    4239
    43   \note QwtPlotTextLabel is intended to align a text label
     40   \note QwtPlotTextLabel is intended to align a text label
    4441        according to the geometry of canvas
    4542        ( unrelated to plot coordinates )
    46 */
     43 */
    4744
    48 class QWT_EXPORT QwtPlotMarker: public QwtPlotItem
     45class QWT_EXPORT QwtPlotMarker : public QwtPlotItem
    4946{
    50 public:
     47  public:
    5148
    5249    /*!
    5350        Line styles.
    5451        \sa setLineStyle(), lineStyle()
    55     */
     52     */
    5653    enum LineStyle
    5754    {
    … …  
    6966    };
    7067
    71     explicit QwtPlotMarker( const QString &title = QString() );
    72     explicit QwtPlotMarker( const QwtText &title );
     68    explicit QwtPlotMarker();
     69    explicit QwtPlotMarker( const QString& title );
     70    explicit QwtPlotMarker( const QwtText& title );
    7371
    7472    virtual ~QwtPlotMarker();
    7573
    76     virtual int rtti() const;
     74    virtual int rtti() const QWT_OVERRIDE;
    7775
    7876    double xValue() const;
    … …  
    8381    void setYValue( double );
    8482    void setValue( double, double );
    85     void setValue( const QPointF & );
     83    void setValue( const QPointF& );
    8684
    8785    void setLineStyle( LineStyle );
    8886    LineStyle lineStyle() const;
    8987
    90     void setLinePen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    91     void setLinePen( const QPen & );
    92     const QPen &linePen() const;
     88    void setLinePen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
     89    void setLinePen( const QPen& );
     90    const QPen& linePen() const;
    9391
    94     void setSymbol( const QwtSymbol * );
    95     const QwtSymbol *symbol() const;
     92    void setSymbol( const QwtSymbol* );
     93    const QwtSymbol* symbol() const;
    9694
    9795    void setLabel( const QwtText& );
    … …  
    107105    int spacing() const;
    108106
    109     virtual void draw( QPainter *,
    110         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    111         const QRectF & ) const;
     107    virtual void draw( QPainter*,
     108        const QwtScaleMap& xMap, const QwtScaleMap& yMap,
     109        const QRectF& ) const QWT_OVERRIDE;
    112110
    113     virtual QRectF boundingRect() const;
     111    virtual QRectF boundingRect() const QWT_OVERRIDE;
    114112
    115     virtual QwtGraphic legendIcon( int index, const QSizeF & ) const;
     113    virtual QwtGraphic legendIcon(
     114        int index, const QSizeF& ) const QWT_OVERRIDE;
    116115
    117 protected:
    118     virtual void drawLines( QPainter *,
    119         const QRectF &, const QPointF & ) const;
     116  protected:
     117    virtual void drawLines( QPainter*,
     118        const QRectF&, const QPointF& ) const;
    120119
    121     virtual void drawLabel( QPainter *,
    122         const QRectF &, const QPointF & ) const;
     120    virtual void drawSymbol( QPainter*,
     121        const QRectF&, const QPointF& ) const;
    123122
    124 private:
     123    virtual void drawLabel( QPainter*,
     124        const QRectF&, const QPointF& ) const;
     125
     126  private:
    125127
    126128    class PrivateData;
    127     PrivateData *d_data;
     129    PrivateData* m_data;
    128130};
    129131
Note: See TracChangeset for help on using the changeset viewer.