Public Member Functions | Private Attributes | List of all members
lanelet::AreaData Class Reference

Common data management class for all Area-Typed objects. More...

#include <Area.h>

Inheritance diagram for lanelet::AreaData:
Inheritance graph
[legend]

Public Member Functions

 AreaData (Id id, LineStrings3d outerBound, std::vector< LineStrings3d > innerBounds=std::vector< LineStrings3d >(), AttributeMap attributes=AttributeMap(), RegulatoryElementPtrs regulatoryElements=RegulatoryElementPtrs())
 Constructs a new, AreaData object. More...
 
const CompoundPolygons3dinnerBoundPolygons () const
 
const InnerBoundsinnerBounds ()
 
ConstInnerBounds innerBounds () const
 
const LineStrings3douterBound ()
 
ConstLineStrings3d outerBound () const
 
const CompoundPolygon3douterBoundPolygon () const
 
RegulatoryElementPtrsregulatoryElements ()
 
RegulatoryElementConstPtrs regulatoryElements () const
 
template<typename RegElemT >
std::vector< std::shared_ptr< RegElemT > > regulatoryElementsAs ()
 
template<typename RegElemT >
std::vector< std::shared_ptr< const RegElemT > > regulatoryElementsAs () const
 
void resetCache ()
 
void setInnerBounds (const std::vector< LineStrings3d > &bounds)
 
void setOuterBound (const LineStrings3d &bound)
 sets a new outer bound. More...
 
- Public Member Functions inherited from lanelet::PrimitiveData
PrimitiveDataoperator= (const PrimitiveData &rhs)=default
 
PrimitiveDataoperator= (PrimitiveData &&rhs) noexcept=default
 
 PrimitiveData () noexcept=default
 
 PrimitiveData (const PrimitiveData &rhs)=default
 
 PrimitiveData (Id id, AttributeMap attributes=AttributeMap())
 Constructs a PrimitiveData object. More...
 
 PrimitiveData (PrimitiveData &&rhs) noexcept=default
 

Private Attributes

CompoundPolygons3d innerBoundPolygons_
 represents the inner bounds of the area More...
 
std::vector< LineStrings3dinnerBounds_
 vector of ls for inner bounds More...
 
LineStrings3d outerBound_
 linestrings that together form the outer bound More...
 
CompoundPolygon3d outerBoundPolygon_
 represents the outer bounds of the area More...
 
RegulatoryElementPtrs regulatoryElements_
 regulatory elements that apply More...
 

Additional Inherited Members

- Public Attributes inherited from lanelet::PrimitiveData
AttributeMap attributes
 attributes of this primitive More...
 
Id id {InvalId}
 Id of this primitive (unique across one map) More...
 
- Protected Member Functions inherited from lanelet::PrimitiveData
 ~PrimitiveData ()=default
 

Detailed Description

Common data management class for all Area-Typed objects.

Definition at line 43 of file primitives/Area.h.

Constructor & Destructor Documentation

◆ AreaData()

lanelet::AreaData::AreaData ( Id  id,
LineStrings3d  outerBound,
std::vector< LineStrings3d innerBounds = std::vector<LineStrings3d>(),
AttributeMap  attributes = AttributeMap(),
RegulatoryElementPtrs  regulatoryElements = RegulatoryElementPtrs() 
)
inline

Constructs a new, AreaData object.

Definition at line 46 of file primitives/Area.h.

Member Function Documentation

◆ innerBoundPolygons()

const CompoundPolygons3d& lanelet::AreaData::innerBoundPolygons ( ) const
inline

Definition at line 68 of file primitives/Area.h.

◆ innerBounds() [1/2]

const InnerBounds& lanelet::AreaData::innerBounds ( )
inline

Definition at line 64 of file primitives/Area.h.

◆ innerBounds() [2/2]

ConstInnerBounds lanelet::AreaData::innerBounds ( ) const
inline

Definition at line 58 of file primitives/Area.h.

◆ outerBound() [1/2]

const LineStrings3d& lanelet::AreaData::outerBound ( )
inline

Definition at line 63 of file primitives/Area.h.

◆ outerBound() [2/2]

ConstLineStrings3d lanelet::AreaData::outerBound ( ) const
inline

Definition at line 55 of file primitives/Area.h.

◆ outerBoundPolygon()

const CompoundPolygon3d& lanelet::AreaData::outerBoundPolygon ( ) const
inline

Definition at line 66 of file primitives/Area.h.

◆ regulatoryElements() [1/2]

RegulatoryElementPtrs& lanelet::AreaData::regulatoryElements ( )
inline

Definition at line 73 of file primitives/Area.h.

◆ regulatoryElements() [2/2]

RegulatoryElementConstPtrs lanelet::AreaData::regulatoryElements ( ) const
inline

Definition at line 70 of file primitives/Area.h.

◆ regulatoryElementsAs() [1/2]

template<typename RegElemT >
std::vector<std::shared_ptr<RegElemT> > lanelet::AreaData::regulatoryElementsAs ( )
inline

Definition at line 80 of file primitives/Area.h.

◆ regulatoryElementsAs() [2/2]

template<typename RegElemT >
std::vector<std::shared_ptr<const RegElemT> > lanelet::AreaData::regulatoryElementsAs ( ) const
inline

Definition at line 76 of file primitives/Area.h.

◆ resetCache()

void lanelet::AreaData::resetCache ( )
inline

Definition at line 95 of file primitives/Area.h.

◆ setInnerBounds()

void lanelet::AreaData::setInnerBounds ( const std::vector< LineStrings3d > &  bounds)
inline

Definition at line 90 of file primitives/Area.h.

◆ setOuterBound()

void lanelet::AreaData::setOuterBound ( const LineStrings3d bound)
inline

sets a new outer bound.

Definition at line 85 of file primitives/Area.h.

Member Data Documentation

◆ innerBoundPolygons_

CompoundPolygons3d lanelet::AreaData::innerBoundPolygons_
private

represents the inner bounds of the area

Definition at line 108 of file primitives/Area.h.

◆ innerBounds_

std::vector<LineStrings3d> lanelet::AreaData::innerBounds_
private

vector of ls for inner bounds

Definition at line 103 of file primitives/Area.h.

◆ outerBound_

LineStrings3d lanelet::AreaData::outerBound_
private

linestrings that together form the outer bound

Definition at line 102 of file primitives/Area.h.

◆ outerBoundPolygon_

CompoundPolygon3d lanelet::AreaData::outerBoundPolygon_
private

represents the outer bounds of the area

Definition at line 107 of file primitives/Area.h.

◆ regulatoryElements_

RegulatoryElementPtrs lanelet::AreaData::regulatoryElements_
private

regulatory elements that apply

Definition at line 104 of file primitives/Area.h.


The documentation for this class was generated from the following file:


lanelet2_core
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:25:52