QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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 26 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 67 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 36 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 96 of file qgstiledsceneboundingvolume.cpp.

◆ transform()

void QgsTiledSceneBoundingVolume::transform ( const QgsMatrix4x4 transform)

Applies a transform to the bounding volume.

Definition at line 31 of file qgstiledsceneboundingvolume.cpp.


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