Class CompoundPolygon3d

Inheritance Relationships

Base Type

Class Documentation

class CompoundPolygon3d : public lanelet::CompoundLineStringImpl<ConstPoint3d>

Combines multiple linestrings to one polygon in 3d.

Public Types

using TwoDType = CompoundPolygon2d
using ThreeDType = CompoundPolygon3d
using ConstType = CompoundPolygon3d
using HybridType = CompoundHybridPolygon3d
using MutableType = void
using Category = traits::PolygonTag

Public Functions

inline explicit CompoundPolygon3d(const CompoundLineStrings3d &other)
inline explicit CompoundPolygon3d(const CompoundPolygons3d &other)
CompoundPolygon3d() = default
inline explicit CompoundPolygon3d(const CompoundLineString3d &other)
inline explicit operator CompoundLineString3d() const
inline size_t numSegments() const noexcept

Returns the number of (geometrically valid) segments.

BasicLineString basicLineString() = delete
inline BasicPolygon3d basicPolygon() const
inline explicit CompoundLineStringImpl(const ConstLineStrings3d &ls = ConstLineStrings3d())

Construct from a vector of ConstLineString3d.

Parameters:

ls – objects to construct from. The order will also be the order of the linestrings.

template<typename OtherT, typename = IfLS<OtherT, void>>
inline explicit CompoundLineStringImpl(const std::vector<OtherT> &lss)

Construct from a vector of LineStrings or CompoundLineStrings.

inline CompoundLineStringImpl(CompoundLineStringDataConstPtr data, bool inverted)

Internal construction from data pointer.

template<typename OtherT>
inline explicit CompoundLineStringImpl(const CompoundLineStringImpl<OtherT> &other)

construct from other CompoundLineString

CompoundLineStringImpl(CompoundLineStringImpl &&rhs) noexcept = default
CompoundLineStringImpl(const CompoundLineStringImpl &rhs) = default