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

Method SetElevationActivePoint

libs/map/bookmark_manager.cpp:869–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869void BookmarkManager::SetElevationActivePoint(kml::TrackId const & trackId, m2::PointD pt, double targetDistance)
870{
871 CHECK_THREAD_CHECKER(m_threadChecker, ());
872
873 auto const track = GetTrack(trackId);
874 CHECK(track != nullptr, ());
875
876 SetTrackSelectionInfo({trackId, pt, targetDistance}, true /* notifyListeners */);
877
878 m_drapeEngine.SafeCall(&df::DrapeEngine::SelectObject, df::SelectionShape::ESelectedObject::OBJECT_TRACK, pt,
879 FeatureID(), false /* isAnim */, false /* isGeometrySelectionAllowed */,
880 true /* isSelectionShapeVisible */);
881}
882
883double BookmarkManager::GetElevationActivePoint(kml::TrackId const & trackId) const
884{

Calls 2

SafeCallMethod · 0.80
FeatureIDClass · 0.50

Tested by

no test coverage detected