NorMIT-nav  22.09
An IGT application
cxUsReconstructionServiceProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXUSRECONSTRUCTIONSERVICEPROXY_H
13 #define CXUSRECONSTRUCTIONSERVICEPROXY_H
14 
15 #include "org_custusx_usreconstruction_Export.h"
16 
19 class ctkPluginContext;
20 
21 namespace cx
22 {
23 
27 class org_custusx_usreconstruction_EXPORT UsReconstructionServiceProxy : public UsReconstructionService
28 {
29 
30  Q_OBJECT
31 
32 public:
33  UsReconstructionServiceProxy(ctkPluginContext *pluginContext);
34 
35  virtual void selectData(QString filename, QString calFilesPath = "");
36  virtual void selectData(USReconstructInputData data);
37 
38  virtual QString getSelectedFilename() const;
39  virtual USReconstructInputData getSelectedFileData();
40 // virtual ReconstructParamsPtr getParams();
41  virtual PropertyPtr getParam(QString uid);
42  virtual std::vector<PropertyPtr> getAlgoOptions();
43  virtual XmlOptionFile getSettings();
44  virtual OutputVolumeParams getOutputVolumeParams() const;
45 
46  virtual void setOutputVolumeParams(const OutputVolumeParams& par);
47 // virtual void setOutputRelativePath(QString path);
48 // virtual void setOutputBasePath(QString path);
49  virtual void startReconstruction();
50  virtual std::set<cx::TimedAlgorithmPtr> getThreadedReconstruction();
51  virtual ReconstructionMethodService* createAlgorithm();
52 
53  virtual ReconstructCore::InputParams createCoreParameters();
54 
55  virtual bool isNull();
56 
57 public slots:
58  virtual void newDataOnDisk(QString mhdFilename);
59 private:
60  void initServiceListener();
61  void onServiceAdded(UsReconstructionService* service);
62  void onServiceRemoved(UsReconstructionService *service);
63 
64  ctkPluginContext *mPluginContext;
65  UsReconstructionServicePtr mUsReconstructionService;
66  boost::shared_ptr<ServiceTrackerListener<UsReconstructionService> > mServiceListener;
67 };
68 
69 } //cx
70 
71 #endif // CXUSRECONSTRUCTIONSERVICEPROXY_H
cx::XmlOptionFile
Helper class for xml files used to store ssc/cx data.
Definition: cxXmlOptionItem.h:78
cxServiceTrackerListener.h
cxUsReconstructionService.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::UsReconstructionServicePtr
boost::shared_ptr< class UsReconstructionService > UsReconstructionServicePtr
Definition: cxAcquisitionImplService.h:24
cx::UsReconstructionService
Definition: cxUsReconstructionService.h:50
cx::ReconstructionMethodService
Abstract interface for reconstruction algorithm.
Definition: cxReconstructionMethodService.h:54
cx::PropertyPtr
boost::shared_ptr< class Property > PropertyPtr
Definition: cxLocalServerStreamerServer.h:25
cx::ReconstructCore::InputParams
Definition: cxReconstructCore.h:41
cx::OutputVolumeParams
Helper struct for sending and controlling output volume properties.
Definition: cxReconstructedOutputVolumeParams.h:39
cx::UsReconstructionServiceProxy
Definition: cxUsReconstructionServiceProxy.h:27
cx::USReconstructInputData
Definition: cxUSReconstructInputData.h:48