21 #include "qgis_core.h" 43 QgsBox3d(
double xmin = 0,
double ymin = 0,
double zmin = 0,
double xmax = 0,
double ymax = 0,
double zmax = 0 );
62 void setXMinimum(
double x );
69 void setXMaximum(
double x );
76 double xMinimum()
const {
return mBounds2d.xMinimum(); }
83 double xMaximum()
const {
return mBounds2d.xMaximum(); }
90 void setYMinimum(
double y );
97 void setYMaximum(
double y );
104 double yMinimum()
const {
return mBounds2d.yMinimum(); }
111 double yMaximum()
const {
return mBounds2d.yMaximum(); }
118 void setZMinimum(
double z );
125 void setZMaximum(
double z );
151 double width()
const {
return mBounds2d.width(); }
158 double height()
const {
return mBounds2d.height(); }
165 double depth()
const {
return mZmax - mZmin; }
170 double volume()
const {
return mBounds2d.area() * ( mZmax - mZmin ); }
186 bool intersects(
const QgsBox3d &other )
const;
191 bool contains(
const QgsBox3d &other )
const;
199 bool contains(
const QgsPoint &point )
const;
A rectangle specified with double values.
double zMaximum() const
Returns the maximum z value.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
double volume() const
Returns the volume of the box.
A 3-dimensional box composed of x, y, z coordinates.
double zMinimum() const
Returns the minimum z value.
double height() const
Returns the height of the box.
double width() const
Returns the width of the box.
Point geometry type, with support for z-dimension and m-values.
double xMaximum() const
Returns the maximum x value.
QgsRectangle toRectangle() const
Converts the box to a 2D rectangle.
double yMinimum() const
Returns the minimum y value.
double xMinimum() const
Returns the minimum x value.
double depth() const
Returns the depth of the box.
double yMaximum() const
Returns the maximum y value.