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

A MultiSolid. More...

#include <MultiSolid.h>

Inherits SFCGAL::GeometryImpl< Derived, Base >.

Public Member Functions

 MultiSolid ()
 Empty MultiSolid constructor. More...
 
 MultiSolid (const MultiSolid &other)
 Copy constructor. More...
 
auto operator= (MultiSolid other) -> MultiSolid &
 assign operator More...
 
 ~MultiSolid () 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 solidN (const size_t &n) -> Solid &
 returns the n-th Geometry as a Solid More...
 
auto solidN (const size_t &n) const -> const Solid &
 returns the n-th Geometry as a Solid More...
 
auto accept (GeometryVisitor &visitor) -> void override
 Accept a geometry visitor. More...
 
auto accept (ConstGeometryVisitor &visitor) const -> void 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 MultiSolid.

Constructor & Destructor Documentation

SFCGAL::MultiSolid::MultiSolid ( )
default

Empty MultiSolid constructor.

SFCGAL::MultiSolid::MultiSolid ( const MultiSolid &  other)

Copy constructor.

Parameters
otherThe multi-solid to copy from
SFCGAL::MultiSolid::~MultiSolid ( )
overridedefault

destructor

Member Function Documentation

auto SFCGAL::MultiSolid::accept ( GeometryVisitor &  visitor) -> void
override

Accept a geometry visitor.

Parameters
visitorVisitor to accept
auto SFCGAL::MultiSolid::accept ( ConstGeometryVisitor &  visitor) const -> void
override

Accept a const geometry visitor.

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

Get the geometry type as string.

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

Get the geometry type identifier.

Returns
TYPE_MULTISOLID
auto SFCGAL::MultiSolid::isAllowed ( Geometry const &  geometry) -> bool
overrideprotected

Check if geometry is allowed in this collection.

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

assign operator

Parameters
otherThe multi-solid to assign from
Returns
Reference to this multi-solid
template<class Archive >
void SFCGAL::MultiSolid::serialize ( Archive &  ar,
const unsigned  int 
)
inline

Serializer.

Parameters
arArchive for serialization
auto SFCGAL::MultiSolid::solidN ( const size_t &  n) -> Solid &
inline

returns the n-th Geometry as a Solid

Parameters
nThe index of the solid to get
Returns
Reference to the nth solid
auto SFCGAL::MultiSolid::solidN ( const size_t &  n) const -> const Solid &
inline

returns the n-th Geometry as a Solid

Parameters
nThe index of the solid to get
Returns
Const reference to the nth solid