SFCGAL
1.4.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 &p) | |
default constructor (empty bounding box) More... | |
Envelope (const Coordinate &p1, const Coordinate &p2) | |
default constructor (empty bounding box) More... | |
Envelope (const Envelope &other) | |
copy constructor More... | |
Envelope & | operator= (const Envelope &other) |
assign operator More... | |
~Envelope () | |
destructor More... | |
bool | isEmpty () const |
indicates if the bounding box is empty More... | |
bool | is3D () const |
indicates if the bounding box has a 3D component More... | |
void | expandToInclude (const Coordinate &coordinate) |
expand the box to include coordinate More... | |
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 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 &) const |
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 &p) | |
default constructor (empty bounding box) More... | |
Envelope (const Coordinate &p1, const Coordinate &p2) | |
default constructor (empty bounding box) More... | |
Envelope (const Envelope &other) | |
copy constructor More... | |
Envelope & | operator= (const Envelope &other) |
assign operator More... | |
~Envelope () | |
destructor More... | |
bool | isEmpty () const |
indicates if the bounding box is empty More... | |
bool | is3D () const |
indicates if the bounding box has a 3D component More... | |
void | expandToInclude (const Coordinate &coordinate) |
expand the box to include coordinate More... | |
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 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 &) const |
Static Public Member Functions | |
static bool | contains (const Envelope &a, const Envelope &b) |
Global binary operator on Envelopes. More... | |
static bool | overlaps (const Envelope &a, const Envelope &b) |
Global binary operator on Envelopes. More... | |
static bool | contains (const Envelope &a, const Envelope &b) |
Global binary operator on Envelopes. More... | |
static bool | overlaps (const Envelope &a, const Envelope &b) |
Global binary operator on Envelopes. More... | |
Represents a bounding box.
add asText instead of "print"?
add basic operations (especialy intersects/intersects3D)
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
SFCGAL::Envelope::~Envelope | ( | ) |
destructor
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
SFCGAL::Envelope::~Envelope | ( | ) |
destructor
|
inline |
returns the n-th bound
|
inline |
returns the n-th bound
|
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
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
void SFCGAL::Envelope::expandToInclude | ( | const Coordinate & | coordinate | ) |
expand the box to include coordinate
bool SFCGAL::Envelope::is3D | ( | ) | const |
indicates if the bounding box has a 3D component
bool SFCGAL::Envelope::is3D | ( | ) | const |
indicates if the bounding box has a 3D component
bool SFCGAL::Envelope::isEmpty | ( | ) | const |
indicates if the bounding box is empty
bool SFCGAL::Envelope::isEmpty | ( | ) | const |
indicates if the bounding box is empty
Global binary operator on Envelopes.
Test if A's bounding box overlaps B's
Global binary operator on Envelopes.
Test if A's bounding box overlaps B's
std::ostream & SFCGAL::Envelope::print | ( | std::ostream & | ostr | ) | const |
std::ostream& SFCGAL::Envelope::print | ( | std::ostream & | ) | const |
|
inline |
Convenience function.
Convert to CGAL::BBox_2
|
inline |
Convenience function.
Convert to CGAL::BBox_2
|
inline |
Convenience function.
Convert to CGAL::BBox_3
|
inline |
Convenience function.
Convert to CGAL::BBox_3
std::unique_ptr< Polygon > SFCGAL::Envelope::toPolygon | ( | ) | const |
std::unique_ptr< Polygon > SFCGAL::Envelope::toPolygon | ( | ) | const |
std::unique_ptr< LineString > SFCGAL::Envelope::toRing | ( | ) | const |
convenience method to convert to 2D Polygon ring
std::unique_ptr< LineString > SFCGAL::Envelope::toRing | ( | ) | const |
convenience method to convert to 2D Polygon ring
std::unique_ptr< PolyhedralSurface > SFCGAL::Envelope::toShell | ( | ) | const |
std::unique_ptr< PolyhedralSurface > SFCGAL::Envelope::toShell | ( | ) | const |
std::unique_ptr< Solid > SFCGAL::Envelope::toSolid | ( | ) | const |
std::unique_ptr< Solid > SFCGAL::Envelope::toSolid | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |