Common data management class for LaneletSequences. More...
#include <LaneletSequence.h>
Public Types | |
using | iterator = internal::ReverseAndForwardIterator< ConstLanelets::const_iterator > |
Public Member Functions | |
iterator | begin (bool inverted) const noexcept |
CompoundLineString3d | centerline () const |
computes the centerline. Result is cached More... | |
iterator | end (bool inverted) const noexcept |
const ConstLanelets & | lanelets () const |
LaneletSequenceData (ConstLanelets lanelets) | |
Constructs a new, valid LaneletData object. More... | |
const CompoundLineString3d & | leftBound () const |
CompoundLineString2d | leftBound2d () const |
const CompoundLineString3d & | leftBound3d () const |
CompoundPolygon3d | polygon () const |
Get the bounding polygon around all lanelets. Result is cached. More... | |
const CompoundLineString3d & | rightBound () const |
CompoundLineString2d | rightBound2d () const |
const CompoundLineString3d & | rightBound3d () const |
Private Attributes | |
std::shared_ptr< CompoundLineString3d > | centerline_ |
combined centerline More... | |
const ConstLanelets | lanelets_ |
const CompoundLineString3d | leftBound_ |
< Cached data More... | |
std::shared_ptr< CompoundPolygon3d > | polygon_ |
combined polygon More... | |
const CompoundLineString3d | rightBound_ |
Common data management class for LaneletSequences.
This object is only for internal data management and should not be used directly.
LaneletSequence merely has a shared_ptr to this object and forwards all calls to this object.
Because calculating a polygon and a centerline is expensive, the results are cached by this object.
Definition at line 22 of file LaneletSequence.h.
using lanelet::LaneletSequenceData::iterator = internal::ReverseAndForwardIterator<ConstLanelets::const_iterator> |
Definition at line 25 of file LaneletSequence.h.
|
explicit |
Constructs a new, valid LaneletData object.
Definition at line 5 of file LaneletSequence.cpp.
|
inlinenoexcept |
Definition at line 55 of file LaneletSequence.h.
lanelet::CompoundLineString3d lanelet::LaneletSequenceData::centerline | ( | ) | const |
computes the centerline. Result is cached
Definition at line 10 of file LaneletSequence.cpp.
|
inlinenoexcept |
Definition at line 59 of file LaneletSequence.h.
|
inline |
Definition at line 39 of file LaneletSequence.h.
|
inline |
Definition at line 32 of file LaneletSequence.h.
|
inline |
Definition at line 34 of file LaneletSequence.h.
|
inline |
Definition at line 33 of file LaneletSequence.h.
lanelet::CompoundPolygon3d lanelet::LaneletSequenceData::polygon | ( | ) | const |
Get the bounding polygon around all lanelets. Result is cached.
Definition at line 20 of file LaneletSequence.cpp.
|
inline |
Definition at line 36 of file LaneletSequence.h.
|
inline |
Definition at line 38 of file LaneletSequence.h.
|
inline |
Definition at line 37 of file LaneletSequence.h.
|
mutableprivate |
combined centerline
Definition at line 68 of file LaneletSequence.h.
|
private |
Definition at line 64 of file LaneletSequence.h.
|
private |
< Cached data
Definition at line 66 of file LaneletSequence.h.
|
mutableprivate |
combined polygon
Definition at line 69 of file LaneletSequence.h.
|
private |
Definition at line 67 of file LaneletSequence.h.