SFCGAL  2.2.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
SFCGAL::GeometryCollection Class Reference

A GeometryCollection in SFA. More...

#include <GeometryCollection.h>

Inheritance diagram for SFCGAL::GeometryCollection:
SFCGAL::MultiLineString SFCGAL::MultiPoint SFCGAL::MultiPolygon SFCGAL::MultiSolid

Public Types

typedef boost::ptr_vector< Geometry >::iterator iterator
 
typedef boost::ptr_vector< Geometry >::const_iterator const_iterator
 

Public Member Functions

 GeometryCollection ()
 Empty GeometryCollection constructor. More...
 
 GeometryCollection (const GeometryCollection &other)
 Copy constructor. More...
 
GeometryCollectionoperator= (GeometryCollection other)
 assign operator More...
 
virtual ~GeometryCollection ()
 destructor More...
 
GeometryCollectionclone () const override
 
std::string geometryType () const override
 
GeometryType geometryTypeId () const override
 
int dimension () const override
 
int coordinateDimension () const override
 
bool isEmpty () const override
 
bool is3D () const override
 
bool isMeasured () const override
 
auto dropZ () -> bool override
 
auto dropM () -> bool override
 
auto swapXY () -> void override
 
size_t numGeometries () const override
 
const Geometry & geometryN (size_t const &n) const override
 
Geometry & geometryN (size_t const &n) override
 
virtual void setGeometryN (const Geometry &geometry, size_t const &n) override
 
virtual void setGeometryN (Geometry *geometry, size_t const &n) override
 
void addGeometry (Geometry *geometry)
 [SFA/OGC]add a geometry to the collection (takes ownership) More...
 
void addGeometry (Geometry const &geometry)
 [SFA/OGC]add a geometry to the collection (clone instance) More...
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void accept (GeometryVisitor &visitor) override
 
void accept (ConstGeometryVisitor &visitor) const override
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 Serializer. More...
 

Protected Member Functions

virtual bool isAllowed (Geometry const &g)
 Test if a geometry in the collection. More...
 
void swap (GeometryCollection &other)
 Swap. More...
 

Detailed Description

A GeometryCollection in SFA.

Member Typedef Documentation

typedef boost::ptr_vector<Geometry>::const_iterator SFCGAL::GeometryCollection::const_iterator
typedef boost::ptr_vector<Geometry>::iterator SFCGAL::GeometryCollection::iterator

Constructor & Destructor Documentation

SFCGAL::GeometryCollection::GeometryCollection ( )
default

Empty GeometryCollection constructor.

SFCGAL::GeometryCollection::GeometryCollection ( const GeometryCollection other)

Copy constructor.

SFCGAL::GeometryCollection::~GeometryCollection ( )
virtualdefault

destructor

Member Function Documentation

void SFCGAL::GeometryCollection::accept ( GeometryVisitor visitor)
override
void SFCGAL::GeometryCollection::accept ( ConstGeometryVisitor visitor) const
override
void SFCGAL::GeometryCollection::addGeometry ( Geometry *  geometry)

[SFA/OGC]add a geometry to the collection (takes ownership)

void SFCGAL::GeometryCollection::addGeometry ( Geometry const &  geometry)

[SFA/OGC]add a geometry to the collection (clone instance)

iterator SFCGAL::GeometryCollection::begin ( )
inline
const_iterator SFCGAL::GeometryCollection::begin ( ) const
inline
auto SFCGAL::GeometryCollection::clone ( ) const
override
auto SFCGAL::GeometryCollection::coordinateDimension ( ) const
override
auto SFCGAL::GeometryCollection::dimension ( ) const
override
auto SFCGAL::GeometryCollection::dropM ( ) -> bool
override
auto SFCGAL::GeometryCollection::dropZ ( ) -> bool
override
iterator SFCGAL::GeometryCollection::end ( )
inline
const_iterator SFCGAL::GeometryCollection::end ( ) const
inline
auto SFCGAL::GeometryCollection::geometryN ( size_t const &  n) const
override
auto SFCGAL::GeometryCollection::geometryN ( size_t const &  n)
override
auto SFCGAL::GeometryCollection::geometryType ( ) const
override
auto SFCGAL::GeometryCollection::geometryTypeId ( ) const
override
auto SFCGAL::GeometryCollection::is3D ( ) const
override
auto SFCGAL::GeometryCollection::isAllowed ( Geometry const &  g)
protectedvirtual

Test if a geometry in the collection.

Reimplemented in SFCGAL::MultiPolygon, SFCGAL::MultiLineString, SFCGAL::MultiPoint, and SFCGAL::MultiSolid.

auto SFCGAL::GeometryCollection::isEmpty ( ) const
override
auto SFCGAL::GeometryCollection::isMeasured ( ) const
override
auto SFCGAL::GeometryCollection::numGeometries ( ) const
override
auto SFCGAL::GeometryCollection::operator= ( GeometryCollection  other)

assign operator

template<class Archive >
void SFCGAL::GeometryCollection::serialize ( Archive &  ar,
const unsigned  int 
)
inline

Serializer.

void SFCGAL::GeometryCollection::setGeometryN ( const Geometry &  geometry,
size_t const &  n 
)
overridevirtual
void SFCGAL::GeometryCollection::setGeometryN ( Geometry *  geometry,
size_t const &  n 
)
overridevirtual
void SFCGAL::GeometryCollection::swap ( GeometryCollection other)
inlineprotected

Swap.

auto SFCGAL::GeometryCollection::swapXY ( ) -> void
override