Class SFCGAL::GeometryCollection#
ClassList > SFCGAL > GeometryCollection
#include <GeometryCollection.h>
Inherits the following classes: SFCGAL::Geometry
Inherited by the following classes: SFCGAL::MultiLineString, SFCGAL::MultiPoint, SFCGAL::MultiPolygon, SFCGAL::MultiSolid
Public Types#
Type | Name |
---|---|
typedef boost::ptr_vector< Geometry >::const_iterator | const_iterator |
typedef boost::ptr_vector< Geometry >::iterator | iterator |
Public Functions#
Type | Name |
---|---|
GeometryCollection () |
|
GeometryCollection (const GeometryCollection & other) |
|
void | accept (GeometryVisitor & visitor) override |
void | accept (ConstGeometryVisitor & visitor) override const |
void | addGeometry (Geometry * geometry) |
void | addGeometry (Geometry const & geometry) |
iterator | begin () |
const_iterator | begin () const |
GeometryCollection * | clone () override const |
int | coordinateDimension () override const |
int | dimension () override const |
auto | dropM () override |
auto | dropZ () override |
iterator | end () |
const_iterator | end () const |
const Geometry & | geometryN (size_t const & n) override const |
Geometry & | geometryN (size_t const & n) override |
std::string | geometryType () override const |
GeometryType | geometryTypeId () override const |
bool | is3D () override const |
bool | isEmpty () override const |
bool | isMeasured () override const |
size_t | numGeometries () override const |
GeometryCollection & | operator= (GeometryCollection other) |
void | serialize (Archive & ar, const unsigned int) |
virtual void | setGeometryN (const Geometry & geometry, size_t const & n) override |
virtual void | setGeometryN (Geometry * geometry, size_t const & n) override |
auto | swapXY () override |
virtual | ~GeometryCollection () |
Protected Functions#
Type | Name |
---|---|
virtual bool | isAllowed (Geometry const & g) |
void | swap (GeometryCollection & other) |
Detailed Description#
A GeometryCollection in SFA.
Public Types Documentation#
typedef const_iterator#
typedef boost::ptr_vector<Geometry>::const_iterator SFCGAL::GeometryCollection::const_iterator;
typedef iterator#
typedef boost::ptr_vector<Geometry>::iterator SFCGAL::GeometryCollection::iterator;
Public Functions Documentation#
function GeometryCollection [1/2]#
SFCGAL::GeometryCollection::GeometryCollection ()
Empty GeometryCollection constructor
function GeometryCollection [2/2]#
SFCGAL::GeometryCollection::GeometryCollection (
const GeometryCollection & other
)
Copy constructor
function accept [1/2]#
void SFCGAL::GeometryCollection::accept (
GeometryVisitor & visitor
) override
function accept [2/2]#
void SFCGAL::GeometryCollection::accept (
ConstGeometryVisitor & visitor
) override const
function addGeometry [1/2]#
void SFCGAL::GeometryCollection::addGeometry (
Geometry * geometry
)
[SFA/OGC]add a geometry to the collection (takes ownership)
function addGeometry [2/2]#
void SFCGAL::GeometryCollection::addGeometry (
Geometry const & geometry
)
[SFA/OGC]add a geometry to the collection (clone instance)
function begin [1/2]#
inline iterator SFCGAL::GeometryCollection::begin ()
function begin [2/2]#
inline const_iterator SFCGAL::GeometryCollection::begin () const
function clone#
GeometryCollection * SFCGAL::GeometryCollection::clone () override const
function coordinateDimension#
int SFCGAL::GeometryCollection::coordinateDimension () override const
function dimension#
int SFCGAL::GeometryCollection::dimension () override const
function dropM#
auto SFCGAL::GeometryCollection::dropM () override
function dropZ#
auto SFCGAL::GeometryCollection::dropZ () override
function end [1/2]#
inline iterator SFCGAL::GeometryCollection::end ()
function end [2/2]#
inline const_iterator SFCGAL::GeometryCollection::end () const
function geometryN [1/2]#
const Geometry & SFCGAL::GeometryCollection::geometryN (
size_t const & n
) override const
function geometryN [2/2]#
Geometry & SFCGAL::GeometryCollection::geometryN (
size_t const & n
) override
function geometryType#
std::string SFCGAL::GeometryCollection::geometryType () override const
function geometryTypeId#
GeometryType SFCGAL::GeometryCollection::geometryTypeId () override const
function is3D#
bool SFCGAL::GeometryCollection::is3D () override const
function isEmpty#
bool SFCGAL::GeometryCollection::isEmpty () override const
function isMeasured#
bool SFCGAL::GeometryCollection::isMeasured () override const
function numGeometries#
size_t SFCGAL::GeometryCollection::numGeometries () override const
function operator=#
GeometryCollection & SFCGAL::GeometryCollection::operator= (
GeometryCollection other
)
assign operator
function serialize#
template<class Archive>
inline void SFCGAL::GeometryCollection::serialize (
Archive & ar,
const unsigned int
)
Serializer
function setGeometryN [1/2]#
virtual void SFCGAL::GeometryCollection::setGeometryN (
const Geometry & geometry,
size_t const & n
) override
function setGeometryN [2/2]#
virtual void SFCGAL::GeometryCollection::setGeometryN (
Geometry * geometry,
size_t const & n
) override
function swapXY#
auto SFCGAL::GeometryCollection::swapXY () override
function ~GeometryCollection#
virtual SFCGAL::GeometryCollection::~GeometryCollection ()
destructor
Protected Functions Documentation#
function isAllowed#
virtual bool SFCGAL::GeometryCollection::isAllowed (
Geometry const & g
)
Test if a geometry in the collection
function swap#
inline void SFCGAL::GeometryCollection::swap (
GeometryCollection & other
)
Swap
The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/GeometryCollection.h