MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / FOVChanged

Method FOVChanged

ASAP/PrefetchThread.cpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void PrefetchThread::FOVChanged(MultiResolutionImage* img, const QRectF& FOV, const unsigned int level)
32{
33 QMutexLocker locker(&_mutex);
34
35 _img = img;
36 _level = level;
37 _FOV = FOV;
38
39 if (!isRunning()) {
40 start(HighPriority);
41 } else {
42 _restart = true;
43 _condition.wakeOne();
44 }
45}
46
47// Fetch threads based on the current FOV and level; prefetch will cache one level up and one level down of the
48// current FOV (taking into account the downsampling) and tiles outside the FOV with the same size of the FOV in

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected