21 #include "qgis_core.h" 42 QgsBox3d(
double xmin = 0,
double ymin = 0,
double zmin = 0,
double xmax = 0,
double ymax = 0,
double zmax = 0 );
61 void setXMinimum(
double x );
68 void setXMaximum(
double x );
75 double xMinimum()
const {
return mBounds2d.xMinimum(); }
82 double xMaximum()
const {
return mBounds2d.xMaximum(); }
89 void setYMinimum(
double y );
96 void setYMaximum(
double y );
103 double yMinimum()
const {
return mBounds2d.yMinimum(); }
110 double yMaximum()
const {
return mBounds2d.yMaximum(); }
117 void setZMinimum(
double z );
124 void setZMaximum(
double z );
150 double width()
const {
return mBounds2d.width(); }
157 double height()
const {
return mBounds2d.height(); }
164 double depth()
const {
return mZmax - mZmin; }
169 double volume()
const {
return mBounds2d.area() * ( mZmax - mZmin ); }
185 bool intersects(
const QgsBox3d &other )
const;
190 bool contains(
const QgsBox3d &other )
const;
198 bool contains(
const QgsPoint &point )
const;
double height() const
Returns the height of the box.
A rectangle specified with double values.
double zMaximum() const
Returns the maximum z value.
double depth() const
Returns the depth of the box.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
A 3-dimensional box composed of x, y, z coordinates.
double yMaximum() const
Returns the maximum y value.
double xMinimum() const
Returns the minimum x value.
QgsRectangle toRectangle() const
Converts the box to a 2D rectangle.
double xMaximum() const
Returns the maximum x value.
double zMinimum() const
Returns the minimum z value.
Point geometry type, with support for z-dimension and m-values.
double yMinimum() const
Returns the minimum y value.
double width() const
Returns the width of the box.
double volume() const
Returns the volume of the box.