|
Maps SDK for C++ 1.0.0
|
MapViewRouteCollection object. More...


Public Member Functions | |
| const RouteRenderSettings * | getRenderSettings (const Route &route) const noexcept |
| Get the route custom render settings(read-only). | |
| MapViewRouteCollection & | setRenderSettings (const Route &route, const RouteRenderSettings &settings) noexcept |
| Set the route custom render settings. | |
| const StringRef | getLabel (const Route &route) const noexcept |
| Get route label text. | |
| MapViewRouteCollection & | setLabel (const Route &route, const String &text) noexcept |
| Set route bubble text. | |
| const ImageListRef | getImages (const Route &route) const noexcept |
| Get route bubble image list. | |
| MapViewRouteCollection & | setImages (const Route &route, const ImageList &images) noexcept |
| Set route bubble images list, see setLabel for details. | |
| MapViewRoute | getMapViewRoute (int idx) const noexcept |
| Get map view route in collection by index. | |
| MapViewRoute | getMapViewRoute (const Route &route) const noexcept |
| Get map view route in collection by route. | |
| RouteCollection & | add (const Route &route, bool bMainRoute, const String &label=String(), const ImageList &images=ImageList()) noexcept |
| Add or update a route in the collection. | |
| MapViewRouteCollection & | add (const Route &route, const RouteRenderSettings &settings, const String &label=String(), const ImageList &images=ImageList()) noexcept |
| Add or update a route in the collection with the given render settings. | |
| MapViewRouteCollection & | add (const MapViewRoute &route) noexcept |
| Add or update a map view route in the collection. | |
| MapViewRouteCollection & | hideLabel (const Route &route) |
| Hide route label. | |
| template<typename TCollector> | |
| bool | iterateMapViewRoutes (TCollector collector) const |
| Iterate all map view routes in the collection. | |
| int | size () const noexcept |
| Get number of routes in this collection. | |
| const RouteRef | getRoute (int index) const noexcept |
| Get route specified by index. | |
| int | indexOf (const Route &route) const noexcept |
| Get index of the specified route - return < 0 for error. | |
| bool | isMainRoute (const Route &route) const noexcept |
| Check if the route is the main route in the collection. | |
| const RouteRef | getMainRoute () const noexcept |
| Get the current main route. | |
| RouteCollection & | setMainRoute (const Route &route) noexcept |
| Set the route as main route in the collection. | |
| RouteCollection & | add (const Route &route, bool bMainRoute) noexcept |
| Add a route in the collection. | |
| RouteCollection & | remove (const Route &route) noexcept |
| Remove the route specified by Route. | |
| bool | contains (const Route &route) const noexcept |
| Check if a route object is in collection. | |
| void | clear () noexcept |
| Remove all routes. | |
| template<typename TCollector> | |
| bool | iterateRoutes (TCollector collector) const |
| Iterate all routes in the collection. | |
MapViewRouteCollection object.
Implements a routes collection for MapView preferences
|
inlinenoexcept |
Add or update a map view route in the collection.
If the route already exists in the collection, it will be updated with the new settings
| [in] | route | The map view route to be added / updated |
|
inlinenoexcept |
Add or update a route in the collection.
If the route already exists in the collection, it will be updated with the new settings
| [in] | route | The route to be added / updated |
| [in] | bMainRoute | True if the route is the main route, false if it is an alternative route |
| [in] | label | Route label string |
| [in] | images | Route label images |
|
inlinenoexcept |
Add or update a route in the collection with the given render settings.
If the route already exists in the collection, it will be updated with the new settings
| [in] | route | The route to be added / updated |
| [in] | settings | The route render settings |
| [in] | label | Route label string |
| [in] | images | Route label images |
|
inlinenoexceptinherited |
Add a route in the collection.
| [in] | route | The route to be added. |
| [in] | bMainRoute | True if the route is the main route, false if alternative route |
|
inlinenoexceptinherited |
Check if a route object is in collection.
| [in] | route | The route to be checked |
|
inlinenoexcept |
Get route bubble image list.
| [in] | route | The route for which the images are requested |
Get route label text.
| [in] | route | The route for which the label wants to be retrieved |
|
inlinenoexceptinherited |
Get the current main route.
|
inlinenoexcept |
Get map view route in collection by route.
| [in] | route | The route attached to the map view route |
|
inlinenoexcept |
Get map view route in collection by index.
| [in] | idx | The map view route index in collection |
|
inlinenoexcept |
Get the route custom render settings(read-only).
| [in] | route | The route for which the render settings are requested |
|
inlinenoexceptinherited |
Get route specified by index.
| [in] | index | The index of the route in the collection |
|
inline |
Hide route label.
| [in] | route | The route for which the label should be hidden |
|
inlinenoexceptinherited |
Get index of the specified route - return < 0 for error.
| [in] | route | The route to be found |
|
inlinenoexceptinherited |
Check if the route is the main route in the collection.
| [in] | route | The route to be checked |
|
inline |
Iterate all map view routes in the collection.
Collector should return true if iteration should continue and false if iteration should stop
| [in] | collector | The collector function |
|
inlineinherited |
Iterate all routes in the collection.
Collector should return true if iteration should continue and false if iteration should stop
| [in] | collector | The collector function |
|
inlinenoexceptinherited |
Remove the route specified by Route.
| [in] | route | route in the collection |
|
inlinenoexcept |
Set route bubble images list, see setLabel for details.
| [in] | route | The route for which the images are set |
| [in] | images | The images list |
|
inlinenoexcept |
Set route bubble text.
| [in] | route | The route for which the label wants to be set |
| [in] | text | The actual label |
The route label supports custom icon placement inside the text by using the icon place-mark %icon index%%, e.g. "My header text %%0%%\n%%1%% my footer"
The %icon index%% must be a valid integer in images list container, i.e. 0 <= icon index < images.size()
|
inlinenoexceptinherited |
Set the route as main route in the collection.
| [in] | route | The route to be set as main route |
|
inlinenoexcept |
Set the route custom render settings.
| [in] | route | The route for which the render settings are set |
| [in] | settings | The route render settings |
|
inlinenoexceptinherited |
Get number of routes in this collection.