SFCGAL  2.3.0
Public Member Functions | Protected Member Functions | List of all members
SFCGAL::MultiPoint Class Reference

A MultiPoint in SFA. More...

#include <MultiPoint.h>

Inherits SFCGAL::GeometryImpl< Derived, Base >.

Public Member Functions

 MultiPoint ()
 Empty MultiPoint constructor. More...
 
 MultiPoint (const MultiPoint &other)
 Copy constructor. More...
 
auto operator= (MultiPoint other) -> MultiPoint &
 assign operator More...
 
 ~MultiPoint () override
 destructor More...
 
auto geometryType () const -> std::string override
 Get the geometry type as string. More...
 
auto geometryTypeId () const -> GeometryType override
 Get the geometry type identifier. More...
 
auto pointN (const size_t &n) -> Point &
 returns the n-th Geometry as a Point More...
 
auto pointN (const size_t &n) const -> const Point &
 returns the n-th Geometry as a Point More...
 
void accept (GeometryVisitor &visitor) override
 Accept a geometry visitor. More...
 
void accept (ConstGeometryVisitor &visitor) const override
 Accept a const geometry visitor. More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 Serializer. More...
 

Protected Member Functions

auto isAllowed (Geometry const &geometry) -> bool override
 Check if geometry is allowed in this collection. More...
 

Detailed Description

A MultiPoint in SFA.

Constructor & Destructor Documentation

SFCGAL::MultiPoint::MultiPoint ( )
default

Empty MultiPoint constructor.

SFCGAL::MultiPoint::MultiPoint ( const MultiPoint &  other)

Copy constructor.

Parameters
otherThe multi-point to copy from
SFCGAL::MultiPoint::~MultiPoint ( )
overridedefault

destructor

Member Function Documentation

void SFCGAL::MultiPoint::accept ( GeometryVisitor &  visitor)
override

Accept a geometry visitor.

Parameters
visitorVisitor to accept
void SFCGAL::MultiPoint::accept ( ConstGeometryVisitor &  visitor) const
override

Accept a const geometry visitor.

Parameters
visitorConst visitor to accept
auto SFCGAL::MultiPoint::geometryType ( ) const -> std::string
override

Get the geometry type as string.

Returns
"MultiPoint"
auto SFCGAL::MultiPoint::geometryTypeId ( ) const -> GeometryType
override

Get the geometry type identifier.

Returns
TYPE_MULTIPOINT
auto SFCGAL::MultiPoint::isAllowed ( Geometry const &  geometry) -> bool
overrideprotected

Check if geometry is allowed in this collection.

Parameters
geometryGeometry to test
Returns
true if geometry is a Point
auto SFCGAL::MultiPoint::operator= ( MultiPoint  other) -> MultiPoint &

assign operator

Parameters
otherThe multi-point to assign from
Returns
Reference to this multi-point
auto SFCGAL::MultiPoint::pointN ( const size_t &  n) -> Point &
inline

returns the n-th Geometry as a Point

Parameters
nThe index of the point to get
Returns
Reference to the nth point
auto SFCGAL::MultiPoint::pointN ( const size_t &  n) const -> const Point &
inline

returns the n-th Geometry as a Point

Parameters
nThe index of the point to get
Returns
Const reference to the nth point
template<class Archive >
void SFCGAL::MultiPoint::serialize ( Archive &  ar,
const unsigned  int 
)
inline

Serializer.

Parameters
arArchive for serialization