mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 06:33:42 +00:00
[map] Documentation
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -36,20 +36,61 @@ public:
|
|||||||
RoadWarningFirstFerry,
|
RoadWarningFirstFerry,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief User mark types.
|
||||||
|
*
|
||||||
|
* `UserMark` subclasses are assigned a value from this enum.
|
||||||
|
*/
|
||||||
enum Type : uint32_t
|
enum Type : uint32_t
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* `Bookmark`
|
||||||
|
*/
|
||||||
BOOKMARK, // Should always be the first one
|
BOOKMARK, // Should always be the first one
|
||||||
|
/**
|
||||||
|
* `ApiMarkPoint`
|
||||||
|
*/
|
||||||
API,
|
API,
|
||||||
|
/**
|
||||||
|
* `SearchMarkPoint`
|
||||||
|
*/
|
||||||
SEARCH,
|
SEARCH,
|
||||||
|
/**
|
||||||
|
* `StaticMarkPoint`
|
||||||
|
*/
|
||||||
STATIC,
|
STATIC,
|
||||||
|
/**
|
||||||
|
* `RouteMarkPoint`
|
||||||
|
*/
|
||||||
ROUTING,
|
ROUTING,
|
||||||
|
/**
|
||||||
|
* `SpeedCameraMark`
|
||||||
|
*/
|
||||||
SPEED_CAM,
|
SPEED_CAM,
|
||||||
|
/**
|
||||||
|
* `RoadWarningMark`
|
||||||
|
*/
|
||||||
ROAD_WARNING,
|
ROAD_WARNING,
|
||||||
|
/**
|
||||||
|
* `TransitMark`
|
||||||
|
*/
|
||||||
TRANSIT,
|
TRANSIT,
|
||||||
LOCAL_ADS,
|
LOCAL_ADS,
|
||||||
|
/**
|
||||||
|
* `TrackInfoMark`
|
||||||
|
*/
|
||||||
TRACK_INFO,
|
TRACK_INFO,
|
||||||
|
/**
|
||||||
|
* `TrackSelectionMark`
|
||||||
|
*/
|
||||||
TRACK_SELECTION,
|
TRACK_SELECTION,
|
||||||
|
/**
|
||||||
|
* `DebugMarkPoint`
|
||||||
|
*/
|
||||||
DEBUG_MARK, // Plain "DEBUG" results in a name collision.
|
DEBUG_MARK, // Plain "DEBUG" results in a name collision.
|
||||||
|
/**
|
||||||
|
* `ColoredMarkPoint`
|
||||||
|
*/
|
||||||
COLORED,
|
COLORED,
|
||||||
USER_MARK_TYPES_COUNT,
|
USER_MARK_TYPES_COUNT,
|
||||||
USER_MARK_TYPES_COUNT_MAX = 1000,
|
USER_MARK_TYPES_COUNT_MAX = 1000,
|
||||||
@@ -133,6 +174,9 @@ private:
|
|||||||
bool m_hasPosition = false;
|
bool m_hasPosition = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief A mark in the shape of a dot.
|
||||||
|
*/
|
||||||
class DebugMarkPoint : public UserMark
|
class DebugMarkPoint : public UserMark
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -141,6 +185,9 @@ public:
|
|||||||
drape_ptr<SymbolNameZoomInfo> GetSymbolNames() const override;
|
drape_ptr<SymbolNameZoomInfo> GetSymbolNames() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief A mark in the shape of a dot, of caller-defined color and radius.
|
||||||
|
*/
|
||||||
class ColoredMarkPoint : public UserMark
|
class ColoredMarkPoint : public UserMark
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user