qwtscaleif.3

来自「This a framework to test new ideas in tr」· 3 代码 · 共 225 行

3
225
字号
.TH "QwtScaleIf" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtScaleIf \- .SH SYNOPSIS.br.PPInherited by \fBQwtKnob\fP, \fBQwtSlider\fP, and \fBQwtThermo\fP..PP.SH "Detailed Description".PP An interface class for widgets containing a scale. This interface class is used to provide classes a \fBQwtScaleDraw\fP and an interface to access that scale. .PP.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtScaleIf\fP ()".br.ti -1c.RI "virtual \fB~QwtScaleIf\fP ()".br.ti -1c.RI "void \fBsetScale\fP (double vmin, double vmax, int logarithmic=0)".br.ti -1c.RI "void \fBsetScale\fP (double vmin, double vmax, double step, int logarithmic=0)".br.ti -1c.RI "void \fBsetScale\fP (const  \fBQwtScaleDiv\fP &s)".br.ti -1c.RI "void \fBsetScaleMaxMajor\fP (int ticks)".br.ti -1c.RI "void \fBsetScaleMaxMinor\fP (int ticks)".br.ti -1c.RI "void \fBautoScale\fP ()".br.ti -1c.RI "int \fBscaleMaxMinor\fP () const ".br.ti -1c.RI "int \fBscaleMaxMajor\fP () const ".br.ti -1c.RI "void \fBsetScaleDraw\fP (\fBQwtScaleDraw\fP *)".br.ti -1c.RI "const  \fBQwtScaleDraw\fP * \fBscaleDraw\fP () const ".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "bool \fBhasUserScale\fP ()".br.ti -1c.RI "virtual void \fBscaleChange\fP ()=0".br.ti -1c.RI "\fBQwtScaleDraw\fP * \fBscaleDraw\fP ()".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtScaleIf::QwtScaleIf ()".PPConstructor. .SS "QwtScaleIf::~\fBQwtScaleIf\fP ()\fC [virtual]\fP".PPDestructor. .SH "Member Function Documentation".PP .SS "void QwtScaleIf::autoScale ()".PPAdvise the widget to control the scale range internally. Autoscaling is on by default. .PP\fBSee also:\fP.RS 4\fBQwtScaleIf::setScale()\fP .RE.PP.SS "bool QwtScaleIf::hasUserScale ()\fC [protected]\fP".PPCheck for user-defined scale. .SS "virtual void QwtScaleIf::scaleChange ()\fC [protected, pure virtual]\fP".PPNotify changed scale. Implemented in \fBQwtSlider\fP, and \fBQwtThermo\fP..SS "\fBQwtScaleDraw\fP * QwtScaleIf::scaleDraw ()\fC [protected]\fP".PP\fBReturns:\fP.RS 4scale draw .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleIf::setScaleDraw\fP .RE.PP.SS "const  \fBQwtScaleDraw\fP * QwtScaleIf::scaleDraw () const".PP\fBReturns:\fP.RS 4scale draw .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleIf::setScaleDraw\fP .RE.PP.SS "int QwtScaleIf::scaleMaxMajor () const".PP\fBReturns:\fP.RS 4max. number of major tick intervals .RE.PP.SS "int QwtScaleIf::scaleMaxMinor () const".PP\fBReturns:\fP.RS 4max. number of minor tick intervals .RE.PP.SS "void QwtScaleIf::setScale (const \fBQwtScaleDiv\fP & s)".PPAssign a user-defined scale division .PP\fBParameters:\fP.RS 4\fIs\fP scale division .RE.PP.SS "void QwtScaleIf::setScale (double vmin, double vmax, double step, int logarithmic = 0)".PPSpecify a user-defined scale. By default, the widget is supposed to control the range of its scale automatically, but sometimes it is desirable to have a user-defined scale which is not in sync with the widget's range, e.g. if a logarithmic scale is needed (sliders don't support that) or if the scale is required to have a fixed range (say 0...100%), independent of the widget's range. .PP\fBParameters:\fP.RS 4\fIvmin\fP .br\fIvmax\fP interval boundaries .br\fIstep\fP major step size .br\fIlogarithmic\fP If != 0, build a logarithmic scale .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleIf::autoScale()\fP .RE.PP.SS "void QwtScaleIf::setScale (double vmin, double vmax, int logarithmic = 0)".PPSpecify a user-defined scale. By default, the widget is supposed to control the range of its scale automatically, but sometimes it is desirable to have a user-defined scale which is not in sync with the widget's range, e.g. if a logarithmic scale is needed (sliders don't support that) or if the scale is required to have a fixed range (say 0...100%), independent of the widget's range. .PP\fBParameters:\fP.RS 4\fIvmin\fP .br\fIvmax\fP boundary values .br\fIlogarithmic\fP If != 0, Build a logarithmic scale .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleIf::autoScale()\fP .RE.PP.SS "void QwtScaleIf::setScaleDraw (\fBQwtScaleDraw\fP * sd)".PPSet a scale draw sd has to be created with new and will be deleted in \fBQwtScaleIf::~QwtScaleIf\fP or the next call of \fBQwtScaleIf::setScaleDraw\fP. .SS "void QwtScaleIf::setScaleMaxMajor (int ticks)".PPSet the maximum number of major tick intervals. The scale's major ticks are calculated automatically such that the number of major intervals does not exceed ticks. The default value is 5. .PP\fBParameters:\fP.RS 4\fIticks\fP maximal number of major ticks. .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleDraw\fP .RE.PP.SS "void QwtScaleIf::setScaleMaxMinor (int ticks)".PPSet the maximum number of minor tick intervals. The scale's minor ticks are calculated automatically such that the number of minor intervals does not exceed ticks. The default value is 3. .PP\fBParameters:\fP.RS 4\fIticks\fP .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleDraw\fP .RE.PP.SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.

⌨️ 快捷键说明

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