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

Method ProcessNextRect

qt/screenshoter.cpp:213–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void Screenshoter::ProcessNextRect()
214{
215 if (m_rectsToProcess.empty())
216 {
217 ChangeState(State::Done);
218 return;
219 }
220
221 std::string const postfix = "_" + languages::GetCurrentNorm();
222 std::stringstream ss;
223 ss << "rect_" << std::setfill('0') << std::setw(4) << m_itemsCount - m_rectsToProcess.size() << postfix;
224
225 m_nextScreenshotName = ss.str();
226
227 auto const rect = m_rectsToProcess.front();
228 m_rectsToProcess.pop_front();
229
230 CHECK(rect.IsValid(), ());
231
232 ChangeState(State::WaitPosition);
233 m_framework.ShowRect(rect, -1 /* maxScale */, false /* animation */, false /* useVisibleViewport */);
234 WaitPosition();
235}
236
237void Screenshoter::ProcessNextPoint()
238{

Callers

nothing calls this directly

Calls 6

GetCurrentNormFunction · 0.85
frontMethod · 0.80
ShowRectMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected