|
Maps SDK for C++ 1.0.0
|


Public Member Functions | |
| Path (const CoordinatesList &coords) | |
| Create a path from list of coordinates. | |
| Path (const CoordinatesList &coords, const IntList &waypoints) | |
| Create a path from list of coordinates and waypoints. | |
| Path (const DataBuffer &data, int format, ProgressListener listener=ProgressListener()) | |
| Create a path from a data buffer of a given format. | |
| Path (const Path &)=default | |
| Default copy constructor. | |
| Path (Path &&)=default | |
| Default move constructor noexcept is deduced. | |
| Path & | operator= (const Path &path)=default |
| Default copy assignment. | |
| Path & | operator= (Path &&path)=default |
| Default move assignment noexcept is deduced. | |
| bool | operator== (Path const &path) const |
| Compare if the paths are identical. | |
| const CoordinatesListRef | getCoordinates () const noexcept |
| Get read-only access to the internal coordinates list. | |
| const IntListRef | getWayPoints () const noexcept |
| Get read-only access to the internal waypoint list. | |
| RectangleGeographicArea | getArea () const noexcept |
| Get path rectangle. | |
| int | getLength () const noexcept |
| Get path length. | |
| const StringRef | getName () const noexcept |
| Get path name. | |
| Path & | setName (const String &name) noexcept |
| Set path name. | |
| Path | cloneStartEnd (const Coordinates &start, const Coordinates &end) const noexcept |
| Clone path from the given coordinates. | |
| Path | cloneReverse () const noexcept |
| Clone reverse order path. | |
| DataBuffer | exportAs (int format) const noexcept |
| Export path coordinates in the requested data format. | |
Static Public Member Functions | |
| static Coordinates | getCoordinatesAtPercent (const CoordinatesList &coords, double percent) noexcept |
| Get a coordinate along the path given by a fraction of the path length between 0.0 (departure point) and 1.0 (destination). | |
Path object.
Implements share-read / copy-on-write Api object over IPath.
|
inline |
Create a path from list of coordinates.
| [in] | coords | List of coordinates |
|
inline |
|
inline |
Create a path from a data buffer of a given format.
| [in] | data | Data buffer |
| [in] | format | Data format ( see EPathFileFormat ) |
| [in] | listener | Progress listener |
If listener is empty, the path data is loaded from the data buffer before return. If the operation fails, the path is an empty object and GEM_GET_API_ERROR will return the error code
If listener is not empty, the path data is populated asynchronously from the data buffer.
|
inlinenoexcept |
Clone reverse order path.
|
inlinenoexcept |
Clone path from the given coordinates.
Set start = end to create a circuit track
| [in] | start | The start coordinates |
| [in] | end | The end coordinates |
|
inlinenoexcept |
Export path coordinates in the requested data format.
| [in] | format | Data format, see EPathFileFormat |
|
inlinenoexcept |
Get path rectangle.
|
inlinenoexcept |
Get read-only access to the internal coordinates list.
|
inlinestaticnoexcept |
Get a coordinate along the path given by a fraction of the path length between 0.0 (departure point) and 1.0 (destination).
| [in] | coords | The path coordinates list |
| [in] | percent | The size percent (fraction) in the range [0, 1], e.g. 0.5 will return the coordinates of the point in the middle of the path |
|
inlinenoexcept |
Get path length.
|
inlinenoexcept |
Get path name.
|
inlinenoexcept |
Get read-only access to the internal waypoint list.
|
default |
Default copy assignment.
| path | The path to copy |
|
default |
Default move assignment noexcept is deduced.
| path | The path to move |
|
inline |
Compare if the paths are identical.
| [in] | path | The path to compare |
|
inlinenoexcept |
Set path name.
| [in] | name | The path name |