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

A MultiPolygon in SFA. More...

#include <MultiPolygon.h>

Inheritance diagram for SFCGAL::MultiPolygon:
SFCGAL::GeometryCollection

Public Member Functions

 MultiPolygon ()
 Empty MultiPolygon constructor. More...
 
 MultiPolygon (MultiPolygon const &other)
 Copy constructor. More...
 
MultiPolygonoperator= (MultiPolygon other)
 assign operator More...
 
virtual ~MultiPolygon ()
 destructor More...
 
MultiPolygonclone () const override
 
std::string geometryType () const override
 
GeometryType geometryTypeId () const override
 
PolygonpolygonN (const size_t &n)
 returns the n-th Geometry as a Polygon More...
 
const PolygonpolygonN (const size_t &n) const
 returns the n-th Geometry as a Polygon More...
 
void accept (GeometryVisitor &visitor) override
 
void accept (ConstGeometryVisitor &visitor) const override
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 Serializer. More...
 
- Public Member Functions inherited from SFCGAL::GeometryCollection
 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

bool isAllowed (Geometry const &g) override
 Test if a geometry in the collection. More...
 
- Protected Member Functions inherited from SFCGAL::GeometryCollection
void swap (GeometryCollection &other)
 Swap. More...
 

Additional Inherited Members

- Public Types inherited from SFCGAL::GeometryCollection
typedef boost::ptr_vector< Geometry >::iterator iterator
 
typedef boost::ptr_vector< Geometry >::const_iterator const_iterator
 

Detailed Description

A MultiPolygon in SFA.

@ŧodo add polygon() etc.

Constructor & Destructor Documentation

SFCGAL::MultiPolygon::MultiPolygon ( )
default

Empty MultiPolygon constructor.

SFCGAL::MultiPolygon::MultiPolygon ( MultiPolygon const &  other)
default

Copy constructor.

SFCGAL::MultiPolygon::~MultiPolygon ( )
virtualdefault

destructor

Member Function Documentation

void SFCGAL::MultiPolygon::accept ( GeometryVisitor visitor)
override
void SFCGAL::MultiPolygon::accept ( ConstGeometryVisitor visitor) const
override
auto SFCGAL::MultiPolygon::clone ( ) const
override
auto SFCGAL::MultiPolygon::geometryType ( ) const
override
auto SFCGAL::MultiPolygon::geometryTypeId ( ) const
override
auto SFCGAL::MultiPolygon::isAllowed ( Geometry const &  g)
overrideprotectedvirtual

Test if a geometry in the collection.

Reimplemented from SFCGAL::GeometryCollection.

auto SFCGAL::MultiPolygon::operator= ( MultiPolygon  other)

assign operator

Polygon& SFCGAL::MultiPolygon::polygonN ( const size_t &  n)
inline

returns the n-th Geometry as a Polygon

const Polygon& SFCGAL::MultiPolygon::polygonN ( const size_t &  n) const
inline

returns the n-th Geometry as a Polygon

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

Serializer.