Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_transform.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_transform.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_transform.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 32 32 - p = p1 + ( p2 - p1 ) * ( T( s ) - T( s1 ) / ( T( s2 ) - T( s1 ) ); 33 33 - s = invT ( T( s1 ) + ( T( s2 ) - T( s1 ) ) * ( p - p1 ) / ( p2 - p1 ) ); 34 */ 34 */ 35 35 class QWT_EXPORT QwtTransform 36 36 { 37 public: 37 public: 38 38 QwtTransform(); 39 39 virtual ~QwtTransform(); … … 66 66 67 67 //! Virtualized copy operation 68 virtual QwtTransform *copy() const = 0; 68 virtual QwtTransform* copy() const = 0; 69 70 private: 71 Q_DISABLE_COPY(QwtTransform) 69 72 }; 70 73 … … 75 78 76 79 */ 77 class QWT_EXPORT QwtNullTransform: public QwtTransform 80 class QWT_EXPORT QwtNullTransform : public QwtTransform 78 81 { 79 public: 82 public: 80 83 QwtNullTransform(); 81 84 virtual ~QwtNullTransform(); 82 85 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; 85 88 86 virtual QwtTransform *copy() const;89 virtual QwtTransform* copy() const QWT_OVERRIDE; 87 90 }; 88 91 /*! … … 95 98 for log2(), log10() or any other logarithmic scale. 96 99 */ 97 class QWT_EXPORT QwtLogTransform: public QwtTransform 100 class QWT_EXPORT QwtLogTransform : public QwtTransform 98 101 { 99 public: 102 public: 100 103 QwtLogTransform(); 101 104 virtual ~QwtLogTransform(); 102 105 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; 105 108 106 virtual double bounded( double value ) const; 109 virtual double bounded( double value ) const QWT_OVERRIDE; 107 110 108 virtual QwtTransform *copy() const;111 virtual QwtTransform* copy() const QWT_OVERRIDE; 109 112 110 #if QT_VERSION >= 0x050400111 113 static const double LogMin; 112 114 static const double LogMax; 113 #else114 QT_STATIC_CONST double LogMin;115 QT_STATIC_CONST double LogMax;116 #endif117 115 }; 118 116 … … 125 123 can be used for scales including negative values. 126 124 */ 127 class QWT_EXPORT QwtPowerTransform: public QwtTransform 125 class QWT_EXPORT QwtPowerTransform : public QwtTransform 128 126 { 129 public: 130 QwtPowerTransform( double exponent ); 127 public: 128 explicit QwtPowerTransform( double exponent ); 131 129 virtual ~QwtPowerTransform(); 132 130 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; 135 133 136 virtual QwtTransform *copy() const;134 virtual QwtTransform* copy() const QWT_OVERRIDE; 137 135 138 private: 139 const double d_exponent;136 private: 137 const double m_exponent; 140 138 }; 141 139
Note:
See TracChangeset
for help on using the changeset viewer.
