mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
48
map/user_mark_layer.hpp
Normal file
48
map/user_mark_layer.hpp
Normal file
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "map/user_mark.hpp"
|
||||
|
||||
#include <base/macros.hpp>
|
||||
|
||||
|
||||
class UserMarkLayer
|
||||
{
|
||||
public:
|
||||
explicit UserMarkLayer(UserMark::Type type);
|
||||
virtual ~UserMarkLayer() = default;
|
||||
|
||||
bool IsDirty() const { return m_isDirty; }
|
||||
void ResetChanges();
|
||||
|
||||
bool IsVisible() const;
|
||||
bool IsVisibilityChanged() const;
|
||||
UserMark::Type GetType() const;
|
||||
|
||||
kml::MarkIdSet const & GetUserMarks() const { return m_userMarks; }
|
||||
kml::TrackIdSet const & GetUserLines() const { return m_tracks; }
|
||||
|
||||
void AttachUserMark(kml::MarkId markId);
|
||||
void DetachUserMark(kml::MarkId markId);
|
||||
|
||||
void AttachTrack(kml::TrackId trackId);
|
||||
void DetachTrack(kml::TrackId trackId);
|
||||
|
||||
void Clear();
|
||||
bool IsEmpty() const;
|
||||
|
||||
virtual void SetIsVisible(bool isVisible);
|
||||
|
||||
protected:
|
||||
virtual void SetDirty(bool updateModificationDate = true) { m_isDirty = true; }
|
||||
|
||||
UserMark::Type m_type;
|
||||
|
||||
kml::MarkIdSet m_userMarks;
|
||||
kml::TrackIdSet m_tracks;
|
||||
|
||||
bool m_isDirty = true;
|
||||
bool m_isVisible = true;
|
||||
bool m_wasVisible = false;
|
||||
|
||||
DISALLOW_COPY_AND_MOVE(UserMarkLayer);
|
||||
};
|
||||
Reference in New Issue
Block a user