|
QGIS API Documentation 3.99.0-Master (752b475928d)
|
Represents a oriented (rotated) box in 3 dimensions. More...
#include <qgsorientedbox3d.h>
Public Member Functions | |
| QgsOrientedBox3D () | |
| Constructor for a null oriented box. | |
| QgsOrientedBox3D (const QgsVector3D ¢er, const QgsVector3D &halfSizes, const QQuaternion &quaternion) | |
| Constructor for a oriented box, with a specified center, half sizes in each dimension and rotation. | |
| QgsOrientedBox3D (const QgsVector3D ¢er, const QList< QgsVector3D > &halfAxes) | |
| Constructor for a oriented box, with a specified center and half axes matrix. | |
| QgsOrientedBox3D (const QList< double > ¢er, const QList< double > &halfAxes) | |
| Constructor for a oriented box, with a specified center and half axes matrix. | |
| QgsVector3D | center () const |
| Returns the vector to the center of the box. | |
| double | centerX () const |
| Returns the center x-coordinate. | |
| double | centerY () const |
| Returns the center y-coordinate. | |
| double | centerZ () const |
| Returns the center z-coordinate. | |
| QVector< QgsVector3D > | corners () const |
| Returns an array of all corners as 3D vectors. | |
| QgsBox3D | extent () const |
| Returns the overall bounding box of the object. | |
| const double * | halfAxes () const |
| Returns the half axes matrix;. | |
| QList< double > | halfAxesList () const |
| Returns the half axes matrix;. | |
| bool | intersects (const QgsOrientedBox3D &other) const |
Returns true if the box intersects the other box. | |
| bool | isNull () const |
Returns true if the box is a null box. | |
| double | longestSide () const |
| Returns size of the longest side of the box. | |
| bool | operator!= (const QgsOrientedBox3D &other) const |
| bool | operator== (const QgsOrientedBox3D &other) const |
| QgsBox3D | reprojectedExtent (const QgsCoordinateTransform &ct) const |
| Reprojects corners of this box using the given coordinate transform and returns axis-aligned box containing reprojected corners. | |
| QgsVector3D | size () const |
| Returns size of sides of the box. | |
| QgsOrientedBox3D | transformed (const QgsMatrix4x4 &transform) const |
| Returns box transformed by a 4x4 matrix. | |
Static Public Member Functions | |
| static QgsOrientedBox3D | fromBox3D (const QgsBox3D &box) |
| Constructs an oriented box from an axis-aligned bounding box. | |
Friends | |
| class | QgsCesiumUtils |
Represents a oriented (rotated) box in 3 dimensions.
Definition at line 44 of file qgsorientedbox3d.h.
|
default |
Constructor for a null oriented box.
| QgsOrientedBox3D::QgsOrientedBox3D | ( | const QList< double > & | center, |
| const QList< double > & | halfAxes ) |
Constructor for a oriented box, with a specified center and half axes matrix.
Definition at line 30 of file qgsorientedbox3d.cpp.
| QgsOrientedBox3D::QgsOrientedBox3D | ( | const QgsVector3D & | center, |
| const QList< QgsVector3D > & | halfAxes ) |
Constructor for a oriented box, with a specified center and half axes matrix.
Definition at line 47 of file qgsorientedbox3d.cpp.
| QgsOrientedBox3D::QgsOrientedBox3D | ( | const QgsVector3D & | center, |
| const QgsVector3D & | halfSizes, | ||
| const QQuaternion & | quaternion ) |
Constructor for a oriented box, with a specified center, half sizes in each dimension and rotation.
Definition at line 63 of file qgsorientedbox3d.cpp.
|
inline |
Returns the vector to the center of the box.
Definition at line 127 of file qgsorientedbox3d.h.
|
inline |
Returns the center x-coordinate.
Definition at line 106 of file qgsorientedbox3d.h.
|
inline |
Returns the center y-coordinate.
Definition at line 114 of file qgsorientedbox3d.h.
|
inline |
Returns the center z-coordinate.
Definition at line 122 of file qgsorientedbox3d.h.
| QVector< QgsVector3D > QgsOrientedBox3D::corners | ( | ) | const |
Returns an array of all corners as 3D vectors.
Definition at line 128 of file qgsorientedbox3d.cpp.
| QgsBox3D QgsOrientedBox3D::extent | ( | ) | const |
Returns the overall bounding box of the object.
Definition at line 109 of file qgsorientedbox3d.cpp.
|
static |
Constructs an oriented box from an axis-aligned bounding box.
Definition at line 83 of file qgsorientedbox3d.cpp.
|
inline |
Returns the half axes matrix;.
Definition at line 132 of file qgsorientedbox3d.h.
| QList< double > QgsOrientedBox3D::halfAxesList | ( | ) | const |
Returns the half axes matrix;.
Definition at line 98 of file qgsorientedbox3d.cpp.
| bool QgsOrientedBox3D::intersects | ( | const QgsOrientedBox3D & | other | ) | const |
Returns true if the box intersects the other box.
Definition at line 208 of file qgsorientedbox3d.cpp.
| bool QgsOrientedBox3D::isNull | ( | ) | const |
Returns true if the box is a null box.
Definition at line 93 of file qgsorientedbox3d.cpp.
| double QgsOrientedBox3D::longestSide | ( | ) | const |
Returns size of the longest side of the box.
Definition at line 156 of file qgsorientedbox3d.cpp.
|
inline |
Definition at line 90 of file qgsorientedbox3d.h.
|
inline |
Definition at line 74 of file qgsorientedbox3d.h.
| QgsBox3D QgsOrientedBox3D::reprojectedExtent | ( | const QgsCoordinateTransform & | ct | ) | const |
Reprojects corners of this box using the given coordinate transform and returns axis-aligned box containing reprojected corners.
| QgsCsException |
Definition at line 164 of file qgsorientedbox3d.cpp.
| QgsVector3D QgsOrientedBox3D::size | ( | ) | const |
Returns size of sides of the box.
Definition at line 148 of file qgsorientedbox3d.cpp.
| QgsOrientedBox3D QgsOrientedBox3D::transformed | ( | const QgsMatrix4x4 & | transform | ) | const |
Returns box transformed by a 4x4 matrix.
Definition at line 188 of file qgsorientedbox3d.cpp.
|
friend |
Definition at line 202 of file qgsorientedbox3d.h.