|
SFCGAL
2.3.0
|
Represents a bounding box. More...
#include <Envelope.h>
Public Member Functions | |
| Envelope () | |
| default constructor (empty bounding box) More... | |
| Envelope (const double &xmin, const double &xmax, const double &ymin, const double &ymax) | |
| 2D box constructor with min,max values More... | |
| Envelope (const double &xmin, const double &xmax, const double &ymin, const double &ymax, const double &zmin, const double &zmax) | |
| 3D box constructor with min,max values More... | |
| Envelope (const Coordinate &coordinate) | |
| Constructor from single coordinate. More... | |
| Envelope (const Coordinate &coordinate1, const Coordinate &coordinate2) | |
| Constructor from two coordinates. More... | |
| Envelope (const Envelope &other) | |
| copy constructor More... | |
| auto | operator= (const Envelope &other) -> Envelope & |
| assign operator More... | |
| auto | isEmpty () const -> bool |
| indicates if the bounding box is empty More... | |
| auto | is3D () const -> bool |
| indicates if the bounding box has a 3D component More... | |
| void | expandToInclude (const Coordinate &coordinate) |
| expand the box to include coordinate More... | |
| auto | xMin () const -> const double & |
| Get minimum X value. More... | |
| const double & | yMin () const |
| Get minimum Y value. More... | |
| const double & | zMin () const |
| Get minimum Z value. More... | |
| const double & | xMax () const |
| Get maximum X value. More... | |
| const double & | yMax () const |
| Get maximum Y value. More... | |
| const double & | zMax () const |
| Get maximum Z value. More... | |
| detail::Interval & | boundsN (const size_t &n) |
| returns the n-th bound More... | |
| const detail::Interval & | boundsN (const size_t &n) const |
| returns the n-th bound More... | |
| CGAL::Bbox_2 | toBbox_2 () const |
| Convenience function. More... | |
| CGAL::Bbox_3 | toBbox_3 () const |
| Convenience function. More... | |
| std::unique_ptr< LineString > | toRing () const |
| convenience method to convert to 2D Polygon ring More... | |
| std::unique_ptr< Polygon > | toPolygon () const |
| convenience method to convert to 2D Polygon More... | |
| std::unique_ptr< PolyhedralSurface > | toShell () const |
| convenience method to convert to 3D Shell More... | |
| std::unique_ptr< Solid > | toSolid () const |
| convenience method to convert to 3D Solid More... | |
| std::ostream & | print (std::ostream &ostr) const |
| Display method. More... | |
Static Public Member Functions | |
| static bool | contains (const Envelope &envelopeA, const Envelope &envelopeB) |
| Global binary operator on Envelopes. More... | |
| static bool | overlaps (const Envelope &envelopeA, const Envelope &envelopeB) |
| Global binary operator on Envelopes. More... | |
Represents a bounding box.
add asText instead of "print"?
add basic operations (especialy intersects/intersects3D)
| SFCGAL::Envelope::Envelope | ( | ) |
default constructor (empty bounding box)
| SFCGAL::Envelope::Envelope | ( | const double & | xmin, |
| const double & | xmax, | ||
| const double & | ymin, | ||
| const double & | ymax | ||
| ) |
2D box constructor with min,max values
| xmin | Minimum X value |
| xmax | Maximum X value |
| ymin | Minimum Y value |
| ymax | Maximum Y value |
| SFCGAL::Envelope::Envelope | ( | const double & | xmin, |
| const double & | xmax, | ||
| const double & | ymin, | ||
| const double & | ymax, | ||
| const double & | zmin, | ||
| const double & | zmax | ||
| ) |
3D box constructor with min,max values
| xmin | Minimum X value |
| xmax | Maximum X value |
| ymin | Minimum Y value |
| ymax | Maximum Y value |
| zmin | Minimum Z value |
| zmax | Maximum Z value |
| SFCGAL::Envelope::Envelope | ( | const Coordinate & | coordinate | ) |
Constructor from single coordinate.
| coordinate | The coordinate to create envelope from |
| SFCGAL::Envelope::Envelope | ( | const Coordinate & | coordinate1, |
| const Coordinate & | coordinate2 | ||
| ) |
Constructor from two coordinates.
| coordinate1 | First coordinate |
| coordinate2 | Second coordinate |
| SFCGAL::Envelope::Envelope | ( | const Envelope & | other | ) |
copy constructor
| other | The envelope to copy from |
|
inline |
returns the n-th bound
| n | The index of the bound (0=X, 1=Y, 2=Z) |
|
inline |
returns the n-th bound
| n | The index of the bound (0=X, 1=Y, 2=Z) |
Global binary operator on Envelopes.
Test if A's bounding box contains B's
| envelopeA | First envelope |
| envelopeB | Second envelope |
| void SFCGAL::Envelope::expandToInclude | ( | const Coordinate & | coordinate | ) |
expand the box to include coordinate
| coordinate | The coordinate to include in the envelope |
| auto SFCGAL::Envelope::is3D | ( | ) | const -> bool |
indicates if the bounding box has a 3D component
| auto SFCGAL::Envelope::isEmpty | ( | ) | const -> bool |
indicates if the bounding box is empty
assign operator
| other | The envelope to assign from |
Global binary operator on Envelopes.
Test if A's bounding box overlaps B's
| envelopeA | First envelope |
| envelopeB | Second envelope |
| auto SFCGAL::Envelope::print | ( | std::ostream & | ostr | ) | const |
Display method.
| ostr | Output stream to print to |
|
inline |
Convenience function.
Convert to CGAL::BBox_2
|
inline |
Convenience function.
Convert to CGAL::BBox_3
| auto SFCGAL::Envelope::toPolygon | ( | ) | const |
| auto SFCGAL::Envelope::toRing | ( | ) | const |
convenience method to convert to 2D Polygon ring
| auto SFCGAL::Envelope::toShell | ( | ) | const |
convenience method to convert to 3D Shell
| auto SFCGAL::Envelope::toSolid | ( | ) | const |
|
inline |
Get maximum X value.
|
inline |
Get minimum X value.
|
inline |
Get maximum Y value.
|
inline |
Get minimum Y value.
|
inline |
Get maximum Z value.
|
inline |
Get minimum Z value.
1.8.10