Famous Area class that represents a basic area as element of the map. More...
#include <Area.h>
Public Types | |
using | ThreeDType = Area |
using | TwoDType = Area |
![]() | |
using | DataType = typename ConstArea ::DataType |
![]() | |
using | Category = traits::AreaTag |
using | ConstType = ConstArea |
using | MutableType = Area |
using | ThreeDType = ConstArea |
using | TwoDType = ConstArea |
![]() | |
using | DataType = AreaData |
Public Member Functions | |
void | addRegulatoryElement (RegulatoryElementPtr regElem) |
adds a new regulatory element More... | |
Area ()=default | |
Area (const AreaDataConstPtr &)=delete | |
Area (const AreaDataPtr &data) | |
const InnerBounds & | innerBounds () |
Get the linestrings that form the inner bound. More... | |
const LineStrings3d & | outerBound () |
Get linestrings that form the outer bound. More... | |
Primitive ()=default | |
Primitive (const Primitive &rhs) noexcept | |
template<typename OtherT > | |
Primitive (const Primitive< OtherT > &rhs) | |
Construct from another primitive. Only works if both share the same. More... | |
Primitive (const std::shared_ptr< const DataType > &)=delete | |
Primitive (const std::shared_ptr< DataType > &data) | |
Construct a new primitive from shared_ptr to its data. More... | |
Primitive (Primitive &&rhs) noexcept | |
const RegulatoryElementPtrs & | regulatoryElements () |
return regulatoryElements that affect this area. More... | |
template<typename RegElemT > | |
std::vector< std::shared_ptr< RegElemT > > | regulatoryElementsAs () |
get the regulatoryElements that could be converted to RegElemT More... | |
bool | removeRegulatoryElement (const RegulatoryElementPtr ®Elem) |
removes a regulatory element, returns true on success More... | |
void | setInnerBounds (const std::vector< LineStrings3d > &bounds) |
sets a new inner bound and resets the cache More... | |
void | setOuterBound (const LineStrings3d &bound) |
Sets a new outer bound and resets the cache. More... | |
![]() | |
AttributeMap & | attributes () noexcept |
get the attributes in a mutable way More... | |
Primitive ()=default | |
Primitive (const Primitive< OtherT > &rhs) | |
Construct from another primitive. Only works if both share the same. More... | |
Primitive (const std::shared_ptr< const DataType > &)=delete | |
Primitive (const std::shared_ptr< DataType > &data) | |
Construct a new primitive from shared_ptr to its data. More... | |
void | setAttribute (AttributeName name, const Attribute &attribute) |
set or overwrite an attribute (enum version) More... | |
void | setAttribute (const std::string &name, const Attribute &attribute) |
set or overwrite an attribute More... | |
void | setId (Id id) noexcept |
set a new id for this primitive More... | |
![]() | |
BasicPolygonWithHoles2d | basicPolygonWithHoles2d () const |
generates a basic polygon in 2d with holes for this area More... | |
BasicPolygonWithHoles3d | basicPolygonWithHoles3d () const |
generates a basic polygon in 2d with holes for this area More... | |
ConstArea (const std::shared_ptr< const AreaData > &data) | |
Constructor to construct from the data of a different Area. More... | |
ConstArea (Id id, const LineStrings3d &outerBound, const InnerBounds &innerBounds=InnerBounds(), const AttributeMap &attributes=AttributeMap(), const RegulatoryElementPtrs ®ulatoryElements=RegulatoryElementPtrs()) | |
Constructs a new area. More... | |
ConstArea (Id id=InvalId) | |
Constructs an empty or invalid area. More... | |
CompoundPolygons3d | innerBoundPolygons () const |
get the inner bounds as polygon More... | |
ConstInnerBounds | innerBounds () const |
get the linestrings that form the inner bounds More... | |
ConstLineStrings3d | outerBound () const |
Get linestrings that form the outer bound. More... | |
CompoundPolygon3d | outerBoundPolygon () const |
get the outer bound as polygon More... | |
RegulatoryElementConstPtrs | regulatoryElements () const |
get a list of regulatory elements that affect this area More... | |
template<typename RegElemT > | |
std::vector< std::shared_ptr< const RegElemT > > | regulatoryElementsAs () const |
get the regulatoryElements that could be converted to a type More... | |
![]() | |
const Attribute & | attribute (AttributeName name) const |
retrieve an attribute (enum version) More... | |
const Attribute & | attribute (const std::string &name) const |
retrieve an attribute More... | |
T | attributeOr (AttributeName name, T defaultVal) const |
retrieve an attribute (enum version) More... | |
T | attributeOr (const std::string &name, T defaultVal) const noexcept |
retrieve an attribute (string version) More... | |
const AttributeMap & | attributes () const |
get the attributes of this primitive More... | |
const std::shared_ptr< const AreaData > & | constData () const |
get the internal data of this primitive More... | |
ConstPrimitive (const std::shared_ptr< const AreaData > &data) | |
Construct from a pointer to the data. More... | |
bool | hasAttribute (AttributeName name) const noexcept |
check for an attribute (enum version) More... | |
bool | hasAttribute (const std::string &name) const noexcept |
check whether this primitive has a specific attribute More... | |
Id | id () const noexcept |
get the unique id of this primitive More... | |
bool | operator!= (const ConstPrimitive &rhs) const |
bool | operator== (const ConstPrimitive &rhs) const |
Friends | |
class | ConstWeakArea |
template<typename > | |
class | Primitive |
Additional Inherited Members | |
![]() | |
static constexpr bool | IsConst |
![]() | |
static constexpr bool | IsConst |
![]() | |
std::shared_ptr< DataType > | data () const |
Primitive & | operator= (const Primitive &rhs) noexcept |
Primitive & | operator= (Primitive &&rhs) noexcept |
Primitive (const Primitive &rhs) noexcept | |
Primitive (Primitive &&rhs) noexcept | |
~Primitive () noexcept=default | |
![]() | |
ConstPrimitive (const ConstPrimitive &rhs)=default | |
ConstPrimitive (ConstPrimitive &&rhs) noexcept=default | |
ConstPrimitive & | operator= (const ConstPrimitive &rhs)=default |
ConstPrimitive & | operator= (ConstPrimitive &&rhs) noexcept=default |
~ConstPrimitive () noexcept=default | |
Famous Area class that represents a basic area as element of the map.
Definition at line 206 of file primitives/Area.h.
using lanelet::Area::ThreeDType = Area |
Definition at line 210 of file primitives/Area.h.
using lanelet::Area::TwoDType = Area |
Definition at line 209 of file primitives/Area.h.
|
default |
|
delete |
|
inlineexplicit |
Definition at line 214 of file primitives/Area.h.
|
inline |
adds a new regulatory element
nullptr | error if regElem is a nullptr |
Definition at line 240 of file primitives/Area.h.
|
inline |
Get the linestrings that form the inner bound.
Definition at line 225 of file primitives/Area.h.
|
inline |
Get linestrings that form the outer bound.
Definition at line 222 of file primitives/Area.h.
|
default |
|
defaultnoexcept |
|
inlineexplicit |
Construct from another primitive. Only works if both share the same.
Definition at line 262 of file Primitive.h.
|
delete |
|
inlineexplicit |
Construct a new primitive from shared_ptr to its data.
Definition at line 254 of file Primitive.h.
|
defaultnoexcept |
|
inline |
return regulatoryElements that affect this area.
Definition at line 234 of file primitives/Area.h.
|
inline |
get the regulatoryElements that could be converted to RegElemT
Definition at line 260 of file primitives/Area.h.
|
inline |
removes a regulatory element, returns true on success
Definition at line 248 of file primitives/Area.h.
|
inline |
sets a new inner bound and resets the cache
Definition at line 231 of file primitives/Area.h.
|
inline |
Sets a new outer bound and resets the cache.
Definition at line 228 of file primitives/Area.h.
|
friend |
Definition at line 211 of file primitives/Area.h.
|
friend |
Definition at line 280 of file Primitive.h.