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

Method Allow3dMode

libs/map/framework.cpp:2466–2482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2464}
2465
2466void Framework::Allow3dMode(bool allow3d, bool allow3dBuildings)
2467{
2468 if (m_drapeEngine == nullptr)
2469 return;
2470
2471 if (!m_powerManager.IsFacilityEnabled(power_management::Facility::PerspectiveView))
2472 allow3d = false;
2473
2474 if (!m_powerManager.IsFacilityEnabled(power_management::Facility::Buildings3d))
2475 allow3dBuildings = false;
2476
2477 /// If we are in CarPlay/AA mode and Navigation is active, force 3D buildings off.
2478 if (m_isCarScreenMode && m_routingManager.IsRoutingActive())
2479 allow3dBuildings = false;
2480
2481 m_drapeEngine->Allow3dMode(allow3d, allow3dBuildings);
2482}
2483
2484void Framework::Save3dMode(bool allow3d, bool allow3dBuildings)
2485{

Callers 2

Set3dModeMethod · 0.45
Try3dModeCmdMethod · 0.45

Calls 2

IsFacilityEnabledMethod · 0.80
IsRoutingActiveMethod · 0.80

Tested by

no test coverage detected