fw4spl
InstanceNumberSorter.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_INSTANCENUMBERSORTER_HPP__
8 #define __FWDICOMIOFILTER_SORTER_INSTANCENUMBERSORTER_HPP__
9 
10 #include "fwDicomIOFilter/config.hpp"
11 #include "fwDicomIOFilter/sorter/TagValueSorter.hpp"
12 
13 #include <fwMedData/DicomSeries.hpp>
14 
15 namespace fwDicomIOFilter
16 {
17 namespace sorter
18 {
19 
23 class FWDICOMIOFILTER_CLASS_API InstanceNumberSorter : public ::fwDicomIOFilter::sorter::TagValueSorter
24 {
25 public:
27  (()), ::fwDicomIOFilter::factory::New< InstanceNumberSorter > );
28 
30  FWDICOMIOFILTER_API InstanceNumberSorter(::fwDicomIOFilter::IFilter::Key key);
31 
33  FWDICOMIOFILTER_API virtual ~InstanceNumberSorter();
34 
36  FWDICOMIOFILTER_API virtual std::string getName() const override;
37 
39  FWDICOMIOFILTER_API virtual std::string getDescription() const override;
40 
42  FWDICOMIOFILTER_API virtual bool isConfigurationRequired() const override;
43 
44 protected:
46  static const std::string s_FILTER_NAME;
47 
49  static const std::string s_FILTER_DESCRIPTION;
50 
51 };
52 
53 } // namespace sorter
54 } // namespace fwDicomIOFilter
55 
56 #endif /* __FWDICOMIOFILTER_SORTER_INSTANCENUMBERSORTER_HPP__ */
fwDicomIOFilter contains filters used to pre-process images before reading.
Filter that uses a tag to sort the instances.
Filter that uses the InstanceNumber tag to sort the instances.
#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.
static const std::string s_FILTER_DESCRIPTION
Filter description.
static const std::string s_FILTER_NAME
Filter name.