|
Maps SDK for C++ 1.0.0
|
Sketches collection. More...


Public Member Functions | |
| MarkerSketches & | add (const Marker &marker, const MarkerRenderSettings &settings, int index=-1) noexcept |
| Add a new sketch with specific render settings. | |
| const MarkerRenderSettings * | getRenderSettings (int index) const noexcept |
| Get sketch render settings. | |
| MarkerSketches & | setRenderSettings (int index, const MarkerRenderSettings &settings) noexcept |
| Set sketch render settings. | |
| bool | operator== (const MarkerCollection &markerCollection) const |
| Comparison operator equal. | |
| bool | operator!= (const MarkerCollection &coll) const |
| Comparison operator not equal. | |
| LargeInteger | getId () const noexcept |
| Get collection id. | |
| EMarkerType | getType () const noexcept |
| Get collection type. | |
| const StringRef | getName () const noexcept |
| Get collection name. | |
| void | setName (const String &name) noexcept |
| Set collection name. | |
| int | size () const noexcept |
| Get marker count. | |
| MarkerRef | getMarkerAt (int index) const noexcept |
| Get the marker at the given index. | |
| Marker | getMarkerById (LargeInteger id) const noexcept |
| Get the marker with the given id. | |
| int | indexOf (const Marker &marker) const noexcept |
| Get the index of the given marker. | |
| int | indexOf (LargeInteger id) const noexcept |
| Get the index of the given marker id. | |
| MarkerRef | getPointsGroupHead (LargeInteger markerId) const |
| Gets the points group head for the given marker id. | |
| MarkerList | getPointsGroupComponents (LargeInteger groupId) const |
| Gets the points group components. | |
| MarkerCollection & | del (int index) noexcept |
| Delete a marker by index. | |
| void | clear () noexcept |
| Delete all markers. | |
| void | hitTest (const RectangleGeographicArea &area, MarkerMatchList &list, const Marker *ignore=nullptr) const noexcept |
| Hit test in collection markers. | |
| RectangleGeographicArea | getArea () const noexcept |
| Get whole collection enclosing area. | |
| template<typename TCollector> | |
| bool | iterateMarkers (TCollector collector) const noexcept |
| Iterate marker collection markers and call collector for each. | |
| int | save (DataBuffer &buffer) const noexcept |
| Serialize to buffer. | |
Static Public Member Functions | |
| static std::pair< MarkerCollection, int > | load (const DataBuffer &buffer) noexcept |
| Create & load from buffer. | |
Sketches collection.
Sketches collection contains markers with individual render settings
Sketches collections are always on top of the other marker collection
Sketches collections are in the following Z-order: polygon sketches, polylines sketches, points sketches
|
inlinenoexcept |
Add a new sketch with specific render settings.
| [in] | marker | The marker added to the collection |
| [in] | settings | The marker render settings |
| [in] | index | The new marker position in collection. -1 means at the collection end ( topmost ) |
|
inlinenoexceptinherited |
Delete a marker by index.
| [in] | index | The marker index to be deleted |
|
inlinenoexceptinherited |
Get whole collection enclosing area.
|
inlinenoexceptinherited |
Get collection id.
|
inlinenoexceptinherited |
Get the marker at the given index.
Return empty if index is not valid
| [in] | index | The marker index |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
Get collection name.
|
inlineinherited |
Gets the points group components.
| [in] | groupId | The group id |
This requires the collection to be added to a map view collection with MarkerCollectionRenderSettings::buildPointsGroupConfig set to true
If points group head info is not available the function will return a default list and will set the API error accordingly
|
inlineinherited |
Gets the points group head for the given marker id.
| [in] | markerId | The marker id belonging to the points group |
This requires the collection to be added to a map view collection with MarkerCollectionRenderSettings::buildPointsGroupConfig set to true
If points group head info is not available the function will return a reference to the queried marker and will set the API error accordingly
If markerId is already a points group head the function will return a reference to the queried marker and will set the API error accordingly
|
inlinenoexcept |
|
inlinenoexceptinherited |
Get collection type.
|
noexceptinherited |
Hit test in collection markers.
| [in] | area | The geographic area to be tested |
| [out] | list | The list of markers that intersect the area |
| [in] | ignore | The marker to be ignored in the test |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
Iterate marker collection markers and call collector for each.
Collector should return true if iteration should continue and false if iteration should stop
| TCollector | The collector function type |
| [in] | collector | The collector function |
|
inlinestaticnoexceptinherited |
Create & load from buffer.
| [in] | buffer | The buffer to load from |
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
Serialize to buffer.
| [out] | buffer | The buffer to serialize to |
|
inlinenoexceptinherited |
Set collection name.
| [in] | name | Collection name |
|
inlinenoexcept |
Set sketch render settings.
| [in] | index | The marker index |
| [in] | settings | The marker render settings |
|
inlinenoexceptinherited |
Get marker count.