QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
QgsTiledSceneBoundingVolume Class Reference

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.
QgsAbstractGeometryas2DGeometry (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.

Detailed Description

Represents a bounding volume for a tiled scene.

Since
QGIS 3.34

Definition at line 38 of file qgstiledsceneboundingvolume.h.

Constructor & Destructor Documentation

◆ QgsTiledSceneBoundingVolume()

QgsTiledSceneBoundingVolume::QgsTiledSceneBoundingVolume ( const QgsOrientedBox3D & box = QgsOrientedBox3D())

Constructor for QgsTiledSceneBoundingVolume, with the specified oriented box.

Definition at line 27 of file qgstiledsceneboundingvolume.cpp.

Member Function Documentation

◆ as2DGeometry()

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 68 of file qgstiledsceneboundingvolume.cpp.

◆ bounds()

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 37 of file qgstiledsceneboundingvolume.cpp.

◆ box()

QgsOrientedBox3D QgsTiledSceneBoundingVolume::box ( ) const
inline

Returns the volume's oriented box.

Definition at line 78 of file qgstiledsceneboundingvolume.h.

◆ intersects()

bool QgsTiledSceneBoundingVolume::intersects ( const QgsOrientedBox3D & box) const

Returns true if this bounds intersects the specified box.

Definition at line 97 of file qgstiledsceneboundingvolume.cpp.

◆ transform()

void QgsTiledSceneBoundingVolume::transform ( const QgsMatrix4x4 & transform)

Applies a transform to the bounding volume.

Definition at line 32 of file qgstiledsceneboundingvolume.cpp.


The documentation for this class was generated from the following files: