QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
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;
double zMaximum() const
Returns the maximum z value.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Point geometry type, with support for z-dimension and m-values.
double depth() const
Returns the depth of the box.
double zMinimum() const
Returns the minimum z value.
double yMaximum() const
Returns the maximum y value.
QgsRectangle toRectangle() const
Converts the box to a 2D rectangle.
double xMinimum() const
Returns the minimum x value.
double width() const
Returns the width of the box.
double volume() const
Returns the volume of the box.
double yMinimum() const
Returns the minimum y value.
double xMaximum() const
Returns the maximum x value.
double height() const
Returns the height of the box.