| 218 | } |
| 219 | |
| 220 | void |
| 221 | ViewerInstance::forceFullComputationOnNextFrame() |
| 222 | { |
| 223 | // this is called by the GUI when the user presses the "Refresh" button. |
| 224 | // It set the flag forceRender to true, meaning no cache will be used. |
| 225 | |
| 226 | // always running in the main thread |
| 227 | assert( qApp && qApp->thread() == QThread::currentThread() ); |
| 228 | |
| 229 | QMutexLocker forceRenderLocker(&_imp->forceRenderMutex); |
| 230 | _imp->forceRender[0] = _imp->forceRender[1] = true; |
| 231 | } |
| 232 | |
| 233 | void |
| 234 | ViewerInstance::clearLastRenderedImage() |