📄 qwtdoublerect.3
字号:
.TH "QwtDoubleRect" 3 "4 Nov 2003" "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. .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. .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. .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. .SH "Member Function Documentation".PP .SS "\fBQwtDoublePoint\fP QwtDoubleRect::center () const".PPReturns the center point of the rectangle. .SS "bool QwtDoubleRect::contains (const \fBQwtDoubleRect\fP & other, bool proper = FALSE) 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). .SS "bool QwtDoubleRect::contains (double x, double y, bool proper = FALSE) 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). .SS "bool QwtDoubleRect::contains (const \fBQwtDoublePoint\fP & p, bool proper = FALSE) 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). .SS "double QwtDoubleRect::height () const".PPReturns the height. .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. .SS "bool QwtDoubleRect::intersects (const \fBQwtDoubleRect\fP & other) const".PPReturns TRUE if this rectangle intersects with rectangle other; otherwise returns FALSE. .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. .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. .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. .SS "void QwtDoubleRect::move (double x, double y)".PPmoves \fBx1()\fP to x and \fBy1()\fP to y, leaving the size unchanged .SS "void QwtDoubleRect::moveBy (double dx, double dy)".PPmoves \fBx1()\fP by dx and \fBy1()\fP by dy. leaving the size unchanged .SS "void QwtDoubleRect::moveCenter (double dx, double dy)".PPmoves the center to (x, y), leaving the size unchanged .SS "void QwtDoubleRect::moveCenter (const \fBQwtDoublePoint\fP &)".PPmoves the center to pos, leaving the size unchanged .SS "void QwtDoubleRect::moveX (double x)".PPmoves \fBx1()\fP to x, leaving the size unchanged .SS "void QwtDoubleRect::moveY (double y)".PPmoves \fBy1()\fP to y, leaving the size unchanged .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. .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. .SS "\fBQwtDoubleRect\fP & QwtDoubleRect::operator &= (const \fBQwtDoubleRect\fP & r)".PPIntersects this rectangle with rectangle other. .SS "bool QwtDoubleRect::operator!= (const \fBQwtDoubleRect\fP &) const".PPReturns TRUE if this rect and other are different; otherwise returns FALSE. .SS "bool QwtDoubleRect::operator== (const \fBQwtDoubleRect\fP &) const".PPReturns TRUE if this rect and other are equal; otherwise returns FALSE. .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. .SS "\fBQwtDoubleRect\fP & QwtDoubleRect::operator|= (const \fBQwtDoubleRect\fP & r)".PPUnites this rectangle with rectangle other. .SS "double & QwtDoubleRect::rx1 ()".PPReturns a reference to x1. .SS "double & QwtDoubleRect::rx2 ()".PPReturns a reference to x2. .SS "double & QwtDoubleRect::ry1 ()".PPReturns a reference to y1. .SS "double & QwtDoubleRect::ry2 ()".PPReturns a reference to y2. .SS "void QwtDoubleRect::setHeight (double h)".PPSet the height, by y2 = y1 + h;. .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. .SS "void QwtDoubleRect::setSize (const \fBQwtDoubleSize\fP & size)".PPSets the size of the rectangle to size. Changes x2 and y2 only. .SS "void QwtDoubleRect::setWidth (double w)".PPSet the width, by x2 = x1 + w;. .SS "void QwtDoubleRect::setX1 (double)".PPSet x1. .SS "void QwtDoubleRect::setX2 (double)".PPSet x2. .SS "void QwtDoubleRect::setY1 (double)".PPSet y1. .SS "void QwtDoubleRect::setY2 (double)".PPSet y2. .SS "\fBQwtDoubleSize\fP QwtDoubleRect::size () const".PPReturns the size. .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. .SS "double QwtDoubleRect::width () const".PPReturns the width. .SS "double QwtDoubleRect::x1 () const".PPReturns x1. .SS "double QwtDoubleRect::x2 () const".PPReturns x2. .SS "double QwtDoubleRect::y1 () const".PPReturns y1. .SS "double QwtDoubleRect::y2 () const".PPReturns y2. .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 + -