Class SFCGAL::Solid#
#include <Solid.h>
Inherits the following classes: SFCGAL::Geometry
Public Types#
Type | Name |
---|---|
typedef boost::ptr_vector< PolyhedralSurface >::const_iterator | const_iterator |
typedef boost::ptr_vector< PolyhedralSurface >::iterator | iterator |
Public Functions#
Type | Name |
---|---|
Solid () |
|
Solid (const PolyhedralSurface & exteriorShell) |
|
Solid (PolyhedralSurface * exteriorShell) |
|
Solid (const std::vector< PolyhedralSurface > & shells) |
|
Solid (const Solid & other) |
|
void | accept (GeometryVisitor & visitor) override |
void | accept (ConstGeometryVisitor & visitor) override const |
void | addInteriorShell (const PolyhedralSurface & shell) |
void | addInteriorShell (PolyhedralSurface * shell) |
iterator | begin () |
const_iterator | begin () const |
Solid * | clone () override const |
int | coordinateDimension () override const |
int | dimension () override const |
auto | dropM () override |
auto | dropZ () override |
iterator | end () |
const_iterator | end () const |
const PolyhedralSurface & | exteriorShell () const |
PolyhedralSurface & | exteriorShell () |
std::string | geometryType () override const |
GeometryType | geometryTypeId () override const |
const PolyhedralSurface & | interiorShellN (size_t const & n) const |
PolyhedralSurface & | interiorShellN (size_t const & n) |
bool | is3D () override const |
bool | isEmpty () override const |
bool | isMeasured () override const |
size_t | numInteriorShells () const |
size_t | numShells () const |
Solid & | operator= (Solid other) |
void | serialize (Archive & ar, const unsigned int) |
void | setExteriorShell (const PolyhedralSurface & shell) |
void | setExteriorShell (PolyhedralSurface * shell) |
const PolyhedralSurface & | shellN (const size_t & n) const |
PolyhedralSurface & | shellN (const size_t & n) |
auto | swapXY () override |
~Solid () |
Detailed Description#
A Solid modeled with an exteriorShell and interiorShells materialized by PolyhedralSurface.
Note:
A shell is supposed to be closed.
Warning:
GM_Solid, from ISO 19107 is defined in CityGML, but not in SFA. Without Solid concept,
Note:
Volume concept is missing.
Public Types Documentation#
typedef const_iterator#
typedef boost::ptr_vector<PolyhedralSurface>::const_iterator SFCGAL::Solid::const_iterator;
typedef iterator#
typedef boost::ptr_vector<PolyhedralSurface>::iterator SFCGAL::Solid::iterator;
Public Functions Documentation#
function Solid [1/5]#
SFCGAL::Solid::Solid ()
Empty Solid constructor
function Solid [2/5]#
SFCGAL::Solid::Solid (
const PolyhedralSurface & exteriorShell
)
Constructor with an exterior shell
function Solid [3/5]#
SFCGAL::Solid::Solid (
PolyhedralSurface * exteriorShell
)
Constructor with an exterior shell (takes ownership)
function Solid [4/5]#
SFCGAL::Solid::Solid (
const std::vector< PolyhedralSurface > & shells
)
Constructor with a vector of shells (PolyhedralSurface)
function Solid [5/5]#
SFCGAL::Solid::Solid (
const Solid & other
)
Copy constructor
function accept [1/2]#
void SFCGAL::Solid::accept (
GeometryVisitor & visitor
) override
function accept [2/2]#
void SFCGAL::Solid::accept (
ConstGeometryVisitor & visitor
) override const
function addInteriorShell [1/2]#
inline void SFCGAL::Solid::addInteriorShell (
const PolyhedralSurface & shell
)
adds an interior shell to the Solid
function addInteriorShell [2/2]#
inline void SFCGAL::Solid::addInteriorShell (
PolyhedralSurface * shell
)
adds an interior shell to the Solid
function begin [1/2]#
inline iterator SFCGAL::Solid::begin ()
function begin [2/2]#
inline const_iterator SFCGAL::Solid::begin () const
function clone#
Solid * SFCGAL::Solid::clone () override const
function coordinateDimension#
int SFCGAL::Solid::coordinateDimension () override const
function dimension#
int SFCGAL::Solid::dimension () override const
function dropM#
auto SFCGAL::Solid::dropM () override
function dropZ#
auto SFCGAL::Solid::dropZ () override
function end [1/2]#
inline iterator SFCGAL::Solid::end ()
function end [2/2]#
inline const_iterator SFCGAL::Solid::end () const
function exteriorShell [1/2]#
inline const PolyhedralSurface & SFCGAL::Solid::exteriorShell () const
Returns the exterior shell
function exteriorShell [2/2]#
inline PolyhedralSurface & SFCGAL::Solid::exteriorShell ()
Returns the exterior shell
function geometryType#
std::string SFCGAL::Solid::geometryType () override const
function geometryTypeId#
GeometryType SFCGAL::Solid::geometryTypeId () override const
function interiorShellN [1/2]#
inline const PolyhedralSurface & SFCGAL::Solid::interiorShellN (
size_t const & n
) const
Returns the n-th interior shell
function interiorShellN [2/2]#
inline PolyhedralSurface & SFCGAL::Solid::interiorShellN (
size_t const & n
)
Returns the n-th interior shell
function is3D#
bool SFCGAL::Solid::is3D () override const
function isEmpty#
bool SFCGAL::Solid::isEmpty () override const
function isMeasured#
bool SFCGAL::Solid::isMeasured () override const
function numInteriorShells#
inline size_t SFCGAL::Solid::numInteriorShells () const
Returns the number of interior shells
function numShells#
inline size_t SFCGAL::Solid::numShells () const
Returns the number of shells
function operator=#
Solid & SFCGAL::Solid::operator= (
Solid other
)
assign operator
function serialize#
template<class Archive>
inline void SFCGAL::Solid::serialize (
Archive & ar,
const unsigned int
)
Serializer
function setExteriorShell [1/2]#
inline void SFCGAL::Solid::setExteriorShell (
const PolyhedralSurface & shell
)
Sets the Solid exterior shell
function setExteriorShell [2/2]#
inline void SFCGAL::Solid::setExteriorShell (
PolyhedralSurface * shell
)
Sets the Solid exterior shell The ownership of the shell is taken. The caller is not responsible anymore of its deallocation.
function shellN [1/2]#
inline const PolyhedralSurface & SFCGAL::Solid::shellN (
const size_t & n
) const
Returns the n-th shell, 0 is exteriorShell
Warning:
not standard, avoid conditionnal to access rings
function shellN [2/2]#
inline PolyhedralSurface & SFCGAL::Solid::shellN (
const size_t & n
)
Returns the n-th shell, 0 is exteriorShell
Warning:
not standard, avoid conditionnal to access rings
function swapXY#
auto SFCGAL::Solid::swapXY () override
function ~Solid#
SFCGAL::Solid::~Solid ()
destructor
The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/Solid.h