Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SlicerRenderBlocker Class Reference

Safe replacement of qSlicerCoreApplication::pauseRender/resumeRender. More...

#include <Base/QTCore/qSlicerCoreApplication.h>

Collaboration diagram for SlicerRenderBlocker:

Public Member Functions

 SlicerRenderBlocker ()
 
 ~SlicerRenderBlocker ()
 

Public Attributes

qSlicerCoreApplicationApplication
 

Detailed Description

Safe replacement of qSlicerCoreApplication::pauseRender/resumeRender.

SlicerRenderBlocker can be used wherever you would otherwise use a pair of calls to app->pauseRender() and app->resumeRender(). It pauses rendering in its constructor and in the destructor it restores previous rendering state.

Definition at line 742 of file qSlicerCoreApplication.h.

Constructor & Destructor Documentation

◆ SlicerRenderBlocker()

SlicerRenderBlocker::SlicerRenderBlocker ( )
inline

Definition at line 746 of file qSlicerCoreApplication.h.

◆ ~SlicerRenderBlocker()

SlicerRenderBlocker::~SlicerRenderBlocker ( )
inline

Definition at line 754 of file qSlicerCoreApplication.h.

Member Data Documentation

◆ Application

qSlicerCoreApplication* SlicerRenderBlocker::Application

Definition at line 745 of file qSlicerCoreApplication.h.


The documentation for this class was generated from the following file: