Public Member Functions | |
QwtDoubleRect () | |
QwtDoubleRect (double x1, double x2, double y1, double y2) | |
QwtDoubleRect (double x, double y, const QwtDoubleSize &) | |
bool | isNull () const |
bool | isEmpty () const |
bool | isValid () const |
QwtDoubleRect | normalize () const |
double | x1 () const |
double | x2 () const |
double | y1 () const |
double | y2 () const |
double & | rx1 () |
double & | rx2 () |
double & | ry1 () |
double & | ry2 () |
void | setX1 (double) |
void | setX2 (double) |
void | setY1 (double) |
void | setY2 (double) |
QwtDoublePoint | center () const |
void | moveX (double x) |
void | moveY (double y) |
void | move (double x, double y) |
void | moveBy (double dx, double dy) |
void | moveCenter (const QwtDoublePoint &) |
void | moveCenter (double dx, double dy) |
void | setRect (double x1, double x2, double y1, double y2) |
double | width () const |
double | height () const |
QwtDoubleSize | size () const |
void | setWidth (double w) |
void | setHeight (double h) |
void | setSize (const QwtDoubleSize &) |
QwtDoubleRect | operator| (const QwtDoubleRect &r) const |
QwtDoubleRect | operator & (const QwtDoubleRect &r) const |
QwtDoubleRect & | operator|= (const QwtDoubleRect &r) |
QwtDoubleRect & | operator &= (const QwtDoubleRect &r) |
bool | operator== (const QwtDoubleRect &) const |
bool | operator!= (const QwtDoubleRect &) const |
bool | contains (const QwtDoublePoint &p, bool proper=FALSE) const |
bool | contains (double x, double y, bool proper=FALSE) const |
bool | contains (const QwtDoubleRect &r, bool proper=FALSE) const |
QwtDoubleRect | unite (const QwtDoubleRect &) const |
QwtDoubleRect | intersect (const QwtDoubleRect &) const |
bool | intersects (const QwtDoubleRect &) const |
|
Constructs an rectangle with all components set to 0.0.
|
|
Constructs an rectangle with x1 to x2 as x-range and, y1 to y2 as y-range. |
|
Constructs an rectangle with x1 to x1 + size.width() as x-range and, y1 to y1 + size.height() as y-range. |
|
Returns the center point of the rectangle.
|
|
Returns TRUE if the rectangle other is inside this rectangle; otherwise returns FALSE. If proper is TRUE, this function returns TRUE only if other is entirely inside (not on the edge). |
|
Returns TRUE if the point (x, y) is inside or on the edge of the rectangle; otherwise returns FALSE. If proper is TRUE, this function returns TRUE only if p is inside (not on the edge). |
|
Returns TRUE if the point p is inside or on the edge of the rectangle; otherwise returns FALSE. If proper is TRUE, this function returns TRUE only if p is inside (not on the edge). |
|
Returns the height.
|
|
Returns the intersection of this rectangle and rectangle other. r.intersect(s) is equivalent to r&s. |
|
Returns TRUE if this rectangle intersects with rectangle other; otherwise returns FALSE. |
|
Returns TRUE if the rectangle is a empty rectangle; otherwise returns FALSE. |
|
Returns TRUE if the rectangle is a null rectangle; otherwise returns FALSE. |
|
Returns TRUE if the rectangle is a valid rectangle; otherwise returns FALSE. |
|
moves x1() to x and y1() to y, leaving the size unchanged
|
|
moves x1() by dx and y1() by dy. leaving the size unchanged
|
|
moves the center to (x, y), leaving the size unchanged
|
|
moves the center to pos, leaving the size unchanged
|
|
moves x1() to x, leaving the size unchanged
|
|
moves y1() to y, leaving the size unchanged
|
|
Returns a normalized rectangle, i.e. a rectangle that has a non-negative width and height. It swaps x1 and x2 if x1() > x2(), and swaps y1 and y2 if y1() > y2(). |
|
Returns the intersection of this rectangle and rectangle other. Returns an empty rectangle if there is no intersection. |
|
Intersects this rectangle with rectangle other.
|
|
Returns TRUE if this rect and other are different; otherwise returns FALSE.
|
|
Returns TRUE if this rect and other are equal; otherwise returns FALSE.
|
|
Returns 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. |
|
Unites this rectangle with rectangle other.
|
|
Returns a reference to x1.
|
|
Returns a reference to x2.
|
|
Returns a reference to y1.
|
|
Returns a reference to y2.
|
|
Set the height, by y2 = y1 + h;.
|
|
Set the x-range from x1 to x2 and the y-range from y1 to y2. |
|
Sets the size of the rectangle to size. Changes x2 and y2 only. |
|
Set the width, by x2 = x1 + w;.
|
|
Set x1.
|
|
Set x2.
|
|
Set y1.
|
|
Set y2.
|
|
Returns the size.
|
|
Returns the bounding rectangle of this rectangle and rectangle other. r.unite(s) is equivalent to r|s. |
|
Returns the width.
|
|
Returns x1.
|
|
Returns x2.
|
|
Returns y1.
|
|
Returns y2.
|