SFCGAL
|
Represents a bounding box. More...
#include <Envelope.h>
Public Member Functions | |
Envelope () | |
default constructor (empty bounding box) | |
Envelope (const double &xmin, const double &xmax, const double &ymin, const double &ymax) | |
2D box constructor with min,max values | |
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 | |
Envelope (const Coordinate &p) | |
default constructor (empty bounding box) | |
Envelope (const Coordinate &p1, const Coordinate &p2) | |
default constructor (empty bounding box) | |
Envelope (const Envelope &other) | |
copy constructor | |
Envelope & | operator= (const Envelope &other) |
assign operator | |
~Envelope () | |
destructor | |
bool | isEmpty () const |
indicates if the bounding box is empty | |
bool | is3D () const |
indicates if the bounding box has a 3D component | |
void | expandToInclude (const Coordinate &coordinate) |
expand the box to include coordinate | |
const double & | xMin () const |
const double & | yMin () const |
const double & | zMin () const |
const double & | xMax () const |
const double & | yMax () const |
const double & | zMax () const |
detail::Interval & | boundsN (const size_t &n) |
returns the n-th bound | |
const detail::Interval & | boundsN (const size_t &n) const |
returns the n-th bound | |
CGAL::Bbox_2 | toBbox_2 () const |
Convenience function. | |
CGAL::Bbox_3 | toBbox_3 () const |
Convenience function. | |
std::unique_ptr< LineString > | toRing () const |
convenience method to convert to 2D Polygon ring | |
std::unique_ptr< Polygon > | toPolygon () const |
convenience method to convert to 2D Polygon | |
std::unique_ptr< PolyhedralSurface > | toShell () const |
convenience method to convert to 3D Shell | |
std::unique_ptr< Solid > | toSolid () const |
convenience method to convert to 3D Solid | |
std::ostream & | print (std::ostream &) const |
Static Public Member Functions | |
static bool | contains (const Envelope &a, const Envelope &b) |
Global binary operator on Envelopes. | |
static bool | overlaps (const Envelope &a, const Envelope &b) |
Global binary operator on Envelopes. | |
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
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
SFCGAL::Envelope::Envelope | ( | const Coordinate & | p | ) |
default constructor (empty bounding box)
SFCGAL::Envelope::Envelope | ( | const Coordinate & | p1, |
const Coordinate & | p2 ) |
default constructor (empty bounding box)
SFCGAL::Envelope::Envelope | ( | const Envelope & | other | ) |
copy constructor
|
default |
destructor
|
inline |
returns the n-th bound
|
inline |
returns the n-th bound
Global binary operator on Envelopes.
Test if A's bounding box contains B's FIXME: consider moving that outside of the class
void SFCGAL::Envelope::expandToInclude | ( | const Coordinate & | coordinate | ) |
expand the box to include coordinate
auto SFCGAL::Envelope::is3D | ( | ) | const |
indicates if the bounding box has a 3D component
auto SFCGAL::Envelope::isEmpty | ( | ) | const |
indicates if the bounding box is empty
auto SFCGAL::Envelope::operator= | ( | const Envelope & | other | ) |
assign operator
Global binary operator on Envelopes.
Test if A's bounding box overlaps B's
auto SFCGAL::Envelope::print | ( | std::ostream & | ostr | ) | const |
|
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 |
auto SFCGAL::Envelope::toSolid | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |