QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
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 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. | |
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 43 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 27 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 44 of file qgsorientedbox3d.cpp.
|
inline |
Returns the vector to the center of the box.
Definition at line 120 of file qgsorientedbox3d.h.
|
inline |
Returns the center x-coordinate.
Definition at line 99 of file qgsorientedbox3d.h.
|
inline |
Returns the center y-coordinate.
Definition at line 107 of file qgsorientedbox3d.h.
|
inline |
Returns the center z-coordinate.
Definition at line 115 of file qgsorientedbox3d.h.
QVector< QgsVector3D > QgsOrientedBox3D::corners | ( | ) | const |
Returns an array of all corners as 3D vectors.
Definition at line 105 of file qgsorientedbox3d.cpp.
QgsBox3D QgsOrientedBox3D::extent | ( | ) | const |
Returns the overall bounding box of the object.
Definition at line 86 of file qgsorientedbox3d.cpp.
|
static |
Constructs an oriented box from an axis-aligned bounding box.
Definition at line 60 of file qgsorientedbox3d.cpp.
|
inline |
Returns the half axes matrix;.
Definition at line 125 of file qgsorientedbox3d.h.
QList< double > QgsOrientedBox3D::halfAxesList | ( | ) | const |
Returns the half axes matrix;.
Definition at line 75 of file qgsorientedbox3d.cpp.
bool QgsOrientedBox3D::intersects | ( | const QgsOrientedBox3D & | other | ) | const |
Returns true
if the box intersects the other box.
Definition at line 177 of file qgsorientedbox3d.cpp.
bool QgsOrientedBox3D::isNull | ( | ) | const |
Returns true
if the box is a null box.
Definition at line 70 of file qgsorientedbox3d.cpp.
|
inline |
Definition at line 83 of file qgsorientedbox3d.h.
|
inline |
Definition at line 67 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 133 of file qgsorientedbox3d.cpp.
QgsVector3D QgsOrientedBox3D::size | ( | ) | const |
Returns size of sides of the box.
Definition at line 125 of file qgsorientedbox3d.cpp.
QgsOrientedBox3D QgsOrientedBox3D::transformed | ( | const QgsMatrix4x4 & | transform | ) | const |
Returns box transformed by a 4x4 matrix.
Definition at line 157 of file qgsorientedbox3d.cpp.
|
friend |
Definition at line 189 of file qgsorientedbox3d.h.