21 #include "qgis_core.h" 45 QgsBox3d(
double xmin = 0,
double ymin = 0,
double zmin = 0,
double xmax = 0,
double ymax = 0,
double zmax = 0 )
SIP_HOLDGIL;
78 double xMinimum() const SIP_HOLDGIL {
return mBounds2d.xMinimum(); }
85 double xMaximum() const SIP_HOLDGIL {
return mBounds2d.xMaximum(); }
106 double yMinimum() const SIP_HOLDGIL {
return mBounds2d.yMinimum(); }
113 double yMaximum() const SIP_HOLDGIL {
return mBounds2d.yMaximum(); }
134 double zMinimum() const SIP_HOLDGIL {
return mZmin; }
141 double zMaximum() const SIP_HOLDGIL {
return mZmax; }
153 double width() const SIP_HOLDGIL {
return mBounds2d.width(); }
160 double height() const SIP_HOLDGIL {
return mBounds2d.height(); }
167 double depth() const SIP_HOLDGIL {
return mZmax - mZmin; }
172 double volume() const SIP_HOLDGIL {
return mBounds2d.area() * ( mZmax - mZmin ); }
188 bool intersects(
const QgsBox3d &other )
const;
193 bool contains(
const QgsBox3d &other )
const;
201 bool contains(
const QgsPoint &point )
const;
214 double distanceTo(
const QVector3D &point )
const;
double zMaximum() const SIP_HOLDGIL
Returns the maximum z value.
A rectangle specified with double values.
double depth() const SIP_HOLDGIL
Returns the depth of the box.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
double xMinimum() const SIP_HOLDGIL
Returns the minimum x value.
double width() const SIP_HOLDGIL
Returns the width of the box.
double zMinimum() const SIP_HOLDGIL
Returns the minimum z value.
A 3-dimensional box composed of x, y, z coordinates.
double yMinimum() const SIP_HOLDGIL
Returns the minimum y value.
QgsRectangle toRectangle() const
Converts the box to a 2D rectangle.
double yMaximum() const SIP_HOLDGIL
Returns the maximum y value.
double height() const SIP_HOLDGIL
Returns the height of the box.
Point geometry type, with support for z-dimension and m-values.
double xMaximum() const SIP_HOLDGIL
Returns the maximum x value.
double volume() const SIP_HOLDGIL
Returns the volume of the box.