Polygon with access to primitive points. More...
#include <Polygon.h>

Public Member Functions | |
| const BasicPointType & | back () const noexcept |
| Get last BasicPoint3d. More... | |
| BasicIterator | begin () const noexcept |
| BasicPoint3d Iterator to begin. More... | |
| ConstHybridPolygon3d ()=default | |
| ConstHybridPolygon3d (const ConstPolygon3d &poly) | |
| Conversion from ConstPolygon3d. More... | |
| ConstPolygon3d ()=default | |
| ConstPolygon3d (const ConstLineString3d &other) | |
| BasicIterator | end () const noexcept |
| BasicPoint3d Iterator to past-the-end. More... | |
| const BasicPointType & | front () const noexcept |
| Get first BasicPoint3d. More... | |
| const BasicPointType & | operator[] (size_t idx) const noexcept |
| access BasicPoint3d at specific position More... | |
Public Member Functions inherited from lanelet::ConstPolygon3d | |
| BasicPolygon3d | basicPolygon () const |
| create a simple 3d polygon from this (just a vector) More... | |
| ConstLineStringImpl (const ConstLineStringImpl &rhs)=default | |
| template<typename OtherT > | |
| ConstLineStringImpl (const ConstLineStringImpl< OtherT > &other) | |
| construct from other ConstLineStrings More... | |
| ConstLineStringImpl (const std::shared_ptr< const LineStringData > &data, bool inverted=false) | |
| Constructs a linestring from the data object of another linestring. More... | |
| ConstLineStringImpl (ConstLineStringImpl &&rhs) noexcept=default | |
| ConstLineStringImpl (Id id=InvalId, Points3d points=Points3d(), const AttributeMap &attributes=AttributeMap()) | |
| Constructs a LineString or similar from an Id and a list of points. More... | |
| ConstPolygon3d ()=default | |
| ConstPolygon3d (const ConstLineString3d &other) | |
| size_t | numSegments () const noexcept |
| Returns the number of (geometrically valid) segments. More... | |
| operator BasicPolygon3d () const | |
| implicit conversion to a basic polygon More... | |
| operator ConstLineString3d () const | |
Public Member Functions inherited from lanelet::ConstLineStringImpl< Point3d > | |
| const ConstPointType & | back () const noexcept |
| returns the last point (if it exist) More... | |
| BasicIterator | basicBegin () const noexcept |
| returns a normal iterator to the internal point type at begin More... | |
| BasicIterator | basicEnd () const noexcept |
| returns a normal iterator for the internal point type at end More... | |
| BasicLineString | basicLineString () const noexcept |
| Create a basic linestring (ie a vector of Eigen Points) More... | |
| const_iterator | begin () const noexcept |
| Returns an iterator to the start of the points. More... | |
| ConstLineStringImpl (const ConstLineStringImpl< OtherT > &other) | |
| construct from other ConstLineStrings More... | |
| ConstLineStringImpl (const std::shared_ptr< const LineStringData > &data, bool inverted=false) | |
| Constructs a linestring from the data object of another linestring. More... | |
| ConstLineStringImpl (Id id=InvalId, Points3d points=Points3d(), const AttributeMap &attributes=AttributeMap()) | |
| Constructs a LineString or similar from an Id and a list of points. More... | |
| bool | empty () const noexcept |
| return if there are any points in this object More... | |
| const_iterator | end () const noexcept |
| Returns an iterator to end of the points. More... | |
| const ConstPointType & | front () const noexcept |
| returns the first point (if it exist) More... | |
| bool | inverted () const noexcept |
| Returns whether this is an inverted linestring. More... | |
| size_t | numSegments () const noexcept |
| Returns the number of (geometrically valid) segments. More... | |
| const ConstPointType & | operator[] (size_t idx) const noexcept |
| returns the point at this position More... | |
| ConstSegmentType | segment (size_t idx) const noexcept |
| returns the n-th segment. If n equals size() -1, the segment from back() to front() is returned. More... | |
| size_t | size () const noexcept |
| Return the number of points in this linestring. More... | |
Public Member Functions inherited from lanelet::ConstPrimitive< LineStringData > | |
| 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 LineStringData > & | constData () const |
| get the internal data of this primitive More... | |
| ConstPrimitive (const std::shared_ptr< const LineStringData > &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 |
Polygon with access to primitive points.
This polygon tries to behave as close to a BasicPolygon3d as possible while still keeping all properties (id, attributes) of a ConstPolygon. This is important as some functions of boost::geometry do not like our ConstPoint type.
As with all lanelet primitives, conversion from other primitives is cheap.
Definition at line 228 of file primitives/Polygon.h.
Definition at line 230 of file primitives/Polygon.h.
Definition at line 234 of file primitives/Polygon.h.
Definition at line 231 of file primitives/Polygon.h.
Definition at line 237 of file primitives/Polygon.h.
Definition at line 236 of file primitives/Polygon.h.
Definition at line 235 of file primitives/Polygon.h.
|
default |
|
inlineexplicit |
Conversion from ConstPolygon3d.
Definition at line 242 of file primitives/Polygon.h.
|
inlinenoexcept |
Get last BasicPoint3d.
Definition at line 254 of file primitives/Polygon.h.
|
inlinenoexcept |
BasicPoint3d Iterator to begin.
Definition at line 245 of file primitives/Polygon.h.
|
default |
|
inlineexplicit |
Conversion from ConstLineString3d. Does not ensure validity of the polygon!
Definition at line 136 of file primitives/Polygon.h.
|
inlinenoexcept |
BasicPoint3d Iterator to past-the-end.
Definition at line 248 of file primitives/Polygon.h.
|
inlinenoexcept |
Get first BasicPoint3d.
Definition at line 251 of file primitives/Polygon.h.
|
inlinenoexcept |
access BasicPoint3d at specific position
Definition at line 257 of file primitives/Polygon.h.