SFCGAL 1.4.1
|
A Solid modeled with an exteriorShell and interiorShells materialized by PolyhedralSurface. More...
#include <Solid.h>
Public Types | |
typedef boost::ptr_vector< PolyhedralSurface >::iterator | iterator |
typedef boost::ptr_vector< PolyhedralSurface >::const_iterator | const_iterator |
Public Member Functions | |
Solid () | |
Empty Solid constructor. | |
Solid (const PolyhedralSurface &exteriorShell) | |
Constructor with an exterior shell. | |
Solid (PolyhedralSurface *exteriorShell) | |
Constructor with an exterior shell (takes ownership) | |
Solid (const std::vector< PolyhedralSurface > &shells) | |
Constructor with a vector of shells (PolyhedralSurface) | |
Solid (const Solid &other) | |
Copy constructor. | |
Solid & | operator= (Solid other) |
assign operator | |
~Solid () | |
destructor | |
virtual Solid * | clone () const |
Get a deep copy of the geometry. | |
virtual std::string | geometryType () const |
[OGC/SFA]returns the geometry type | |
virtual GeometryType | geometryTypeId () const |
Returns a code corresponding to the type. | |
virtual int | dimension () const |
[OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...) | |
virtual int | coordinateDimension () const |
[OGC/SFA]returns the dimension of the coordinates | |
virtual bool | isEmpty () const |
[OGC/SFA]test if geometry is empty | |
virtual bool | is3D () const |
[OGC/SFA]test if geometry is 3d | |
virtual bool | isMeasured () const |
[OGC/SFA]test if geometry is measured (has an m) | |
const PolyhedralSurface & | exteriorShell () const |
Returns the exterior shell. | |
PolyhedralSurface & | exteriorShell () |
Returns the exterior shell. | |
size_t | numInteriorShells () const |
Returns the number of interior shells. | |
const PolyhedralSurface & | interiorShellN (size_t const &n) const |
Returns the n-th interior shell. | |
PolyhedralSurface & | interiorShellN (size_t const &n) |
Returns the n-th interior shell. | |
void | addInteriorShell (const PolyhedralSurface &shell) |
add a polygon to the PolyhedralSurface | |
void | addInteriorShell (PolyhedralSurface *shell) |
add a polygon to the PolyhedralSurface | |
size_t | numShells () const |
Returns the number of shells. | |
const PolyhedralSurface & | shellN (const size_t &n) const |
Returns the n-th shell, 0 is exteriorShell. | |
PolyhedralSurface & | shellN (const size_t &n) |
Returns the n-th shell, 0 is exteriorShell. | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
virtual void | accept (GeometryVisitor &visitor) |
[visitor]dispatch visitor | |
virtual void | accept (ConstGeometryVisitor &visitor) const |
[visitor]dispatch visitor | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Serializer. | |
![]() | |
Geometry () | |
Default constructor. | |
Geometry (const Geometry &)=default | |
Copy constructor. | |
Geometry & | operator= (const Geometry &other)=default |
Copy assignemnt operator. | |
virtual | ~Geometry ()=default |
Destructor. | |
void | forceValidityFlag (bool validity) |
Force the state of the validity flag. | |
bool | hasValidityFlag () const |
Returns the validity flag. | |
std::string | asText (const int &numDecimals=-1) const |
[OGC/SFA]returns the WKT string | |
Envelope | envelope () const |
[OGC/SFA]Returns a polygon representing the BBOX of the geometry | |
virtual std::unique_ptr< Geometry > | boundary () const |
[OGC/SFA]Returns the boundary of the geometry | |
double | distance (const Geometry &other) const |
Computes the distance to an other geometry. | |
double | distance3D (const Geometry &other) const |
Computes the 3D distance to an other geometry. | |
void | round (const long &scale=1) |
round the geometry with a corresponding scale factor | |
auto | almostEqual (const Geometry &, const double tolerance) const -> bool |
Equality operator. | |
virtual size_t | numGeometries () const |
[OGC/SFA]Gets the number of geometries in a collection of geometries | |
virtual const Geometry & | geometryN (size_t const &n) const |
[OGC/SFA]Returns the n-th geometry | |
virtual Geometry & | geometryN (size_t const &n) |
[OGC/SFA]Returns the n-th geometry | |
template<typename Derived > | |
bool | is () const |
Tests if geometry is of "Derived" type given as template parameter. | |
template<typename Derived > | |
const Derived & | as () const |
Downcast to a "Derived" class. | |
template<typename Derived > | |
Derived & | as () |
Downcast to a "Derived" class. | |
template<class Archive > | |
void | serialize (Archive &, const unsigned int) |
Serializer. | |
Additional Inherited Members | |
![]() | |
bool | validityFlag_ |
A Solid modeled with an exteriorShell and interiorShells materialized by PolyhedralSurface.
typedef boost::ptr_vector<PolyhedralSurface>::const_iterator SFCGAL::Solid::const_iterator |
typedef boost::ptr_vector<PolyhedralSurface>::iterator SFCGAL::Solid::iterator |
SFCGAL::Solid::Solid | ( | ) |
Empty Solid constructor.
SFCGAL::Solid::Solid | ( | const PolyhedralSurface & | exteriorShell | ) |
Constructor with an exterior shell.
SFCGAL::Solid::Solid | ( | PolyhedralSurface * | exteriorShell | ) |
Constructor with an exterior shell (takes ownership)
SFCGAL::Solid::Solid | ( | const std::vector< PolyhedralSurface > & | shells | ) |
Constructor with a vector of shells (PolyhedralSurface)
SFCGAL::Solid::Solid | ( | const Solid & | other | ) |
Copy constructor.
|
default |
destructor
|
virtual |
[visitor]dispatch visitor
Implements SFCGAL::Geometry.
|
virtual |
[visitor]dispatch visitor
Implements SFCGAL::Geometry.
|
inline |
add a polygon to the PolyhedralSurface
|
inline |
add a polygon to the PolyhedralSurface
|
inline |
|
inline |
|
virtual |
Get a deep copy of the geometry.
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]returns the dimension of the coordinates
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...)
Implements SFCGAL::Geometry.
|
inline |
|
inline |
|
inline |
Returns the exterior shell.
|
inline |
Returns the exterior shell.
|
virtual |
[OGC/SFA]returns the geometry type
Implements SFCGAL::Geometry.
|
virtual |
|
inline |
Returns the n-th interior shell.
|
inline |
Returns the n-th interior shell.
|
virtual |
[OGC/SFA]test if geometry is 3d
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]test if geometry is empty
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]test if geometry is measured (has an m)
Implements SFCGAL::Geometry.
|
inline |
Returns the number of interior shells.
|
inline |
Returns the number of shells.
auto SFCGAL::Solid::operator= | ( | Solid | other | ) |
assign operator
|
inline |
Serializer.
|
inline |
Returns the n-th shell, 0 is exteriorShell.
|
inline |
Returns the n-th shell, 0 is exteriorShell.