//---------------------------------------------------------------------------- void ctkVTKSliceView::forceRender() { Q_D(ctkVTKSliceView); if (!d->RenderEnabled || !this->isVisible()) { return; } logger.trace("forceRender"); d->RenderWindow->Render(); d->RenderPending = false; }
//---------------------------------------------------------------------------- void ctkVTKSliceView::scheduleRender() { Q_D(ctkVTKSliceView); logger.trace("scheduleRender"); if (!d->RenderEnabled) { return; } if (!d->RenderPending) { d->RenderPending = true; QTimer::singleShot(0, this, SLOT(forceRender())); } }