fw4spl
ImagePositionPatientSorter.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_SORTER_IMAGEPOSITIONPATIENTSORTER_HPP__
8 #define __FWDICOMIOFILTER_SORTER_IMAGEPOSITIONPATIENTSORTER_HPP__
9 
10 #include "fwDicomIOFilter/config.hpp"
11 #include "fwDicomIOFilter/sorter/ISorter.hpp"
12 
13 #include <fwMedData/DicomSeries.hpp>
14 
15 namespace fwDicomIOFilter
16 {
17 namespace sorter
18 {
19 
24 class FWDICOMIOFILTER_CLASS_API ImagePositionPatientSorter : public ISorter
25 {
26 public:
28  (()), ::fwDicomIOFilter::factory::New< ImagePositionPatientSorter > );
29 
32 
34  FWDICOMIOFILTER_API virtual ~ImagePositionPatientSorter();
35 
37  FWDICOMIOFILTER_API virtual DicomSeriesContainerType apply(
38  const ::fwMedData::DicomSeries::sptr& series, const ::fwLog::Logger::sptr& logger) const override;
39 
41  FWDICOMIOFILTER_API virtual std::string getName() const override;
42 
44  FWDICOMIOFILTER_API virtual std::string getDescription() const override;
45 
46 protected:
48  static const std::string s_FILTER_NAME;
49 
51  static const std::string s_FILTER_DESCRIPTION;
52 
53 };
54 
55 } // namespace sorter
56 } // namespace fwDicomIOFilter
57 
58 #endif /* __FWDICOMIOFILTER_SORTER_IMAGEPOSITIONPATIENTSORTER_HPP__ */
Filter that uses the ImagepositionPatient tag to sort the instances. The position increases along the...
fwDicomIOFilter contains filters used to pre-process images before reading.
#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 sorter.
Definition: ISorter.hpp:23
static const std::string s_FILTER_DESCRIPTION
Filter description.