MCPcopy Create free account
hub / github.com/andybarry/makerscanner / SendScanProgress

Method SendScanProgress

ScanThread.cpp:474–482  ·  view source on GitHub ↗

Send an event with the progress of the laser

Source from the content-addressed store, hash-verified

472
473// Send an event with the progress of the laser
474void ScanThread::SendScanProgress(int laserPos)
475{
476 // compute percentage done
477 int progress = int( 100.0 * float(laserPos - laserMaxLeft)/(float(laserMaxRight - laserMaxLeft)) + 0.5);
478
479 wxCommandEvent event2(SCAN_PROGRESS_EVENT, GetId());
480 event2.SetInt(progress);
481 window->GetEventHandler()->AddPendingEvent(event2);
482}
483
484// Send a scan finished event
485void ScanThread::SendScanFinishedEvent()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected