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

Method SetIsVisible

libs/map/bookmark_manager.cpp:1739–1756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1737}
1738
1739void BookmarkManager::SetIsVisible(kml::MarkGroupId groupId, bool visible)
1740{
1741 CHECK_THREAD_CHECKER(m_threadChecker, ());
1742 auto * group = GetGroup(groupId);
1743 if (group->IsVisible() != visible)
1744 {
1745 group->SetIsVisible(visible);
1746 if (auto const compilationIt = m_compilations.find(groupId); compilationIt != m_compilations.end())
1747 {
1748 auto const parentId = compilationIt->second->GetParentID();
1749 auto * parentGroup = GetBmCategory(parentId);
1750 parentGroup->SetDirty(false /* updateModificationTime */);
1751 if (visible) // visible == false handled in InferVisibility
1752 parentGroup->SetIsVisible(true);
1753 }
1754 }
1755 UpdateTrackMarksVisibility(groupId);
1756}
1757
1758bool BookmarkManager::IsVisible(kml::MarkGroupId groupId) const
1759{

Callers 9

CreateBookmarkMethod · 0.45
SetTrackSelectionMarkMethod · 0.45
ResetTrackInfoMarkMethod · 0.45
OnTrackSelectedMethod · 0.45
OnTrackDeselectedMethod · 0.45
InferVisibilityMethod · 0.45

Calls 5

GetParentIDMethod · 0.80
IsVisibleMethod · 0.45
findMethod · 0.45
endMethod · 0.45
SetDirtyMethod · 0.45

Tested by

no test coverage detected