Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_transform.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_transform.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    3232   - p = p1 + ( p2 - p1 ) * ( T( s ) - T( s1 ) / ( T( s2 ) - T( s1 ) );
    3333   - s = invT ( T( s1 ) + ( T( s2 ) - T( s1 ) ) * ( p - p1 ) / ( p2 - p1 ) );
    34 */
     34 */
    3535class QWT_EXPORT QwtTransform
    3636{
    37 public:
     37  public:
    3838    QwtTransform();
    3939    virtual ~QwtTransform();
    … …  
    6666
    6767    //! Virtualized copy operation
    68     virtual QwtTransform *copy() const = 0;
     68    virtual QwtTransform* copy() const = 0;
     69
     70  private:
     71    Q_DISABLE_COPY(QwtTransform)
    6972};
    7073
    … …  
    7578
    7679 */
    77 class QWT_EXPORT QwtNullTransform: public QwtTransform
     80class QWT_EXPORT QwtNullTransform : public QwtTransform
    7881{
    79 public:
     82  public:
    8083    QwtNullTransform();
    8184    virtual ~QwtNullTransform();
    8285
    83     virtual double transform( double value ) const;
    84     virtual double invTransform( double value ) const;
     86    virtual double transform( double value ) const QWT_OVERRIDE;
     87    virtual double invTransform( double value ) const QWT_OVERRIDE;
    8588
    86     virtual QwtTransform *copy() const;
     89    virtual QwtTransform* copy() const QWT_OVERRIDE;
    8790};
    8891/*!
    … …  
    9598         for log2(), log10() or any other logarithmic scale.
    9699 */
    97 class QWT_EXPORT QwtLogTransform: public QwtTransform
     100class QWT_EXPORT QwtLogTransform : public QwtTransform
    98101{
    99 public:
     102  public:
    100103    QwtLogTransform();
    101104    virtual ~QwtLogTransform();
    102105
    103     virtual double transform( double value ) const;
    104     virtual double invTransform( double value ) const;
     106    virtual double transform( double value ) const QWT_OVERRIDE;
     107    virtual double invTransform( double value ) const QWT_OVERRIDE;
    105108
    106     virtual double bounded( double value ) const;
     109    virtual double bounded( double value ) const QWT_OVERRIDE;
    107110
    108     virtual QwtTransform *copy() const;
     111    virtual QwtTransform* copy() const QWT_OVERRIDE;
    109112
    110 #if QT_VERSION >= 0x050400
    111113    static const double LogMin;
    112114    static const double LogMax;
    113 #else
    114     QT_STATIC_CONST double LogMin;
    115     QT_STATIC_CONST double LogMax;
    116 #endif
    117115};
    118116
    … …  
    125123   can be used for scales including negative values.
    126124 */
    127 class QWT_EXPORT QwtPowerTransform: public QwtTransform
     125class QWT_EXPORT QwtPowerTransform : public QwtTransform
    128126{
    129 public:
    130     QwtPowerTransform( double exponent );
     127  public:
     128    explicit QwtPowerTransform( double exponent );
    131129    virtual ~QwtPowerTransform();
    132130
    133     virtual double transform( double value ) const;
    134     virtual double invTransform( double value ) const;
     131    virtual double transform( double value ) const QWT_OVERRIDE;
     132    virtual double invTransform( double value ) const QWT_OVERRIDE;
    135133
    136     virtual QwtTransform *copy() const;
     134    virtual QwtTransform* copy() const QWT_OVERRIDE;
    137135
    138 private:
    139     const double d_exponent;
     136  private:
     137    const double m_exponent;
    140138};
    141139
Note: See TracChangeset for help on using the changeset viewer.