QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
Represents a bounding volume for a tiled scene. More...
#include <qgstiledsceneboundingvolume.h>
Public Member Functions | |
QgsTiledSceneBoundingVolume (const QgsOrientedBox3D &box=QgsOrientedBox3D()) | |
Constructor for QgsTiledSceneBoundingVolume, with the specified oriented box. | |
QgsAbstractGeometry * | as2DGeometry (const QgsCoordinateTransform &transform=QgsCoordinateTransform(), Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const |
Returns a new geometry representing the 2-dimensional X/Y center slice of the volume. | |
QgsBox3D | bounds (const QgsCoordinateTransform &transform=QgsCoordinateTransform(), Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const |
Returns the axis aligned bounding box of the volume. | |
QgsOrientedBox3D | box () const |
Returns the volume's oriented box. | |
bool | intersects (const QgsOrientedBox3D &box) const |
Returns true if this bounds intersects the specified box. | |
void | transform (const QgsMatrix4x4 &transform) |
Applies a transform to the bounding volume. | |
Represents a bounding volume for a tiled scene.
Definition at line 38 of file qgstiledsceneboundingvolume.h.
QgsTiledSceneBoundingVolume::QgsTiledSceneBoundingVolume | ( | const QgsOrientedBox3D & | box = QgsOrientedBox3D() | ) |
Constructor for QgsTiledSceneBoundingVolume, with the specified oriented box.
Definition at line 26 of file qgstiledsceneboundingvolume.cpp.
QgsAbstractGeometry * QgsTiledSceneBoundingVolume::as2DGeometry | ( | const QgsCoordinateTransform & | transform = QgsCoordinateTransform() , |
Qgis::TransformDirection | direction = Qgis::TransformDirection::Forward |
||
) | const |
Returns a new geometry representing the 2-dimensional X/Y center slice of the volume.
Caller takes ownership of the returned geometry.
The optional transform and direction arguments should be used whenever the volume needs to be transformed into a specific destination CRS, in order to correctly handle 3D coordinate transforms.
Definition at line 67 of file qgstiledsceneboundingvolume.cpp.
QgsBox3D QgsTiledSceneBoundingVolume::bounds | ( | const QgsCoordinateTransform & | transform = QgsCoordinateTransform() , |
Qgis::TransformDirection | direction = Qgis::TransformDirection::Forward |
||
) | const |
Returns the axis aligned bounding box of the volume.
The optional transform and direction arguments should be used whenever the volume needs to be transformed into a specific destination CRS, in order to correctly handle 3D coordinate transforms.
Definition at line 36 of file qgstiledsceneboundingvolume.cpp.
|
inline |
Returns the volume's oriented box.
Definition at line 78 of file qgstiledsceneboundingvolume.h.
bool QgsTiledSceneBoundingVolume::intersects | ( | const QgsOrientedBox3D & | box | ) | const |
Returns true
if this bounds intersects the specified box.
Definition at line 96 of file qgstiledsceneboundingvolume.cpp.
void QgsTiledSceneBoundingVolume::transform | ( | const QgsMatrix4x4 & | transform | ) |
Applies a transform to the bounding volume.
Definition at line 31 of file qgstiledsceneboundingvolume.cpp.