Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_axis.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_axis.cpp
r8127 r9383 68 68 d.scaleEngine = new QwtLinearScaleEngine; 69 69 70 d.scaleWidget->setTransformation( 70 d.scaleWidget->setTransformation( 71 71 d.scaleEngine->transformation() ); 72 72 … … 148 148 d.scaleEngine = scaleEngine; 149 149 150 d_axisData[axisId]->scaleWidget->setTransformation( 150 d_axisData[axisId]->scaleWidget->setTransformation( 151 151 scaleEngine->transformation() ); 152 152 … … 190 190 else 191 191 return false; 192 193 192 } 194 193 … … 289 288 290 289 /*! 291 \brief Return the step size parameter that has been set in setAxisScale. 290 \brief Return the step size parameter that has been set in setAxisScale. 292 291 293 292 This doesn't need to be the step size of the current scale. … … 310 309 311 310 This is only a convenience function for axisScaleDiv( axisId )->interval(); 312 311 313 312 \param axisId Axis index 314 313 \return Scale interval … … 434 433 \brief Disable autoscaling and specify a fixed scale for a selected axis. 435 434 436 In updateAxes() the scale engine calculates a scale division from the 437 specified parameters, that will be assigned to the scale widget. So 435 In updateAxes() the scale engine calculates a scale division from the 436 specified parameters, that will be assigned to the scale widget. So 438 437 updates of the scale widget usually happen delayed with the next replot. 439 438 … … 467 466 468 467 The scale division will be stored locally only until the next call 469 of updateAxes(). So updates of the scale widget usually happen delayed with 468 of updateAxes(). So updates of the scale widget usually happen delayed with 470 469 the next replot. 471 470 … … 615 614 } 616 615 617 /*! 616 /*! 618 617 \brief Rebuild the axes scales 619 618 620 In case of autoscaling the boundaries of a scale are calculated 621 from the bounding rectangles of all plot items, having the 622 QwtPlotItem::AutoScale flag enabled ( QwtScaleEngine::autoScale() ). 623 Then a scale division is calculated ( QwtScaleEngine::didvideScale() ) 619 In case of autoscaling the boundaries of a scale are calculated 620 from the bounding rectangles of all plot items, having the 621 QwtPlotItem::AutoScale flag enabled ( QwtScaleEngine::autoScale() ). 622 Then a scale division is calculated ( QwtScaleEngine::didvideScale() ) 624 623 and assigned to scale widget. 625 624 626 When the scale boundaries have been assigned with setAxisScale() a 625 When the scale boundaries have been assigned with setAxisScale() a 627 626 scale division is calculated ( QwtScaleEngine::didvideScale() ) 628 627 for this interval and assigned to the scale widget. 629 628 630 When the scale has been set explicitly by setAxisScaleDiv() the 629 When the scale has been set explicitly by setAxisScaleDiv() the 631 630 locally stored scale division gets assigned to the scale widget. 632 631 633 The scale widget indicates modifications by emitting a 632 The scale widget indicates modifications by emitting a 634 633 QwtScaleWidget::scaleDivChanged() signal. 635 634 636 updateAxes() is usually called by replot(). 635 updateAxes() is usually called by replot(). 637 636 638 637 \sa setAxisAutoScale(), setAxisScale(), setAxisScaleDiv(), replot()
Note:
See TracChangeset
for help on using the changeset viewer.