CustusX  20.03-rc1
An IGT application
cx::ThreadedTimedReconstructCore Class Reference

Threading adapter for the reconstruction algorithm. More...

#include <cxReconstructThreads.h>

Inheritance diagram for cx::ThreadedTimedReconstructCore:
cx::ThreadedTimedAlgorithm< void > cx::TimedBaseAlgorithm

Public Member Functions

 ThreadedTimedReconstructCore (PatientModelServicePtr patientModelService, ViewServicePtr viewService, ReconstructCorePtr reconstructer)
 
virtual ~ThreadedTimedReconstructCore ()
 
- Public Member Functions inherited from cx::ThreadedTimedAlgorithm< void >
 ThreadedTimedAlgorithm (QString product, int secondsBetweenAnnounce)
 
virtual ~ThreadedTimedAlgorithm ()
 
virtual void execute ()
 
virtual bool isFinished () const
 
virtual bool isRunning () const
 
- Public Member Functions inherited from cx::TimedBaseAlgorithm
 TimedBaseAlgorithm (QString product, int secondsBetweenAnnounce)
 
virtual ~TimedBaseAlgorithm ()
 
virtual QString getProduct () const
 

Static Public Member Functions

static ThreadedTimedReconstructCorePtr create (PatientModelServicePtr patientModelService, ViewServicePtr viewService, ReconstructCorePtr reconstructer)
 

Additional Inherited Members

- Signals inherited from cx::TimedBaseAlgorithm
void aboutToStart ()
 emitted at start of execute. Use to perform preprocessing More...
 
void started (int maxSteps)
 emitted at start of run. More...
 
void finished ()
 should be emitted when at the end of postProcessingSlot More...
 
void productChanged ()
 emitted whenever product string has changed More...
 
- Protected Slots inherited from cx::TimedBaseAlgorithm
- Protected Member Functions inherited from cx::ThreadedTimedAlgorithm< void >
virtual void preProcessingSlot ()
 This happens before the thread (calculate) is started, here non-thread safe functions can be called. More...
 
virtual void postProcessingSlot ()=0
 This happens when the thread (calculate) is finished, here non-thread safe functions can be called. More...
 
void generate ()
 
void getResult ()
 
- Protected Member Functions inherited from cx::TimedBaseAlgorithm
void startTiming ()
 
void stopTiming ()
 
QString getSecondsPassedAsString () const
 
- Protected Attributes inherited from cx::TimedBaseAlgorithm
bool mUseDefaultMessages
 

Detailed Description

Threading adapter for the reconstruction algorithm.

Must be run after ThreadedTimedReconstructerStep2.

Executes ReconstructCore functions:

  • threadedReconstruct() [work thread]
  • threadedPostReconstruct() [main thread]
Date
Jan 27, 2012
Author
Christian Askeland, SINTEF

Definition at line 86 of file cxReconstructThreads.h.

Constructor & Destructor Documentation

cx::ThreadedTimedReconstructCore::ThreadedTimedReconstructCore ( PatientModelServicePtr  patientModelService,
ViewServicePtr  viewService,
ReconstructCorePtr  reconstructer 
)

Definition at line 69 of file cxReconstructThreads.cpp.

cx::ThreadedTimedReconstructCore::~ThreadedTimedReconstructCore ( )
virtual

Definition at line 78 of file cxReconstructThreads.cpp.

Member Function Documentation

static ThreadedTimedReconstructCorePtr cx::ThreadedTimedReconstructCore::create ( PatientModelServicePtr  patientModelService,
ViewServicePtr  viewService,
ReconstructCorePtr  reconstructer 
)
inlinestatic

Definition at line 90 of file cxReconstructThreads.h.


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