NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Protected Member Functions | List of all members
niftk::IGITimerBasedThread Class Referenceabstract

Base class for threads that are simply triggered off of a QTimer. More...

Inheritance diagram for niftk::IGITimerBasedThread:
Inheritance graph
[legend]
Collaboration diagram for niftk::IGITimerBasedThread:
Collaboration graph
[legend]

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...
 

Detailed Description

Base class for threads that are simply triggered off of a QTimer.

See also
IGIDataSourceBackgroundDeleteThread
IGIDataSourceBackgroundSaveThread
IGIDataSourceGrabbingThread

Constructor & Destructor Documentation

niftk::IGITimerBasedThread::IGITimerBasedThread ( QObject *  parent)
niftk::IGITimerBasedThread::~IGITimerBasedThread ( )

Member Function Documentation

void niftk::IGITimerBasedThread::ForciblyStop ( )
virtual

Make sure everything is stopped and cleaned up.

virtual void niftk::IGITimerBasedThread::OnTimeoutImpl ( )
protectedpure virtual
void niftk::IGITimerBasedThread::run ( )
overridevirtual

Override the QThread run method to start the thread.

See also
QThread::run()

Reimplemented in niftk::NVidiaSDIDataSourceImpl.

void niftk::IGITimerBasedThread::SetInterval ( unsigned int  milliseconds)

Set the interval on the timer, and this can be changed as the thread is running.


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