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

Method LoadViewport

libs/map/framework.cpp:996–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994}
995
996void Framework::LoadViewport()
997{
998 m2::AnyRectD rect;
999 if (settings::Get(kScreenViewport, rect) && df::GetWorldRect().IsRectInside(rect.GetGlobalRect()))
1000 {
1001 if (m_drapeEngine != nullptr)
1002 m_drapeEngine->SetModelViewAnyRect(rect, false /* isAnim */, false /* useVisibleViewport */);
1003 }
1004 else
1005 {
1006 ShowAll();
1007 }
1008}
1009
1010void Framework::ShowAll()
1011{

Callers

nothing calls this directly

Calls 5

GetFunction · 0.85
GetWorldRectFunction · 0.85
SetModelViewAnyRectMethod · 0.80
IsRectInsideMethod · 0.45
GetGlobalRectMethod · 0.45

Tested by

no test coverage detected