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

Method ProcessNextPoint

qt/screenshoter.cpp:237–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void Screenshoter::ProcessNextPoint()
238{
239 if (m_pointsToProcess.empty())
240 {
241 ChangeState(State::Done);
242 return;
243 }
244
245 std::string const postfix = "_" + languages::GetCurrentNorm();
246 std::stringstream ss;
247 ss << "point_" << std::setfill('0') << std::setw(4) << m_itemsCount - m_pointsToProcess.size() << postfix;
248
249 m_nextScreenshotName = ss.str();
250
251 auto const pointZoom = m_pointsToProcess.front();
252 m_pointsToProcess.pop_front();
253
254 ChangeState(State::WaitPosition);
255 m_framework.SetViewportCenter(pointZoom.first, pointZoom.second, false /* animation */);
256 WaitPosition();
257}
258
259void Screenshoter::PrepareCountries()
260{

Callers

nothing calls this directly

Calls 5

GetCurrentNormFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
SetViewportCenterMethod · 0.45

Tested by

no test coverage detected