Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_scale_div.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_scale_div.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_scale_div.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 12 12 13 13 #include "qwt_global.h" 14 #include "qwt_interval.h"15 14 #include <qlist.h> 16 15 17 #ifndef QT_NO_DEBUG_STREAM 18 #include <qdebug.h> 19 #endif 16 class QwtInterval; 20 17 21 18 /*! 22 \brief A class representing a scale division 19 \brief A class representing a scale division 23 20 24 A Qwt scale is defined by its boundaries and 3 list 25 for the positions of the major, medium and minor ticks. 21 A Qwt scale is defined by its boundaries and 3 list 22 for the positions of the major, medium and minor ticks. 26 23 27 The upperBound() might be smaller than the lowerBound() 28 to indicate inverted scales. 24 The upperBound() might be smaller than the lowerBound() 25 to indicate inverted scales. 29 26 30 Scale divisions can be calculated from a QwtScaleEngine. 27 Scale divisions can be calculated from a QwtScaleEngine. 31 28 32 \sa QwtScaleEngine::divideScale(), QwtPlot::setAxisScaleDiv(), 29 \sa QwtScaleEngine::divideScale(), QwtPlot::setAxisScaleDiv(), 33 30 QwtAbstractSlider::setScaleDiv() 34 */ 31 */ 35 32 36 33 class QWT_EXPORT QwtScaleDiv 37 34 { 38 public: 35 public: 39 36 //! Scale tick types 40 37 enum TickType … … 59 56 double upperBound = 0.0 ); 60 57 61 explicit QwtScaleDiv( const QwtInterval &, QList<double>[NTickTypes] );58 explicit QwtScaleDiv( const QwtInterval&, QList< double >[NTickTypes] ); 62 59 63 60 explicit QwtScaleDiv( double lowerBound, double upperBound, 64 QList< double>[NTickTypes] );61 QList< double >[NTickTypes] ); 65 62 66 63 explicit QwtScaleDiv( double lowerBound, double upperBound, 67 const QList< double> &minorTicks, const QList<double> &mediumTicks,68 const QList< double> &majorTicks );64 const QList< double >& minorTicks, const QList< double >& mediumTicks, 65 const QList< double >& majorTicks ); 69 66 70 bool operator==( const QwtScaleDiv & ) const;71 bool operator!=( const QwtScaleDiv & ) const;67 bool operator==( const QwtScaleDiv& ) const; 68 bool operator!=( const QwtScaleDiv& ) const; 72 69 73 70 void setInterval( double lowerBound, double upperBound ); 74 void setInterval( const QwtInterval & );71 void setInterval( const QwtInterval& ); 75 72 QwtInterval interval() const; 76 73 … … 85 82 bool contains( double value ) const; 86 83 87 void setTicks( int tickType, const QList< double>& );88 QList< double> ticks( int tickType ) const;84 void setTicks( int tickType, const QList< double >& ); 85 QList< double > ticks( int tickType ) const; 89 86 90 87 bool isEmpty() const; … … 96 93 QwtScaleDiv bounded( double lowerBound, double upperBound ) const; 97 94 98 private: 99 double d_lowerBound;100 double d_upperBound;101 QList< double> d_ticks[NTickTypes];95 private: 96 double m_lowerBound; 97 double m_upperBound; 98 QList< double > m_ticks[NTickTypes]; 102 99 }; 103 100 … … 105 102 106 103 #ifndef QT_NO_DEBUG_STREAM 107 QWT_EXPORT QDebug operator<<( QDebug, const QwtScaleDiv & );104 QWT_EXPORT QDebug operator<<( QDebug, const QwtScaleDiv& ); 108 105 #endif 109 106
Note:
See TracChangeset
for help on using the changeset viewer.
