NorMIT-nav  22.09
An IGT application
cx::UsReconstructionImplService Class Reference

Manager for the us reconstruction process. More...

#include <cxUsReconstructionImplService.h>

Inheritance diagram for cx::UsReconstructionImplService:
cx::UsReconstructionService

Public Slots

virtual void newDataOnDisk (QString mhdFilename)
 
- Public Slots inherited from cx::UsReconstructionService
virtual void newDataOnDisk (QString mhdFilename)=0
 

Public Member Functions

 UsReconstructionImplService (ctkPluginContext *pluginContext, PatientModelServicePtr patientModelService, ViewServicePtr viewService, FileManagerServicePtr filemanagerservice, XmlOptionFile settings)
 
virtual ~UsReconstructionImplService ()
 
virtual bool isNull ()
 
virtual void selectData (QString filename, QString calFilesPath="")
 Set input data for reconstruction. More...
 
virtual void selectData (USReconstructInputData data)
 Set input data for reconstruction. More...
 
virtual QString getSelectedFilename () const
 Get the currently selected filename. More...
 
virtual USReconstructInputData getSelectedFileData ()
 Return the currently selected input data. More...
 
virtual PropertyPtr getParam (QString uid)
 Return one of the standard parameters. More...
 
virtual std::vector< PropertyPtrgetAlgoOptions ()
 Return control parameters for the currently selected algorithm, adjustable like getParams() More...
 
virtual XmlOptionFile getSettings ()
 Return the settings xml file where parameters are stored. More...
 
virtual OutputVolumeParams getOutputVolumeParams () const
 Return params controlling the output data. These are data-dependent. More...
 
virtual void setOutputVolumeParams (const OutputVolumeParams &par)
 Control the output volume. More...
 
virtual void startReconstruction ()
 
virtual std::set< cx::TimedAlgorithmPtrgetThreadedReconstruction ()
 Return the currently reconstructing thread object(s). More...
 
virtual ReconstructionMethodServicecreateAlgorithm ()
 
virtual ReconstructCore::InputParams createCoreParameters ()
 

Additional Inherited Members

- Signals inherited from cx::UsReconstructionService
void paramsChanged ()
 
void algorithmChanged ()
 
void inputDataSelected (QString mhdFileName)
 
void reconstructAboutToStart ()
 
void reconstructStarted ()
 
void reconstructFinished ()
 
void newInputDataAvailable (QString mhdFileName)
 
void newInputDataPath (QString path)
 
- Static Public Member Functions inherited from cx::UsReconstructionService
static UsReconstructionServicePtr getNullObject ()
 

Detailed Description

Manager for the us reconstruction process.

Create a 3D volume based on a set of 2D images with 3D position.

* Used coordinate systems:
* u  = raw input Ultrasound frames (in x, y. Origin lower left.)
* t  = Tool space for probe as defined in ssc:Tool (z in ray direction, y to the left)
* s  = probe localizer Sensor.
* pr = Patient Reference localizer sensor.
* d  = Output Data space
* 
Author
Ole Vegard Solberg
Christian Askeland
Janne Beate Bakeng
Date
May 4, 2010

Definition at line 53 of file cxUsReconstructionImplService.h.

Constructor & Destructor Documentation

◆ UsReconstructionImplService()

cx::UsReconstructionImplService::UsReconstructionImplService ( ctkPluginContext *  pluginContext,
PatientModelServicePtr  patientModelService,
ViewServicePtr  viewService,
FileManagerServicePtr  filemanagerservice,
XmlOptionFile  settings 
)

Definition at line 42 of file cxUsReconstructionImplService.cpp.

◆ ~UsReconstructionImplService()

cx::UsReconstructionImplService::~UsReconstructionImplService ( )
virtual

Definition at line 64 of file cxUsReconstructionImplService.cpp.

Member Function Documentation

◆ createAlgorithm()

ReconstructionMethodService * cx::UsReconstructionImplService::createAlgorithm ( )
virtual

Create the reconstruct algorithm object. This is usually created internally during reconstruction, published for use in unit testing.

Implements cx::UsReconstructionService.

Definition at line 79 of file cxUsReconstructionImplService.cpp.

◆ createCoreParameters()

ReconstructCore::InputParams cx::UsReconstructionImplService::createCoreParameters ( )
virtual

Implements cx::UsReconstructionService.

Definition at line 245 of file cxUsReconstructionImplService.cpp.

◆ getAlgoOptions()

std::vector< PropertyPtr > cx::UsReconstructionImplService::getAlgoOptions ( )
virtual

Return control parameters for the currently selected algorithm, adjustable like getParams()

Implements cx::UsReconstructionService.

Definition at line 164 of file cxUsReconstructionImplService.cpp.

◆ getOutputVolumeParams()

OutputVolumeParams cx::UsReconstructionImplService::getOutputVolumeParams ( ) const
virtual

Return params controlling the output data. These are data-dependent.

Implements cx::UsReconstructionService.

Definition at line 153 of file cxUsReconstructionImplService.cpp.

◆ getParam()

PropertyPtr cx::UsReconstructionImplService::getParam ( QString  uid)
virtual

Return one of the standard parameters.

Implements cx::UsReconstructionService.

Definition at line 194 of file cxUsReconstructionImplService.cpp.

◆ getSelectedFileData()

USReconstructInputData cx::UsReconstructionImplService::getSelectedFileData ( )
virtual

Return the currently selected input data.

Implements cx::UsReconstructionService.

Definition at line 189 of file cxUsReconstructionImplService.cpp.

◆ getSelectedFilename()

QString cx::UsReconstructionImplService::getSelectedFilename ( ) const
virtual

Get the currently selected filename.

Implements cx::UsReconstructionService.

Definition at line 184 of file cxUsReconstructionImplService.cpp.

◆ getSettings()

XmlOptionFile cx::UsReconstructionImplService::getSettings ( )
virtual

Return the settings xml file where parameters are stored.

Implements cx::UsReconstructionService.

Definition at line 179 of file cxUsReconstructionImplService.cpp.

◆ getThreadedReconstruction()

std::set< cx::TimedAlgorithmPtr > cx::UsReconstructionImplService::getThreadedReconstruction ( )
virtual

Return the currently reconstructing thread object(s).

Implements cx::UsReconstructionService.

Definition at line 119 of file cxUsReconstructionImplService.cpp.

◆ isNull()

bool cx::UsReconstructionImplService::isNull ( )
virtual

Implements cx::UsReconstructionService.

Definition at line 68 of file cxUsReconstructionImplService.cpp.

◆ newDataOnDisk

void cx::UsReconstructionImplService::newDataOnDisk ( QString  mhdFilename)
virtualslot

Definition at line 291 of file cxUsReconstructionImplService.cpp.

◆ selectData() [1/2]

void cx::UsReconstructionImplService::selectData ( QString  filename,
QString  calFilesPath = "" 
)
virtual

Set input data for reconstruction.

Implements cx::UsReconstructionService.

Definition at line 199 of file cxUsReconstructionImplService.cpp.

◆ selectData() [2/2]

void cx::UsReconstructionImplService::selectData ( USReconstructInputData  data)
virtual

Set input data for reconstruction.

Implements cx::UsReconstructionService.

Definition at line 218 of file cxUsReconstructionImplService.cpp.

◆ setOutputVolumeParams()

void cx::UsReconstructionImplService::setOutputVolumeParams ( const OutputVolumeParams par)
virtual

Control the output volume.

Implements cx::UsReconstructionService.

Definition at line 158 of file cxUsReconstructionImplService.cpp.

◆ startReconstruction()

void cx::UsReconstructionImplService::startReconstruction ( )
virtual

Execute the reconstruction in another thread.

The returned cores can be used to retrieve output, but this must be done AFTER the threads have completed. In general, dont use the retval, it is for unit testing.

Implements cx::UsReconstructionService.

Definition at line 95 of file cxUsReconstructionImplService.cpp.


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