fw4spl
NoFilter.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
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 #include "fwDicomIOFilter/custom/NoFilter.hpp"
8 #include "fwDicomIOFilter/exceptions/FilterFailure.hpp"
9 #include "fwDicomIOFilter/registry/macros.hpp"
10 
11 fwDicomIOFilterRegisterMacro( ::fwDicomIOFilter::custom::NoFilter );
12 
13 namespace fwDicomIOFilter
14 {
15 namespace custom
16 {
17 
18 const std::string NoFilter::s_FILTER_NAME = "No filter";
19 const std::string NoFilter::s_FILTER_DESCRIPTION = "No filter.";
20 
21 //-----------------------------------------------------------------------------
22 
24 {
25 }
26 
27 //-----------------------------------------------------------------------------
28 
30 {
31 }
32 
33 //-----------------------------------------------------------------------------
34 
35 std::string NoFilter::getName() const
36 {
38 }
39 
40 //-----------------------------------------------------------------------------
41 
42 std::string NoFilter::getDescription() const
43 {
45 }
46 
47 //-----------------------------------------------------------------------------
48 
49 NoFilter::DicomSeriesContainerType NoFilter::apply(
50  const ::fwMedData::DicomSeries::sptr& series, const ::fwLog::Logger::sptr& logger)
51 const
52 {
53  DicomSeriesContainerType result;
54  result.push_back(series);
55  return result;
56 }
57 
58 } // namespace custom
59 } // namespace fwDicomIOFilter
Filter that doesn'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
FWDICOMIOFILTER_API NoFilter(::fwDicomIOFilter::IFilter::Key key)
Constructor.
Definition: NoFilter.cpp:23
virtual FWDICOMIOFILTER_API std::string getDescription() const override
Return the description of the filter.
Definition: NoFilter.cpp:42
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
virtual FWDICOMIOFILTER_API ~NoFilter()
Destructor.
Definition: NoFilter.cpp:29
virtual FWDICOMIOFILTER_API DicomSeriesContainerType apply(const ::fwMedData::DicomSeries::sptr &series, const ::fwLog::Logger::sptr &logger) const override
Override.
Definition: NoFilter.cpp:49
virtual FWDICOMIOFILTER_API std::string getName() const override
Return the name of the filter.
Definition: NoFilter.cpp:35