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

📄 qwtdoublerect.3

📁 linux下qt的第三方的一个类
💻 3
字号:
.TH "QwtDoubleRect" 3 "16 Nov 2004" "Version 4.2.0" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtDoubleRect \- .SH SYNOPSIS.br.PP.SH "Detailed Description".PP The QwtDoubleRect class defines a size in double coordinates. .PPDefinition at line 108 of file qwt_double_rect.h..SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtDoubleRect\fP ()".br.ti -1c.RI "\fBQwtDoubleRect\fP (double x1, double x2, double y1, double y2)".br.ti -1c.RI "\fBQwtDoubleRect\fP (double x, double y, const \fBQwtDoubleSize\fP &)".br.ti -1c.RI "bool \fBisNull\fP () const".br.ti -1c.RI "bool \fBisEmpty\fP () const".br.ti -1c.RI "bool \fBisValid\fP () const".br.ti -1c.RI "\fBQwtDoubleRect\fP \fBnormalize\fP () const".br.ti -1c.RI "double \fBx1\fP () const".br.ti -1c.RI "double \fBx2\fP () const".br.ti -1c.RI "double \fBy1\fP () const".br.ti -1c.RI "double \fBy2\fP () const".br.ti -1c.RI "double & \fBrx1\fP ()".br.ti -1c.RI "double & \fBrx2\fP ()".br.ti -1c.RI "double & \fBry1\fP ()".br.ti -1c.RI "double & \fBry2\fP ()".br.ti -1c.RI "void \fBsetX1\fP (double)".br.ti -1c.RI "void \fBsetX2\fP (double)".br.ti -1c.RI "void \fBsetY1\fP (double)".br.ti -1c.RI "void \fBsetY2\fP (double)".br.ti -1c.RI "\fBQwtDoublePoint\fP \fBcenter\fP () const".br.ti -1c.RI "void \fBmoveX\fP (double x)".br.ti -1c.RI "void \fBmoveY\fP (double y)".br.ti -1c.RI "void \fBmove\fP (double x, double y)".br.ti -1c.RI "void \fBmoveBy\fP (double dx, double dy)".br.ti -1c.RI "void \fBmoveCenter\fP (const \fBQwtDoublePoint\fP &)".br.ti -1c.RI "void \fBmoveCenter\fP (double dx, double dy)".br.ti -1c.RI "void \fBsetRect\fP (double x1, double x2, double y1, double y2)".br.ti -1c.RI "double \fBwidth\fP () const".br.ti -1c.RI "double \fBheight\fP () const".br.ti -1c.RI "\fBQwtDoubleSize\fP \fBsize\fP () const".br.ti -1c.RI "void \fBsetWidth\fP (double w)".br.ti -1c.RI "void \fBsetHeight\fP (double h)".br.ti -1c.RI "void \fBsetSize\fP (const \fBQwtDoubleSize\fP &)".br.ti -1c.RI "\fBQwtDoubleRect\fP \fBoperator|\fP (const \fBQwtDoubleRect\fP &r) const".br.ti -1c.RI "\fBQwtDoubleRect\fP \fBoperator &\fP (const \fBQwtDoubleRect\fP &r) const".br.ti -1c.RI "\fBQwtDoubleRect\fP & \fBoperator|=\fP (const \fBQwtDoubleRect\fP &r)".br.ti -1c.RI "\fBQwtDoubleRect\fP & \fBoperator &=\fP (const \fBQwtDoubleRect\fP &r)".br.ti -1c.RI "bool \fBoperator==\fP (const \fBQwtDoubleRect\fP &) const".br.ti -1c.RI "bool \fBoperator!=\fP (const \fBQwtDoubleRect\fP &) const".br.ti -1c.RI "bool \fBcontains\fP (const \fBQwtDoublePoint\fP &p, bool proper=FALSE) const".br.ti -1c.RI "bool \fBcontains\fP (double x, double y, bool proper=FALSE) const".br.ti -1c.RI "bool \fBcontains\fP (const \fBQwtDoubleRect\fP &r, bool proper=FALSE) const".br.ti -1c.RI "\fBQwtDoubleRect\fP \fBunite\fP (const \fBQwtDoubleRect\fP &) const".br.ti -1c.RI "\fBQwtDoubleRect\fP \fBintersect\fP (const \fBQwtDoubleRect\fP &) const".br.ti -1c.RI "bool \fBintersects\fP (const \fBQwtDoubleRect\fP &) const".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtDoubleRect::QwtDoubleRect ()".PPConstructs an rectangle with all components set to 0.0. .PPDefinition at line 295 of file qwt_double_rect.cpp..PPReferenced by operator &(), and operator|()..SS "QwtDoubleRect::QwtDoubleRect (double x1, double x2, double y1, double y2)".PPConstructs an rectangle with x1 to x2 as x-range and, y1 to y2 as y-range. Definition at line 308 of file qwt_double_rect.cpp..SS "QwtDoubleRect::QwtDoubleRect (double x, double y, const \fBQwtDoubleSize\fP & size)".PPConstructs an rectangle with x1 to x1 + size.width() as x-range and, y1 to y1 + size.height() as y-range. Definition at line 322 of file qwt_double_rect.cpp..SH "Member Function Documentation".PP .SS "\fBQwtDoublePoint\fP QwtDoubleRect::center () const".PPReturns the center point of the rectangle. .PPDefinition at line 478 of file qwt_double_rect.cpp..PPReferenced by QwtPlotZoomer::end()..SS "bool QwtDoubleRect::contains (const \fBQwtDoubleRect\fP & other, bool proper = \fCFALSE\fP) const".PPReturns TRUE if the rectangle other is inside this rectangle; otherwise returns FALSE..PPIf proper is TRUE, this function returns TRUE only if other is entirely inside (not on the edge). Definition at line 521 of file qwt_double_rect.cpp..PPReferences contains(), d_x1, d_x2, d_y1, and d_y2..SS "bool QwtDoubleRect::contains (double x, double y, bool proper = \fCFALSE\fP) const".PPReturns TRUE if the point (x, y) is inside or on the edge of the rectangle; otherwise returns FALSE..PPIf proper is TRUE, this function returns TRUE only if p is inside (not on the edge). Definition at line 492 of file qwt_double_rect.cpp..SS "bool QwtDoubleRect::contains (const \fBQwtDoublePoint\fP & p, bool proper = \fCFALSE\fP) const".PPReturns TRUE if the point p is inside or on the edge of the rectangle; otherwise returns FALSE..PPIf proper is TRUE, this function returns TRUE only if p is inside (not on the edge). Definition at line 508 of file qwt_double_rect.cpp..PPReferences QwtDoublePoint::x(), and QwtDoublePoint::y()..PPReferenced by contains()..SS "double QwtDoubleRect::height () const".PPReturns the height. .PPDefinition at line 397 of file qwt_double_rect.h..PPReferenced by moveCenter(), moveY(), and size()..SS "\fBQwtDoubleRect\fP QwtDoubleRect::intersect (const \fBQwtDoubleRect\fP & other) const".PPReturns the intersection of this rectangle and rectangle other. r.intersect(s) is equivalent to r&s. Definition at line 400 of file qwt_double_rect.cpp..SS "bool QwtDoubleRect::intersects (const \fBQwtDoubleRect\fP & other) const".PPReturns TRUE if this rectangle intersects with rectangle other; otherwise returns FALSE. Definition at line 410 of file qwt_double_rect.cpp..PPReferences d_x1, d_x2, d_y1, and d_y2..SS "bool QwtDoubleRect::isEmpty () const".PPReturns TRUE if the rectangle is a empty rectangle; otherwise returns FALSE..PPA rect is null when \fBx1()\fP >= \fBx2()\fP && \fBy1()\fP >= \fBy2()\fP. Definition at line 302 of file qwt_double_rect.h..SS "bool QwtDoubleRect::isNull () const".PPReturns TRUE if the rectangle is a null rectangle; otherwise returns FALSE..PPA rect is null when \fBx1()\fP == \fBx2()\fP && \fBy1()\fP == \fBy2()\fP. Definition at line 291 of file qwt_double_rect.h..SS "bool QwtDoubleRect::isValid () const".PPReturns TRUE if the rectangle is a valid rectangle; otherwise returns FALSE..PPA rect is valid when \fBx1()\fP <= \fBx2()\fP && \fBy1()\fP <= \fBy2()\fP. Definition at line 313 of file qwt_double_rect.h..PPReferenced by operator|(), and QwtPlot::updateAxes()..SS "void QwtDoubleRect::move (double x, double y)".PPmoves \fBx1()\fP to x and \fBy1()\fP to y, leaving the size unchanged .PPDefinition at line 547 of file qwt_double_rect.cpp..PPReferences moveX(), and moveY()..PPReferenced by moveCenter()..SS "void QwtDoubleRect::moveBy (double dx, double dy)".PPmoves \fBx1()\fP by dx and \fBy1()\fP by dy. leaving the size unchanged .PPDefinition at line 555 of file qwt_double_rect.cpp..SS "void QwtDoubleRect::moveCenter (double dx, double dy)".PPmoves the center to (x, y), leaving the size unchanged .PPDefinition at line 572 of file qwt_double_rect.cpp..PPReferences height(), move(), and width()..SS "void QwtDoubleRect::moveCenter (const \fBQwtDoublePoint\fP &)".PPmoves the center to pos, leaving the size unchanged .PPDefinition at line 565 of file qwt_double_rect.cpp..PPReferences QwtDoublePoint::x(), and QwtDoublePoint::y()..PPReferenced by QwtPlotZoomer::end()..SS "void QwtDoubleRect::moveX (double x)".PPmoves \fBx1()\fP to x, leaving the size unchanged .PPDefinition at line 529 of file qwt_double_rect.cpp..PPReferences width()..PPReferenced by move()..SS "void QwtDoubleRect::moveY (double y)".PPmoves \fBy1()\fP to y, leaving the size unchanged .PPDefinition at line 538 of file qwt_double_rect.cpp..PPReferences height()..PPReferenced by move()..SS "\fBQwtDoubleRect\fP QwtDoubleRect::normalize () const".PPReturns a normalized rectangle, i.e. a rectangle that has a non-negative width and height..PPIt swaps x1 and x2 if \fBx1()\fP > \fBx2()\fP, and swaps y1 and y2 if \fBy1()\fP > \fBy2()\fP. Definition at line 359 of file qwt_double_rect.cpp..PPReferences d_x1, d_x2, d_y1, and d_y2..PPReferenced by QwtPlotZoomer::end(), and QwtPlotZoomer::zoom()..SS "\fBQwtDoubleRect\fP QwtDoubleRect::operator & (const \fBQwtDoubleRect\fP & other) const".PPReturns the intersection of this rectangle and rectangle other. Returns an empty rectangle if there is no intersection. Definition at line 454 of file qwt_double_rect.cpp..PPReferences d_x1, d_x2, d_y1, d_y2, and QwtDoubleRect()..SS "\fBQwtDoubleRect\fP & QwtDoubleRect::operator &= (const \fBQwtDoubleRect\fP & r)".PPIntersects this rectangle with rectangle other. .PPDefinition at line 470 of file qwt_double_rect.cpp..SS "bool QwtDoubleRect::operator!= (const \fBQwtDoubleRect\fP &) const".PPReturns TRUE if this rect and other are different; otherwise returns FALSE. .PPDefinition at line 426 of file qwt_double_rect.cpp..PPReferences operator==()..SS "bool QwtDoubleRect::operator== (const \fBQwtDoubleRect\fP &) const".PPReturns TRUE if this rect and other are equal; otherwise returns FALSE. .PPDefinition at line 418 of file qwt_double_rect.cpp..PPReferences d_x1, d_x2, d_y1, and d_y2..PPReferenced by operator!=()..SS "\fBQwtDoubleRect\fP QwtDoubleRect::operator| (const \fBQwtDoubleRect\fP & other) const".PPReturns the bounding rectangle of this rectangle and rectangle other. The bounding rectangle of a nonempty rectangle and an empty or invalid rectangle is defined to be the nonempty rectangle. Definition at line 437 of file qwt_double_rect.cpp..PPReferences d_x1, d_x2, d_y1, d_y2, isValid(), and QwtDoubleRect()..SS "\fBQwtDoubleRect\fP & QwtDoubleRect::operator|= (const \fBQwtDoubleRect\fP & r)".PPUnites this rectangle with rectangle other. .PPDefinition at line 462 of file qwt_double_rect.cpp..SS "double & QwtDoubleRect::rx1 ()".PPReturns a reference to x1. .PPDefinition at line 343 of file qwt_double_rect.h..SS "double & QwtDoubleRect::rx2 ()".PPReturns a reference to x2. .PPDefinition at line 349 of file qwt_double_rect.h..SS "double & QwtDoubleRect::ry1 ()".PPReturns a reference to y1. .PPDefinition at line 355 of file qwt_double_rect.h..SS "double & QwtDoubleRect::ry2 ()".PPReturns a reference to y2. .PPDefinition at line 361 of file qwt_double_rect.h..SS "void QwtDoubleRect::setHeight (double h)".PPSet the height, by y2 = y1 + h;. .PPDefinition at line 415 of file qwt_double_rect.h..PPReferenced by setSize()..SS "void QwtDoubleRect::setRect (double x1, double x2, double y1, double y2)".PPSet the x-range from x1 to x2 and the y-range from y1 to y2. Definition at line 333 of file qwt_double_rect.cpp..SS "void QwtDoubleRect::setSize (const \fBQwtDoubleSize\fP & size)".PPSets the size of the rectangle to size. Changes x2 and y2 only. Definition at line 346 of file qwt_double_rect.cpp..PPReferences QwtDoubleSize::height(), setHeight(), setWidth(), and QwtDoubleSize::width()..PPReferenced by QwtPlotZoomer::end()..SS "void QwtDoubleRect::setWidth (double w)".PPSet the width, by x2 = x1 + w;. .PPDefinition at line 409 of file qwt_double_rect.h..PPReferenced by setSize()..SS "void QwtDoubleRect::setX1 (double)".PPSet x1. .PPDefinition at line 367 of file qwt_double_rect.h..SS "void QwtDoubleRect::setX2 (double)".PPSet x2. .PPDefinition at line 373 of file qwt_double_rect.h..SS "void QwtDoubleRect::setY1 (double)".PPSet y1. .PPDefinition at line 379 of file qwt_double_rect.h..SS "void QwtDoubleRect::setY2 (double)".PPSet y2. .PPDefinition at line 385 of file qwt_double_rect.h..SS "\fBQwtDoubleSize\fP QwtDoubleRect::size () const".PPReturns the size. .PPDefinition at line 403 of file qwt_double_rect.h..PPReferences height(), and width()..PPReferenced by QwtPlotZoomer::end()..SS "\fBQwtDoubleRect\fP QwtDoubleRect::unite (const \fBQwtDoubleRect\fP & other) const".PPReturns the bounding rectangle of this rectangle and rectangle other. r.unite(s) is equivalent to r|s. Definition at line 390 of file qwt_double_rect.cpp..SS "double QwtDoubleRect::width () const".PPReturns the width. .PPDefinition at line 391 of file qwt_double_rect.h..PPReferenced by moveCenter(), moveX(), and size()..SS "double QwtDoubleRect::x1 () const".PPReturns x1. .PPDefinition at line 319 of file qwt_double_rect.h..PPReferenced by QwtPlotZoomer::move(), QwtPlotZoomer::moveBy(), QwtPlotZoomer::rescale(), QwtPlotPicker::transform(), and QwtPlot::updateAxes()..SS "double QwtDoubleRect::x2 () const".PPReturns x2. .PPDefinition at line 325 of file qwt_double_rect.h..PPReferenced by QwtPlotZoomer::rescale(), QwtPlotPicker::transform(), and QwtPlot::updateAxes()..SS "double QwtDoubleRect::y1 () const".PPReturns y1. .PPDefinition at line 331 of file qwt_double_rect.h..PPReferenced by QwtPlotZoomer::move(), QwtPlotZoomer::moveBy(), QwtPlotZoomer::rescale(), QwtPlotPicker::transform(), and QwtPlot::updateAxes()..SS "double QwtDoubleRect::y2 () const".PPReturns y2. .PPDefinition at line 337 of file qwt_double_rect.h..PPReferenced by QwtPlotZoomer::rescale(), QwtPlotPicker::transform(), and QwtPlot::updateAxes()..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 + -