NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Base class for threads that are simply triggered off of a QTimer. More...
Public Member Functions | |
IGITimerBasedThread (QObject *parent) | |
~IGITimerBasedThread () | |
void | SetInterval (unsigned int milliseconds) |
Set the interval on the timer, and this can be changed as the thread is running. More... | |
virtual void | run () override |
Override the QThread run method to start the thread. More... | |
virtual void | ForciblyStop () |
Make sure everything is stopped and cleaned up. More... | |
Protected Member Functions | |
virtual void | OnTimeoutImpl ()=0 |
Derived classes implement this. More... | |
Base class for threads that are simply triggered off of a QTimer.
niftk::IGITimerBasedThread::IGITimerBasedThread | ( | QObject * | parent | ) |
niftk::IGITimerBasedThread::~IGITimerBasedThread | ( | ) |
|
virtual |
Make sure everything is stopped and cleaned up.
|
protectedpure virtual |
Derived classes implement this.
Implemented in niftk::NVidiaSDIDataSourceImpl, niftk::IGIDataSourceBackgroundDeleteThread, niftk::IGIDataSourceBackgroundSaveThread, and niftk::IGIDataSourceGrabbingThread.
|
overridevirtual |
Override the QThread run method to start the thread.
Reimplemented in niftk::NVidiaSDIDataSourceImpl.
Set the interval on the timer, and this can be changed as the thread is running.