CustusX  18.04
An IGT application
cxFilterTimedAlgorithm.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 CXFILTERTIMEDALGORITHM_H
13 #define CXFILTERTIMEDALGORITHM_H
14 
15 #include "cxResourceFilterExport.h"
16 
18 
19 namespace cx
20 {
21 typedef boost::shared_ptr<class Filter> FilterPtr;
22 
30 class cxResourceFilter_EXPORT FilterTimedAlgorithm : public ThreadedTimedAlgorithm<bool>
31 {
32  Q_OBJECT
33 
34 public:
35  FilterTimedAlgorithm(FilterPtr filter);
36  virtual ~FilterTimedAlgorithm();
37 
38  FilterPtr getFilter();
39 
40 protected slots:
41  virtual void preProcessingSlot();
42  virtual void postProcessingSlot();
43 
44 private:
45  virtual bool calculate();
46 
47  // QString mOutputBasePath;
48  // std::vector<DataPtr> mInput;
49  // std::vector<DataPtr> mOutput;
50  // QDomElement mOptions;
51  FilterPtr mFilter;
52 };
53 typedef boost::shared_ptr<class FilterTimedAlgorithm> FilterTimedAlgorithmPtr;
54 
55 
56 
57 } // namespace cx
58 
59 #endif // CXFILTERTIMEDALGORITHM_H
Base class for algorithms that wants to thread and time their execution. T is the return type of the ...
boost::shared_ptr< class Filter > FilterPtr
boost::shared_ptr< class FilterTimedAlgorithm > FilterTimedAlgorithmPtr
Namespace for all CustusX production code.