MCPcopy Create free account
hub / github.com/comaps/comaps / GetTrackSelectionInfo

Method GetTrackSelectionInfo

libs/map/bookmark_manager.cpp:926–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

924}
925
926Track::TrackSelectionInfo BookmarkManager::GetTrackSelectionInfo(kml::TrackId const & trackId) const
927{
928 CHECK_THREAD_CHECKER(m_threadChecker, ());
929 auto const markId = GetTrackSelectionMarkId(trackId);
930 if (markId == kml::kInvalidMarkId)
931 return {};
932
933 auto const mark = GetMark<TrackSelectionMark>(markId);
934 return {trackId, mark->GetPivot(), mark->GetDistance()};
935}
936
937kml::MarkId BookmarkManager::GetTrackSelectionMarkId(kml::TrackId trackId) const
938{

Calls 2

GetPivotMethod · 0.45
GetDistanceMethod · 0.45

Tested by

no test coverage detected