QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
tiledscene
qgstiledsceneboundingvolume.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstiledsceneboundingvolume.h
3
--------------------
4
begin : July 2023
5
copyright : (C) 2023 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
******************************************************************
8
***************************************************************************/
9
10
/***************************************************************************
11
* *
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
16
* *
17
***************************************************************************/
18
19
#ifndef QGSTILEDSCENEBOUNDINGVOLUME_H
20
#define QGSTILEDSCENEBOUNDINGVOLUME_H
21
22
#include "
qgis.h
"
23
#include "qgis_core.h"
24
#include "
qgis_sip.h
"
25
#include "
qgsbox3d.h
"
26
#include "
qgscoordinatetransform.h
"
27
#include "
qgsmatrix4x4.h
"
28
#include "
qgsorientedbox3d.h
"
29
30
class
QgsMatrix4x4
;
31
38
class
CORE_EXPORT
QgsTiledSceneBoundingVolume
39
{
40
public
:
44
QgsTiledSceneBoundingVolume
(
const
QgsOrientedBox3D
&
box
=
QgsOrientedBox3D
() );
45
52
QgsBox3D
bounds
(
const
QgsCoordinateTransform
&
transform
=
QgsCoordinateTransform
(),
Qgis::TransformDirection
direction =
Qgis::TransformDirection::Forward
)
const
;
53
62
std::unique_ptr<QgsAbstractGeometry>
as2DGeometry
(
const
QgsCoordinateTransform
&
transform
=
QgsCoordinateTransform
(),
Qgis::TransformDirection
direction =
Qgis::TransformDirection::Forward
)
const
;
63
67
void
transform
(
const
QgsMatrix4x4
&
transform
);
68
72
bool
intersects
(
const
QgsOrientedBox3D
&
box
)
const
;
73
77
QgsOrientedBox3D
box
()
const
{
return
mBox; }
78
79
private
:
80
QgsOrientedBox3D
mBox;
81
};
82
83
#endif
// QGSTILEDSCENEBOUNDINGVOLUME_H
Qgis::TransformDirection
TransformDirection
Indicates the direction (forward or inverse) of a transform.
Definition
qgis.h:2882
Qgis::TransformDirection::Forward
@ Forward
Forward transform (from source to destination).
Definition
qgis.h:2883
QgsBox3D
A 3-dimensional box composed of x, y, z coordinates.
Definition
qgsbox3d.h:45
QgsCoordinateTransform
Handles coordinate transforms between two coordinate systems.
Definition
qgscoordinatetransform.h:63
QgsMatrix4x4
A simple 4x4 matrix implementation useful for transformation in 3D space.
Definition
qgsmatrix4x4.h:42
QgsOrientedBox3D
Represents a oriented (rotated) box in 3 dimensions.
Definition
qgsorientedbox3d.h:48
QgsTiledSceneBoundingVolume::box
QgsOrientedBox3D box() const
Returns the volume's oriented box.
Definition
qgstiledsceneboundingvolume.h:77
QgsTiledSceneBoundingVolume::intersects
bool intersects(const QgsOrientedBox3D &box) const
Returns true if this bounds intersects the specified box.
Definition
qgstiledsceneboundingvolume.cpp:96
QgsTiledSceneBoundingVolume::QgsTiledSceneBoundingVolume
QgsTiledSceneBoundingVolume(const QgsOrientedBox3D &box=QgsOrientedBox3D())
Constructor for QgsTiledSceneBoundingVolume, with the specified oriented box.
Definition
qgstiledsceneboundingvolume.cpp:27
QgsTiledSceneBoundingVolume::as2DGeometry
std::unique_ptr< 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.
Definition
qgstiledsceneboundingvolume.cpp:67
QgsTiledSceneBoundingVolume::transform
void transform(const QgsMatrix4x4 &transform)
Applies a transform to the bounding volume.
Definition
qgstiledsceneboundingvolume.cpp:31
QgsTiledSceneBoundingVolume::bounds
QgsBox3D bounds(const QgsCoordinateTransform &transform=QgsCoordinateTransform(), Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const
Returns the axis aligned bounding box of the volume.
Definition
qgstiledsceneboundingvolume.cpp:36
qgis.h
qgis_sip.h
qgsbox3d.h
qgscoordinatetransform.h
qgsmatrix4x4.h
qgsorientedbox3d.h
Generated on
for QGIS API Documentation by
1.17.0