⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwtautoscale.3

📁 linux下qt的第三方的一个类
💻 3
📖 第 1 页 / 共 2 页
字号:
.RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setMaxMinor()\fP .RE.PPDefinition at line 81 of file qwt_autoscl.cpp..PPReferenced by QwtPlot::axisMaxMinor()..SS "bool QwtAutoScale::option (int opt) const".PPReturns TRUE if the specified option is set. .PP\fBParameters:\fP.RS 4\fIopt\fP Option .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setOptions()\fP .RE.PPDefinition at line 697 of file qwt_autoscl.cpp..SS "int QwtAutoScale::options () const".PP\fBReturns:\fP.RS 4options .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setOptions()\fP, \fBQwtAutoScale::option()\fP .RE.PPDefinition at line 707 of file qwt_autoscl.cpp..PPReferenced by QwtPlot::axisOptions()..SS "double QwtAutoScale::reference () const".PP\fBReturns:\fP.RS 4the reference value .RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setOptions()\fP, \fBQwtAutoScale::option()\fP .RE.PPDefinition at line 686 of file qwt_autoscl.cpp..PPReferenced by QwtPlot::axisReference()..SS "void QwtAutoScale::reset ()".PPSet the interval boundaries to zero and clear the scale division. .PPThis member function resets an AutoScale object to its initial state. It is needed to clean up the scale before or after subsequent \fBadjust()\fP calls. The boundaries of the scale are set to zero and the scale division is cleared..PP\fBWarning:\fP.RS 4A reset doesn't affect the margins. .RE.PPDefinition at line 413 of file qwt_autoscl.cpp..PPReferences QwtScaleDiv::reset()..PPReferenced by QwtPlot::updateAxes()..SS "const \fBQwtScaleDiv\fP & QwtAutoScale::scaleDiv () const".PPThe scale division consists of two boundary values, an array of major tickmarks and an array of minor tickmarks. .PP\fBReturns:\fP.RS 4a const reference to the scale division .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleDiv\fP .RE.PPDefinition at line 720 of file qwt_autoscl.cpp..PPReferenced by QwtPlot::axisScale(), QwtPlot::canvasMap(), and QwtPlot::print()..SS "void QwtAutoScale::setAutoRebuild (bool tf)".PPIf true, rebuild scale automatically with call to 'adjust' .PP\fBSee also:\fP.RS 4\fBQwtAutoScale::autoRebuild()\fP .RE.PPDefinition at line 730 of file qwt_autoscl.cpp..SS "void QwtAutoScale::setAutoScale ()".PPEnable auto-scaling. .PPThis function is used to switch back to auto-scaling mode if the scale has been frozen temporarily (see \fBsetScale()\fP)..PPWhen auto-scaling is reactivated, the scale will be rebuild, which means that .PD 0.IP "\(bu" 2if adjust or setMaxIntv have been called in between, the scale will be adjusted to the new conditions. .IP "\(bu" 2if none of these functions and no reset has been called, the old state will be restored. .IP "\(bu" 2if only reset has been called in between, nothing will happen..PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setScale()\fP .RE.PPDefinition at line 439 of file qwt_autoscl.cpp..PPReferences build()..PPReferenced by QwtPlot::setAxisAutoScale()..SS "void QwtAutoScale::setMargins (double mlo, double mhi)".PPSpecify margins at the scale's endpoints. .PP\fBParameters:\fP.RS 4\fImlo\fP minimum distance between the scale's lower boundary and the smallest enclosed value .br\fImhi\fP minimum distance between the scale's upper boundary and the greatest enclosed value.RE.PPMargins can be used to leave a minimum amount of space between the enclosed intervals and the boundaries of the scale..PP\fBWarning:\fP.RS 4.PD 0.IP "\(bu" 2With logarithmic scales, the margins are measured in decades. .IP "\(bu" 2The margins will not be changed by any other member function. You should remember this when you call \fBreset()\fP or change from a linear to a logarithmic scale. .PP.RE.PPDefinition at line 461 of file qwt_autoscl.cpp..PPReferences build()..PPReferenced by QwtPlot::setAxisMargins()..SS "void QwtAutoScale::setMaxMajor (int mx)".PPSpecify the maximum number of major intervals. .PP\fBParameters:\fP.RS 4\fImx\fP maximum number of subintervals.RE.PPThe auto-scaler places the major ticks at reasonable points, such that the number of major tick intervals does not exceed the specified maximum number. Definition at line 477 of file qwt_autoscl.cpp..PPReferences build()..PPReferenced by QwtPlot::setAxisMaxMajor()..SS "void QwtAutoScale::setMaxMinor (int mx)".PPSpecify the maximum number of minor subdivisions within major scale intervals. .PP\fBParameters:\fP.RS 4\fImx\fP maximum number of minor ticks .RE.PPDefinition at line 489 of file qwt_autoscl.cpp..PPReferences build()..PPReferenced by QwtPlot::setAxisMaxMinor()..SS "void QwtAutoScale::setOptions (int opt)".PPReset scale options and set specified options. .PP\fBParameters:\fP.RS 4\fIopt\fP Combined set of options.RE.PPThe behaviour of the auto-scaling algorithm can be changed with the following options: .IP "\fBQwtAutoScale::None \fP" 1cSwitch all options off. .IP "\fBQwtAutoscale::IncludeRef \fP" 1cBuild a scale which includes the reference value. .IP "\fBQwtAutoScale::Symmetric \fP" 1cBuild a scale which is symmetric to the reference value. .IP "\fBQwtAutoScale::Logarithmic \fP" 1cBuild a logarithmic scale. .IP "\fBQwtAutoScale::Floating \fP" 1cThe endpoints of the scale are supposed to be equal the outmost included values plus the specified margins (see \fBsetMargins()\fP). If this option is not* set, the endpoints of the scale will be integer multiples of the step size. .IP "\fBQwtAutoScale::Inverted \fP" 1cTurn the scale upside down. .PP.PP\fBWarning:\fP.RS 4.PD 0.IP "\(bu" 2If the type of scale division is changed from logarithmic to linear or vice versa, the margins will not be transformed. Note that the margins count in decades if the scale is logarithmic. .IP "\(bu" 2If a linear scale contains negative values, switching to a logarithmic scale will cut them off and set the lower scale boundary to its lowest possible value of 1.0E-100. This effect is reversible if you switch back to a linear scale. .IP "\(bu" 2The options have no effect while auto-scaling is turned off (see \fBsetScale()\fP).PPExample:.PP.nf#include '../include/qwt_autoscl.h>void main() {    QwtAutoScale as;    // build linear scale with default settings    as.adjust(17.45, 87344.0);    //...    // change to logarithmic scale with floating ends    as.setOptions(QwtAutoScale::Floating | QwtAutoscale::Logarithmic);    //...    // change to linear, zero-symmetric scale    as.setOptions(QwtAutoScale::ZeroSymmetric);    //...}.fi.PP.RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::changeOptions()\fP for a description of the possible \fBoptions\fP. .RE.PPDefinition at line 649 of file qwt_autoscl.cpp..PPReferences build()..PPReferenced by QwtPlot::setAxisOptions()..SS "void QwtAutoScale::setRange (double x1, double x2)\fC [protected]\fP".PPSpecify a user-defined range. .PP\fBParameters:\fP.RS 4\fIx1\fP user-defined lower boundary .br\fIx2\fP user-defined upper boundary.RE.PP\fBWarning:\fP.RS 4.PD 0.IP "\(bu" 2if x1 > x2, the lower boundary will be set to x2 and the upper boundary to x1. .IP "\(bu" 2if x1 == x2, the auto-scaler sets the boundaries to (-0.5, 0.5) for linear scales and to (LOG_MIN, LOG_MAX) for logarithmic scales..PP.RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setScale()\fP, \fBLOG_MIN\fP, \fBLOG_MAX\fP. .RE.PPDefinition at line 510 of file qwt_autoscl.cpp..PPReferences LOG_MAX, and LOG_MIN..PPReferenced by buildLinScale(), buildLogScale(), and setScale()..SS "void QwtAutoScale::setReference (double r)".PPSpecify a reference point. .PP\fBParameters:\fP.RS 4\fIr\fP new reference value.RE.PPThe reference point is needed if the auto-scaler options IncludeRef or Symmetric are active. Its default value is 0 for linear scales and 1 for logarithmic scales..PP\fBWarning:\fP.RS 4The reference value for logarithmic scales is limited to ( LOG_MIN / 2 <= reference <= LOG_MAX /2 ). If the specified value is less than LOG_MIN, it will be set to 1.0 for logarithmic scales..RE.PP\fBSee also:\fP.RS 4\fBLOG_MIN\fP, \fBLOG_MAX\fP. .RE.PPDefinition at line 670 of file qwt_autoscl.cpp..PPReferences build(), LOG_MAX, and LOG_MIN..PPReferenced by QwtPlot::setAxisReference()..SS "void QwtAutoScale::setScale (double xmin, double xmax, double step = \fC0.0\fP)".PPSpecify a user-defined scale and switch off auto-scaling. .PP\fBParameters:\fP.RS 4\fIxmin\fP user-defined lower boundary .br\fIxmax\fP user-defined upper boundary .br\fIstep\fP user-defined fixed major step size.RE.PPA fixed scale may be used for different purposes, e.g. zooming. If the step argument is left out or less or equal to zero, the auto-scaler will calculate the major step size size according to the maxMajor setting..PPThe fixed-scale mode can switched off using \fBsetAutoScale()\fP, which restores the previous values..PP\fBWarning:\fP.RS 4.PD 0.IP "\(bu" 2if xmin > xmax, the lower boundary will be set to xmax and the upper boundary to xmin. .IP "\(bu" 2if xmin == xmax, the auto-scaler sets the boundaries to (-0.5, 0.5) for linear scales and to (LOG_MIN, LOG_MAX) for logarithmic scales. .IP "\(bu" 2Options and margins have no effect while auto-scaling is switched off..PP.RE.PP\fBSee also:\fP.RS 4\fBQwtAutoScale::setMaxMajor()\fP, \fBQwtAutoScale::setAutoScale()\fP, \fBLOG_MIN\fP, \fBLOG_MAX\fP. .RE.PPDefinition at line 576 of file qwt_autoscl.cpp..PPReferences build(), and setRange()..PPReferenced by QwtPlot::setAxisScale()..SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -