35 #include <boost/bind.hpp> 55 mPluginContext(pluginContext),
58 this->initServiceListener();
62 void UsReconstructionServiceProxy::initServiceListener()
66 boost::bind(&UsReconstructionServiceProxy::onServiceAdded,
this, _1),
68 boost::bind(&UsReconstructionServiceProxy::onServiceRemoved,
this, _1)
70 mServiceListener->open();
84 if(mUsReconstructionService->isNull())
85 reportWarning(
"UsReconstructionServiceProxy::onServiceAdded mVideoService->isNull()");
109 return mUsReconstructionService->isNull();
116 mUsReconstructionService->selectData(filename, calFilesPath);
121 mUsReconstructionService->selectData(data);
126 return mUsReconstructionService->getSelectedFilename();
131 return mUsReconstructionService->getSelectedFileData();
136 return mUsReconstructionService->getParam(uid);
146 return mUsReconstructionService->getAlgoOptions();
151 return mUsReconstructionService->getSettings();
156 return mUsReconstructionService->getOutputVolumeParams();
161 mUsReconstructionService->setOutputVolumeParams(par);
176 mUsReconstructionService->startReconstruction();
181 return mUsReconstructionService->getThreadedReconstruction();
186 return mUsReconstructionService->createAlgorithm();
191 return mUsReconstructionService->createCoreParameters();
196 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.