fw4spl
NoFilter.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWDICOMIOFILTER_CUSTOM_NOFILTER_HPP__
8 #define __FWDICOMIOFILTER_CUSTOM_NOFILTER_HPP__
9 
10 #include "fwDicomIOFilter/config.hpp"
11 #include "fwDicomIOFilter/custom/ICustom.hpp"
12 
13 #include <fwMedData/DicomSeries.hpp>
14 
15 namespace fwDicomIOFilter
16 {
17 namespace custom
18 {
19 
23 class FWDICOMIOFILTER_CLASS_API NoFilter : public ICustom
24 {
25 public:
26  fwCoreClassDefinitionsWithFactoryMacro( (NoFilter)(ICustom), (()), ::fwDicomIOFilter::factory::New< NoFilter > );
27 
29  FWDICOMIOFILTER_API NoFilter(::fwDicomIOFilter::IFilter::Key key);
30 
32  FWDICOMIOFILTER_API virtual ~NoFilter();
33 
35  FWDICOMIOFILTER_API virtual DicomSeriesContainerType apply(
36  const ::fwMedData::DicomSeries::sptr& series, const ::fwLog::Logger::sptr& logger) const override;
37 
39  FWDICOMIOFILTER_API virtual std::string getName() const override;
40 
42  FWDICOMIOFILTER_API virtual std::string getDescription() const override;
43 
44 protected:
45 
47  static const std::string s_FILTER_NAME;
48 
50  static const std::string s_FILTER_DESCRIPTION;
51 };
52 
53 } // namespace custom
54 } // namespace fwDicomIOFilter
55 
56 #endif /* __FWDICOMIOFILTER_CUSTOM_NOFILTER_HPP__ */
Filter that doesn&#39;t apply any modification.
Definition: NoFilter.hpp:23
static const std::string s_FILTER_NAME
Filter name.
Definition: NoFilter.hpp:47
fwDicomIOFilter contains filters used to pre-process images before reading.
static const std::string s_FILTER_DESCRIPTION
Filter description.
Definition: NoFilter.hpp:50
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Key class used to restrict access to Filter construction. See http://www.drdobbs.com/184402053.
Base class for Dicom instance custom filter.
Definition: ICustom.hpp:23