|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
14 #include <boost/bind.hpp>
34 mPluginContext(pluginContext),
37 this->initServiceListener();
41 void UsReconstructionServiceProxy::initServiceListener()
45 boost::bind(&UsReconstructionServiceProxy::onServiceAdded,
this, _1),
47 boost::bind(&UsReconstructionServiceProxy::onServiceRemoved,
this, _1)
49 mServiceListener->open();
51 void UsReconstructionServiceProxy::onServiceAdded(UsReconstructionService* service)
53 mUsReconstructionService.reset(service, null_deleter());
63 if(mUsReconstructionService->isNull())
64 reportWarning(
"UsReconstructionServiceProxy::onServiceAdded mVideoService->isNull()");
70 void UsReconstructionServiceProxy::onServiceRemoved(UsReconstructionService *service)
88 return mUsReconstructionService->isNull();
95 mUsReconstructionService->selectData(filename, calFilesPath);
100 mUsReconstructionService->selectData(data);
105 return mUsReconstructionService->getSelectedFilename();
110 return mUsReconstructionService->getSelectedFileData();
115 return mUsReconstructionService->getParam(uid);
125 return mUsReconstructionService->getAlgoOptions();
130 return mUsReconstructionService->getSettings();
135 return mUsReconstructionService->getOutputVolumeParams();
140 mUsReconstructionService->setOutputVolumeParams(par);
155 mUsReconstructionService->startReconstruction();
160 return mUsReconstructionService->getThreadedReconstruction();
165 return mUsReconstructionService->createAlgorithm();
170 return mUsReconstructionService->createCoreParameters();
175 return mUsReconstructionService->newDataOnDisk(mhdFilename);
UsReconstructionServiceProxy(ctkPluginContext *pluginContext)
Helper class for xml files used to store ssc/cx data.
void reconstructAboutToStart()
void inputDataSelected(QString mhdFileName)
virtual USReconstructInputData getSelectedFileData()
Return the currently selected input data.
Namespace for all CustusX production code.
Helper class for listening to services being added, modified and removed.
virtual void startReconstruction()
void newInputDataPath(QString path)
virtual void newDataOnDisk(QString mhdFilename)
Abstract interface for reconstruction algorithm.
boost::shared_ptr< class Property > PropertyPtr
virtual QString getSelectedFilename() const
Get the currently selected filename.
void newInputDataAvailable(QString mhdFileName)
virtual XmlOptionFile getSettings()
Return the settings xml file where parameters are stored.
virtual ReconstructionMethodService * createAlgorithm()
virtual ReconstructCore::InputParams createCoreParameters()
void reconstructFinished()
virtual OutputVolumeParams getOutputVolumeParams() const
Return params controlling the output data. These are data-dependent.
virtual PropertyPtr getParam(QString uid)
Return one of the standard parameters.
void reconstructStarted()
virtual std::vector< PropertyPtr > getAlgoOptions()
Return control parameters for the currently selected algorithm, adjustable like getParams()
virtual void setOutputVolumeParams(const OutputVolumeParams &par)
Control the output volume.
virtual std::set< cx::TimedAlgorithmPtr > getThreadedReconstruction()
Return the currently reconstructing thread object(s).
Helper struct for sending and controlling output volume properties.
void reportWarning(QString msg)
static UsReconstructionServicePtr getNullObject()
virtual void selectData(QString filename, QString calFilesPath="")
Set input data for reconstruction.