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

Method Scale

libs/drape_frontend/user_event_stream.cpp:1087–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1085}
1086
1087void UserEventStream::Scale(Touch const & t1, Touch const & t2)
1088{
1089 TEST_CALL(SCALE);
1090 ASSERT_EQUAL(m_state, STATE_SCALE, ());
1091
1092 m2::PointD touch1(t1.m_location);
1093 m2::PointD touch2(t2.m_location);
1094
1095 if (m_listener)
1096 {
1097 if (m_navigator.IsRotatingDuringScale())
1098 m_listener->OnRotated();
1099
1100 m_listener->CorrectScalePoint(touch1, touch2);
1101 }
1102
1103 m_navigator.DoScale(touch1, touch2);
1104}
1105
1106void UserEventStream::EndScale(Touch const & t1, Touch const & t2)
1107{

Callers 2

OnSetScaleMethod · 0.45

Calls 4

IsRotatingDuringScaleMethod · 0.80
DoScaleMethod · 0.80
OnRotatedMethod · 0.45
CorrectScalePointMethod · 0.45

Tested by

no test coverage detected