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

Method SetRect

libs/drape_frontend/user_event_stream.cpp:518–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518bool UserEventStream::SetRect(m2::RectD rect, int zoom, bool applyRotation, bool isAnim, bool useVisibleViewport,
519 TAnimationCreator const & parallelAnimCreator)
520{
521 CheckMinGlobalRect(rect, kDefault3dScale);
522 CheckMinMaxVisibleScale(rect, zoom, kDefault3dScale);
523 m2::AnyRectD targetRect = applyRotation ? ToRotated(m_navigator, rect) : m2::AnyRectD(rect);
524 return SetRect(targetRect, isAnim, true /* fitInViewport */, useVisibleViewport, parallelAnimCreator);
525}
526
527bool UserEventStream::SetRect(m2::AnyRectD const & rect, bool isAnim, bool fitInViewport, bool useVisibleViewport,
528 TAnimationCreator const & parallelAnimCreator)

Callers

nothing calls this directly

Calls 8

CheckMinGlobalRectFunction · 0.85
CheckMinMaxVisibleScaleFunction · 0.85
ToRotatedFunction · 0.85
SetFromRectsMethod · 0.80
MatchGandP3dMethod · 0.80
GlobalCenterMethod · 0.80
IsValidMethod · 0.45
CenterMethod · 0.45

Tested by

no test coverage detected