Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_scale_engine.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_scale_engine.h
r8127 r9383 26 26 static double floorEps( double value, double intervalSize ); 27 27 28 static double divideEps( double interval , double steps );29 30 static double divideInterval( double interval ,28 static double divideEps( double intervalSize, double numSteps ); 29 30 static double divideInterval( double intervalSize, 31 31 int numSteps, uint base ); 32 32 }; … … 40 40 The layout of the scale can be varied with setAttribute(). 41 41 42 Qwt offers implementations for logarithmic and linear scales. 42 Qwt offers implementations for logarithmic and linear scales. 43 43 */ 44 44 … … 46 46 { 47 47 public: 48 /*! 48 /*! 49 49 Layout attributes 50 50 \sa setAttribute(), testAttribute(), reference(), … … 65 65 /*! 66 66 The endpoints of the scale are supposed to be equal the 67 outmost included values plus the specified margins 67 outmost included values plus the specified margins 68 68 (see setMargins()). 69 69 If this attribute is *not* set, the endpoints of the scale will … … 91 91 Attributes attributes() const; 92 92 93 void setReference( double reference);93 void setReference( double ); 94 94 double reference() const; 95 95 … … 129 129 130 130 protected: 131 bool contains( const QwtInterval &, double val ) const;131 bool contains( const QwtInterval &, double value ) const; 132 132 QList<double> strip( const QList<double>&, const QwtInterval & ) const; 133 133 134 double divideInterval( double interval , int numSteps ) const;135 136 QwtInterval buildInterval( double v ) const;134 double divideInterval( double intervalSize, int numSteps ) const; 135 136 QwtInterval buildInterval( double value ) const; 137 137 138 138 private: … … 154 154 virtual ~QwtLinearScaleEngine(); 155 155 156 virtual void autoScale( int max Steps,156 virtual void autoScale( int maxNumSteps, 157 157 double &x1, double &x2, double &stepSize ) const; 158 158 159 159 virtual QwtScaleDiv divideScale( double x1, double x2, 160 int numMajorSteps, int numMinorSteps,161 160 int maxMajorSteps, int maxMinorSteps, 161 double stepSize = 0.0 ) const; 162 162 163 163 … … 166 166 167 167 void buildTicks( 168 const QwtInterval &, double stepSize, int maxMin Steps,168 const QwtInterval &, double stepSize, int maxMinorSteps, 169 169 QList<double> ticks[QwtScaleDiv::NTickTypes] ) const; 170 170 … … 194 194 virtual ~QwtLogScaleEngine(); 195 195 196 virtual void autoScale( int max Steps,196 virtual void autoScale( int maxNumSteps, 197 197 double &x1, double &x2, double &stepSize ) const; 198 198 199 199 virtual QwtScaleDiv divideScale( double x1, double x2, 200 int numMajorSteps, int numMinorSteps,200 int maxMajorSteps, int maxMinorSteps, 201 201 double stepSize = 0.0 ) const; 202 202 … … 205 205 206 206 void buildTicks( 207 const QwtInterval &, double stepSize, int maxMin Steps,207 const QwtInterval &, double stepSize, int maxMinorSteps, 208 208 QList<double> ticks[QwtScaleDiv::NTickTypes] ) const; 209 209
Note:
See TracChangeset
for help on using the changeset viewer.