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

📄 qwtscaledraw.3

📁 linux下qt的第三方的一个类
💻 3
📖 第 1 页 / 共 2 页
字号:
.PP\fBParameters:\fP.RS 4\fIfm\fP QFontMetrics .RE.PP\fBReturns:\fP.RS 4the maximum width of a label .RE.PPDefinition at line 736 of file qwt_scldraw.cpp..PPReferences labelBoundingRect(), QwtScaleDiv::logScale(), QwtScaleDiv::majCnt(), QwtScaleDiv::majMark(), QwtScaleDiv::majStep(), and maxWidth()..PPReferenced by maxWidth(), minHeight(), and minWidth()..SS "int QwtScaleDraw::maxWidth (const QPen & pen, const QFontMetrics & fm) const".PP\fBParameters:\fP.RS 4\fIpen\fP pen .br\fIfm\fP font metrics .RE.PP\fBReturns:\fP.RS 4the maximum width of the scale .RE.PPDefinition at line 487 of file qwt_scldraw.cpp..PPReferences maxLabelWidth()..PPReferenced by QwtScale::layoutScale(), maxLabelWidth(), and QwtDial::scaleContentsRect()..SS "void QwtScaleDraw::minBorderDist (const QFontMetrics & fm, int & start, int & end) const".PPDetermine the minimum border distance. .PPThis member function returns the minimum space needed to draw the mark labels at the scale's endpoints..PP\fBParameters:\fP.RS 4\fIfm\fP QFontMetrics .br\fIstart\fP start border distance .br\fIend\fP end border distance .RE.PPDefinition at line 839 of file qwt_scldraw.cpp..PPReferences labelBoundingRect(), QwtScaleDiv::majCnt(), and QwtScaleDiv::majMark()..PPReferenced by QwtSlider::layoutSlider(), QwtThermo::layoutThermo(), QwtScale::minBorderDist(), minHeight(), QwtSlider::minimumSizeHint(), and minWidth()..SS "int QwtScaleDraw::minHeight (const QPen & pen, const QFontMetrics & fm) const".PP\fBParameters:\fP.RS 4\fIpen\fP pen .br\fIfm\fP font metrics .RE.PP\fBReturns:\fP.RS 4the minimum height required to draw the scale including the minimum border distance .RE.PPDefinition at line 960 of file qwt_scldraw.cpp..PPReferences QwtScaleDiv::majCnt(), maxLabelHeight(), maxLabelWidth(), minBorderDist(), QwtScaleDiv::minCnt(), and minLabelDist()..PPReferenced by QwtScale::dimForLength(), QwtThermo::minimumSizeHint(), QwtSlider::minimumSizeHint(), QwtScale::minimumSizeHint(), QwtKnob::minimumSizeHint(), QwtDial::minimumSizeHint(), and QwtDial::sizeHint()..SS "int QwtScaleDraw::minLabelDist (const QFontMetrics & fm) const".PPDetermine the minimum distance between two labels, that is necessairy that the texts don't overlap..PP\fBParameters:\fP.RS 4\fIfm\fP QFontMetrics .RE.PP\fBReturns:\fP.RS 4the maximum width of a label .RE.PP\fBWarning:\fP.RS 4Not implemented for round scales .RE.PPDefinition at line 880 of file qwt_scldraw.cpp..PPReferences labelBoundingRect(), QwtScaleDiv::majCnt(), and QwtScaleDiv::majMark()..PPReferenced by minHeight(), and minWidth()..SS "int QwtScaleDraw::minWidth (const QPen & pen, const QFontMetrics & fm) const".PP\fBParameters:\fP.RS 4\fIpen\fP pen .br\fIfm\fP font metrics .RE.PP\fBReturns:\fP.RS 4the minimum width required to draw the scale including the minimum border distance .RE.PPDefinition at line 1000 of file qwt_scldraw.cpp..PPReferences QwtScaleDiv::majCnt(), maxLabelWidth(), minBorderDist(), QwtScaleDiv::minCnt(), and minLabelDist()..PPReferenced by QwtScale::dimForLength(), QwtThermo::minimumSizeHint(), QwtSlider::minimumSizeHint(), and QwtScale::minimumSizeHint()..SS "int QwtScaleDraw::options () const".PP\fBReturns:\fP.RS 4scale draw options .RE.PPDefinition at line 65 of file qwt_scldraw.cpp..PPReferenced by draw(), and QwtDial::setScaleOptions()..SS "\fBQwtScaleDraw::Orientation\fP QwtScaleDraw::orientation () const".PPReturn scale orientation. .PPDefinition at line 1082 of file qwt_scldraw.cpp..PPReferences Orientation..PPReferenced by QwtScale::dimForLength(), QwtScale::draw(), QwtScale::layoutScale(), QwtScale::minimumSizeHint(), QwtScale::position(), QwtThermo::sizePolicy(), and QwtScale::sizePolicy()..SS "const \fBQwtScaleDiv\fP& QwtScaleDraw::scaleDiv () const".PP\fBReturns:\fP.RS 4scale division .RE.PPDefinition at line 74 of file qwt_scldraw.h..PPReferenced by QwtThermo::setRange(), QwtScaleIf::setScale(), QwtScale::setScaleDiv(), QwtScaleIf::setScaleMaxMajor(), QwtScaleIf::setScaleMaxMinor(), and QwtPlot::sizeHint()..SS "void QwtScaleDraw::setAngleRange (double angle1, double angle2)".PPAdjust the baseline circle segment for round scales. .PPThe baseline will be drawn from min(angle1,angle2) to max(angle1, angle2). The settings have no effect if the scale orientation is not set to QwtScaleDraw::Round. The default setting is [ -135, 135 ]. An angle of 0 degrees corresponds to the 12 o'clock position, and positive angles count in a clockwise direction. .PP\fBParameters:\fP.RS 4\fIangle1\fP .br\fIangle2\fP boundaries of the angle interval in degrees. .RE.PP\fBWarning:\fP.RS 4.PD 0.IP "\(bu" 2The angle range is limited to [-360, 360] degrees. Angles exceeding this range will be clipped. .IP "\(bu" 2For angles more than 359 degrees above or below min(angle1, angle2), scale marks will not be drawn. .IP "\(bu" 2If you need a counterclockwise scale, use QwtScaleDiv::setRange .PP.RE.PPDefinition at line 611 of file qwt_scldraw.cpp..PPReferences qwtLim(), and QwtDiMap::setIntRange()..PPReferenced by QwtDial::drawScale(), and QwtKnob::setTotalAngle()..SS "void QwtScaleDraw::setGeometry (int xorigin, int yorigin, int length, \fBOrientation\fP o)".PPSpecify the geometry of the scale. .PPThe parameters xorigin, yorigin and length have different meanings, dependent on the orientation: .IP "\fBQwtScaleDraw::Left \fP" 1cThe origin is the topmost point of the baseline. The baseline is a vertical line with the specified length. Scale marks and labels are drawn at the left of the baseline. .IP "\fBQwtScaleDraw::Right \fP" 1cThe origin is the topmost point of the baseline. The baseline is a vertical line with the specified length. Scale marks and labels are drawn at the right of the baseline. .IP "\fBQwtScaleDraw::Top \fP" 1cThe origin is the leftmost point of the baseline. The baseline is a horizontal line with the specified length. Scale marks and labels are drawn above the baseline. .IP "\fBQwtScaleDraw::Bottom \fP" 1cThe origin is the leftmost point of the baseline. The baseline is a horizontal line with the specified length. Scale marks and labels are drawn below the baseline. .IP "\fBQwtScaleDraw::Round \fP" 1cThe origin is the top left corner of the bounding rectangle of the baseline circle. The baseline is the segment of a circle with a diameter of the specified length. Scale marks and labels are drawn outside the baseline circle..PP.PP\fBParameters:\fP.RS 4\fIxorigin\fP x coordinate of the origin .br\fIyorigin\fP y coordinate of the origin .br\fIlength\fP length or diameter of the scale, excluding border distance .br\fIo\fP The orientation .RE.PPDefinition at line 448 of file qwt_scldraw.cpp..PPReferences QwtDiMap::setIntRange()..PPReferenced by QwtDial::drawScale(), QwtScale::layoutScale(), QwtSlider::layoutSlider(), QwtThermo::layoutThermo(), QwtPlot::printScale(), QwtDial::QwtDial(), QwtKnob::QwtKnob(), QwtScaleDraw(), QwtSlider::QwtSlider(), and QwtScale::setPosition()..SS "void QwtScaleDraw::setLabelAlignment (int alignment)".PPLabels are aligned to the point ticklength + margin away from the backbone. The alignment is relative to the orientation of the label text. In case of an alignment of 0 the label will be aligned depending on the orientation of the scale:.PPQwtScaleDraw::Top: Qt::AlignHCenter | Qt::AlignTop.br QwtScaleDraw::Bottom: Qt::AlignHCenter | Qt::AlignBottom.br QwtScaleDraw::Left: Qt::AlignLeft | Qt::AlignVCenter.br QwtScaleDraw::Right: Qt::AlignRight | Qt::AlignVCenter.br.PPChanging the alignment is often necessary for rotated labels..PP\fBParameters:\fP.RS 4\fIalignment\fP Or'd Qt::AlignmentFlags <see qnamespace.h> .RE.PP\fBWarning:\fP.RS 4Alignment of labels is not implemented for round scales. .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleDraw::setLabelRotation()\fP, \fBQwtScaleDraw::labelRotation()\fP, \fBQwtScaleDraw::labelAlignment()\fP .RE.PPDefinition at line 579 of file qwt_scldraw.cpp..PPReferenced by QwtScale::setLabelAlignment()..SS "void QwtScaleDraw::setLabelFormat (char f, int prec, int fieldwidth = \fC0\fP)".PPSet the number format for the major scale labels. .PPFormat character, precision and fieldwidth have the same meaning as for sprintf(). .PP\fBParameters:\fP.RS 4\fIf\fP format character 'e', 'f', 'g' .br\fIprec\fP .IP "\(bu" 2for 'e', 'f': the number of digits after the radix character (point).IP "\(bu" 2for 'g': the maximum number of significant digits .PP.br\fIfieldwidth\fP fieldwidth.RE.PP\fBNote:\fP.RS 4precision and fieldwidth must be in the range 0, 1, .., 99. Invalid input is discarded..RE.PP\fBSee also:\fP.RS 4\fBlabelFormat()\fP .RE.PPDefinition at line 646 of file qwt_scldraw.cpp..PPReferenced by QwtScale::setLabelFormat()..SS "void QwtScaleDraw::setLabelRotation (double rotation)".PPRotate all labels..PP\fBParameters:\fP.RS 4\fIrotation\fP Angle in degrees. When changing the label rotation, the label alignment might be adjusted too. .RE.PP\fBSee also:\fP.RS 4\fBsetLabelAlignment()\fP, \fBlabelRotation()\fP, \fBlabelAlignment()\fP. .RE.PP\fBWarning:\fP.RS 4Rotation of labels is not implemented for round scales. .RE.PPDefinition at line 546 of file qwt_scldraw.cpp..PPReferenced by QwtScale::setLabelRotation()..SS "void QwtScaleDraw::setMargin (uint hMargin, uint vMargin)".PPSet the margins of the ticks.PP\fBParameters:\fP.RS 4\fIhMargin\fP Horizontal margin .br\fIvMargin\fP Vertical margin .RE.PPDefinition at line 692 of file qwt_scldraw.cpp..SS "void QwtScaleDraw::setOptions (int opt)".PPChange the scale draw options. .PPDefinition at line 57 of file qwt_scldraw.cpp..PPReferenced by QwtDial::setScaleOptions()..SS "void QwtScaleDraw::setScale (double x1, double x2, int maxMajIntv, int maxMinIntv, double step = \fC0.0\fP, int logscale = \fC0\fP)".PPAdjust the range of the scale. .PPIf step == 0.0, the step width is calculated automatically dependent on the maximal number of scale ticks. .PP\fBParameters:\fP.RS 4\fIx1\fP Value at the left/low endpoint of the scale .br\fIx2\fP Value at the right/high endpoint of the scale .br\fImaxMajIntv\fP Max. number of major step intervals .br\fImaxMinIntv\fP Max. number of minor step intervals .br\fIstep\fP Step size (default : 0.0) .br\fIlogscale\fP Logarithmic scale (default : 0) .RE.PPDefinition at line 82 of file qwt_scldraw.cpp..PPReferences QwtScaleDiv::hBound(), QwtScaleDiv::lBound(), QwtScaleDiv::logScale(), QwtScaleDiv::rebuild(), and QwtDiMap::setDblRange()..SS "void QwtScaleDraw::setScale (const \fBQwtScaleDiv\fP & sd)".PPChange the scale division. .PP\fBParameters:\fP.RS 4\fIsd\fP new scale division .RE.PPDefinition at line 94 of file qwt_scldraw.cpp..PPReferences QwtScaleDiv::hBound(), QwtScaleDiv::lBound(), QwtScaleDiv::logScale(), and QwtDiMap::setDblRange()..PPReferenced by QwtScaleDraw(), QwtScaleIf::QwtScaleIf(), QwtSlider::rangeChange(), QwtSlider::scaleChange(), QwtThermo::setRange(), QwtScaleIf::setScale(), QwtScale::setScaleDiv(), QwtScaleIf::setScaleMaxMajor(), QwtScaleIf::setScaleMaxMinor(), and QwtDial::updateScale()..SS "void QwtScaleDraw::setTickLength (unsigned int minLen, unsigned int medLen, unsigned int majLen)".PPSet the length of the ticks Definition at line 701 of file qwt_scldraw.cpp..PPReferenced by QwtDial::setScaleOptions(), and QwtDial::setScaleTicks()..SS "void QwtScaleDraw::tickLength (unsigned int & minLen, unsigned int & medLen, unsigned int & majLen) const".PPReturn the length of the ticks .PP\fBSee also:\fP.RS 4\fBQwtScaleDraw::majTickLength()\fP .RE.PPDefinition at line 715 of file qwt_scldraw.cpp..SS "int QwtScaleDraw::x () const".PPReturn x origin. .PPDefinition at line 1064 of file qwt_scldraw.cpp..PPReferenced by labelPlacement(), labelWorldMatrix(), and QwtPlot::printScale()..SS "int QwtScaleDraw::y () const".PPReturn y origin. .PPDefinition at line 1070 of file qwt_scldraw.cpp..PPReferenced by labelPlacement(), labelWorldMatrix(), and QwtPlot::printScale()..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 + -