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();
63 if(mUsReconstructionService->isNull())
64 reportWarning(
"UsReconstructionServiceProxy::onServiceAdded mVideoService->isNull()");
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);
void newInputDataAvailable(QString mhdFileName)
virtual void setOutputVolumeParams(const OutputVolumeParams &par)
Control the output volume.
void inputDataSelected(QString mhdFileName)
virtual void startReconstruction()
Abstract interface for reconstruction algorithm.
virtual std::vector< PropertyPtr > getAlgoOptions()
Return control parameters for the currently selected algorithm, adjustable like getParams() ...
virtual std::set< cx::TimedAlgorithmPtr > getThreadedReconstruction()
Return the currently reconstructing thread object(s).
virtual void selectData(QString filename, QString calFilesPath="")
Set input data for reconstruction.
void reconstructFinished()
virtual XmlOptionFile getSettings()
Return the settings xml file where parameters are stored.
static UsReconstructionServicePtr getNullObject()
virtual ReconstructionMethodService * createAlgorithm()
Helper struct for sending and controlling output volume properties.
boost::shared_ptr< class Property > PropertyPtr
void reportWarning(QString msg)
virtual OutputVolumeParams getOutputVolumeParams() const
Return params controlling the output data. These are data-dependent.
virtual USReconstructInputData getSelectedFileData()
Return the currently selected input data.
virtual ReconstructCore::InputParams createCoreParameters()
void reconstructStarted()
virtual void newDataOnDisk(QString mhdFilename)
UsReconstructionServiceProxy(ctkPluginContext *pluginContext)
void reconstructAboutToStart()
Helper class for listening to services being added, modified and removed.
void newInputDataPath(QString path)
virtual PropertyPtr getParam(QString uid)
Return one of the standard parameters.
Helper class for xml files used to store ssc/cx data.
virtual QString getSelectedFilename() const
Get the currently selected filename.
Namespace for all CustusX production code.