CustusX  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cxUsReconstructionServiceNull.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) 2008-2014, SINTEF Department of Medical Technology
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are met:
9 
10 1. Redistributions of source code must retain the above copyright notice,
11  this list of conditions and the following disclaimer.
12 
13 2. Redistributions in binary form must reproduce the above copyright notice,
14  this list of conditions and the following disclaimer in the documentation
15  and/or other materials provided with the distribution.
16 
17 3. Neither the name of the copyright holder nor the names of its contributors
18  may be used to endorse or promote products derived from this software
19  without specific prior written permission.
20 
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 =========================================================================*/
32 
34 #include "cxPropertyNull.h"
36 
37 namespace cx {
38 
40 {}
41 
42 void UsReconstructionServiceNull::printWarning() const
43 {
44 // reportWarning("Trying to use UsReconstructionServiceNull. Is UsReconstructionService (org.custusx.usreconstruction) disabled?");
45 }
46 
47 void UsReconstructionServiceNull::selectData(QString filename, QString calFilesPath)
48 {
49  printWarning();
50 }
51 
53 {
54  printWarning();
55 }
56 
58 {
59  printWarning();
60  return QString();
61 }
62 
64 {
65  printWarning();
66  return USReconstructInputData();
67 }
68 
70 {
71  printWarning();
72  return PropertyNull::create();
73 }
74 
75 //ReconstructParamsPtr UsReconstructionServiceNull::getParams()
76 //{
77 // printWarning();
78 // return ReconstructParamsPtr();
79 //}
80 
82 {
83  printWarning();
84  return std::vector<PropertyPtr>();
85 }
86 
88 {
89  printWarning();
90  return XmlOptionFile();
91 }
92 
94 {
95  printWarning();
96  return OutputVolumeParams();
97 }
98 
100 {
101  printWarning();
102 }
103 
105 {
106  printWarning();
107 }
108 
110 {
111  printWarning();
112 }
113 
115 {
116  printWarning();
117 }
118 
120 {
121  printWarning();
122  return std::set<TimedAlgorithmPtr>();
123 }
124 
126 {
127  printWarning();
128  return NULL;
129 }
130 
132 {
133  printWarning();
135 }
136 
138 {
139  return true;
140 }
141 
143 {
144  printWarning();
145 }
146 
147 } //cx
Abstract interface for reconstruction algorithm.
virtual ReconstructCore::InputParams createCoreParameters()
virtual std::vector< PropertyPtr > getAlgoOptions()
Return control parameters for the currently selected algorithm, adjustable like getParams() ...
Helper struct for sending and controlling output volume properties.
virtual OutputVolumeParams getOutputVolumeParams() const
Return params controlling the output data. These are data-dependent.
virtual ReconstructionMethodService * createAlgorithm()
virtual std::set< cx::TimedAlgorithmPtr > getThreadedReconstruction()
Return the currently reconstructing thread object(s).
boost::shared_ptr< class Property > PropertyPtr
virtual void selectData(QString filename, QString calFilesPath="")
Set input data for reconstruction.
virtual void setOutputVolumeParams(const OutputVolumeParams &par)
Control the output volume.
virtual USReconstructInputData getSelectedFileData()
Return the currently selected input data.
static PropertyPtr create()
virtual XmlOptionFile getSettings()
Return the settings xml file where parameters are stored.
virtual QString getSelectedFilename() const
Get the currently selected filename.
virtual void newDataOnDisk(QString mhdFilename)
Helper class for xml files used to store ssc/cx data.
virtual PropertyPtr getParam(QString uid)
Return one of the standard parameters.