|
bool | contains (const RBox &other) const |
|
bool | contains (const RVector &v) const |
|
bool | containsBox (const RBox &other) const |
|
bool | containsPoint (const RVector &v) const |
|
bool | equalsFuzzy (const RBox &b, double tol=RS::PointTolerance) const |
|
bool | equalsFuzzy2D (const RBox &b, double tol=RS::PointTolerance) const |
|
RBox | get2D () const |
|
double | getArea () const |
|
RVector | getCenter () const |
|
RVector | getCorner1 () const |
|
RVector | getCorner2 () const |
|
QList< RVector > | getCorners () const |
|
QList< RVector > | getCorners2d () const |
|
double | getHeight () const |
|
QList< RLine > | getLines2d () const |
|
RVector | getMaximum () const |
|
RVector | getMinimum () const |
|
RPolyline | getPolyline2d () const |
|
RVector | getSize () const |
|
QList< RTriangle > | getTriangles () const |
|
double | getWidth () const |
|
RBox & | grow (double offset) |
| Grows this box by the given offset in X, Y and Z (!).
|
|
void | growToInclude (const RBox &other) |
| Grows this box to include the given box or sets this box to the given box if this box is invalid.
|
|
void | growToInclude (const RVector &v) |
| Grows this box to include the given point.
|
|
void | growToIncludeBox (const RBox &other) |
|
void | growToIncludeBoxes (const QList< RBox > &others) |
| Grows this box to include all other given boxes.
|
|
void | growToIncludePoint (const RVector &v) |
|
RBox & | growXY (double offset) |
| Grows this box by the given offset in X and Y only.
|
|
RBox & | growXY (double offsetX, double offsetY) |
| Grows this box by the given offsets in X and Y only.
|
|
bool | intersects (const RBox &other) const |
|
bool | intersectsWith (const RShape &shape, bool limited=true) const |
|
bool | isOutside (const RBox &other) const |
|
bool | isOutsideXY (const RBox &other) const |
|
bool | isSane () const |
|
bool | isValid () const |
|
void | move (const RVector &offset) |
| Moves this box by the given offset.
|
|
bool | operator!= (const RBox &other) const |
|
bool | operator== (const RBox &other) const |
| == operator
|
|
| RBox () |
| Copyright (c) 2011-2018 by Andrew Mustun.
|
|
| RBox (const QRectF &rect) |
| Constructor for a box based on the given QRectF object.
|
|
| RBox (const RVector &c1, const RVector &c2) |
| Constructor for a box with two given diagonally opposite corners.
|
|
| RBox (const RVector ¢er, double range) |
| Creates a square box with the given center and the given range (= side length / 2).
|
|
| RBox (const RVector ¢er, double width, double height) |
| Creates a box with the given center and the given width / height.
|
|
| RBox (double x1, double y1, double x2, double y2) |
|
bool | scaleByReference (const RVector &referencePoint, const RVector &targetPoint, bool keepAspectRatio=false, bool fromCenter=false) |
|
void | setCorner1 (const RVector &v) |
| Set first of two diagonally opposite corners that define the box.
|
|
void | setCorner2 (const RVector &v) |
| Set second of two diagonally opposite corners that define the box.
|
|
QRectF | toQRectF () const |
|
void | transform (QTransform &t) |
|
Represents a box e.g.
a bounding box. The surfaces of the box are orthogonal to the Cartesian coordinate system.
- Scriptable:\nThis class is available in script environments.\n
- Shared Pointer Support:\nObjects can be used in QSharedPointer.\n
- Copyable:\nObjects are cleaned up automatically by the garbage collector of the script engine.\n
Copyright (c) 2011-2018 by Andrew Mustun.
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD. Constructor for an invalid box with invalid corner points.