#include <Projection.h>
Public Types | |
using | Ptr = std::shared_ptr< Projector > |
Public Member Functions | |
virtual BasicPoint3d | forward (const GPSPoint &p) const =0 |
Project a point from lat/lon coordinates to a local coordinate system. More... | |
Projector & | operator= (const Projector &rhs)=default |
Projector & | operator= (Projector &&rhs) noexcept=default |
const Origin & | origin () const |
Obtain the internal origin. More... | |
Projector (const Projector &rhs)=default | |
Projector (Origin origin=Origin::defaultOrigin()) | |
Projector (Projector &&rhs) noexcept=default | |
virtual GPSPoint | reverse (const BasicPoint3d &p) const =0 |
Project a point from local coordinates to global lat/lon coordinates. More... | |
virtual | ~Projector () noexcept=default |
Private Attributes | |
Origin | origin_ |
Base class for implementing projection models. To use your own projection, implement this class and and pass it to the write/load functions.
Definition at line 22 of file Projection.h.
using lanelet::Projector::Ptr = std::shared_ptr<Projector> |
Definition at line 24 of file Projection.h.
|
inlineexplicit |
Definition at line 25 of file Projection.h.
|
defaultnoexcept |
|
default |
|
virtualdefaultnoexcept |
|
pure virtual |
Project a point from lat/lon coordinates to a local coordinate system.
ForwardProjectionError | if projection is impossible |
Implemented in lanelet::projection::SphericalMercatorProjector.
|
inline |
Obtain the internal origin.
Definition at line 41 of file Projection.h.
|
pure virtual |
Project a point from local coordinates to global lat/lon coordinates.
ReverseProjectionError | if projection is impossible |
Implemented in lanelet::projection::SphericalMercatorProjector.
|
private |
Definition at line 44 of file Projection.h.