fw4spl
ImageTypeSplitter.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/splitter/ImageTypeSplitter.hpp"
8 #include "fwDicomIOFilter/registry/macros.hpp"
9 
10 #include <dcmtk/dcmdata/dcdeftag.h>
11 
12 #include <string>
13 
14 fwDicomIOFilterRegisterMacro( ::fwDicomIOFilter::splitter::ImageTypeSplitter );
15 
16 namespace fwDicomIOFilter
17 {
18 namespace splitter
19 {
20 
21 const std::string ImageTypeSplitter::s_FILTER_NAME = "Image type splitter";
23  "Split instances according to image type tag.";
24 
25 //-----------------------------------------------------------------------------
26 
28 {
29  this->setTag(DCM_ImageType);
30 }
31 
32 //-----------------------------------------------------------------------------
33 
35 {
36 }
37 
38 //-----------------------------------------------------------------------------
39 
40 std::string ImageTypeSplitter::getName() const
41 {
43 }
44 
45 //-----------------------------------------------------------------------------
46 
48 {
50 }
51 
52 //-----------------------------------------------------------------------------
53 
55 {
56  return false;
57 }
58 
59 //-----------------------------------------------------------------------------
60 
61 } // namespace splitter
62 } // namespace fwDicomIOFilter
FWDICOMIOFILTER_API ImageTypeSplitter(::fwDicomIOFilter::IFilter::Key key)
Constructor.
virtual FWDICOMIOFILTER_API std::string getDescription() const override
Return the description of the filter.
fwDicomIOFilter contains filters used to pre-process images before reading.
Filter that uses the ImageType tag to split the instances.
virtual FWDICOMIOFILTER_API bool isConfigurationRequired() const override
Return true if a configuration is required.
Key class used to restrict access to Filter construction. See http://www.drdobbs.com/184402053.
virtual FWDICOMIOFILTER_API ~ImageTypeSplitter()
Destructor.
static const std::string s_FILTER_NAME
Filter name.
static const std::string s_FILTER_DESCRIPTION
Filter description.
void setTag(const DcmTagKey &_tag)
Tag used to sort instances.
virtual FWDICOMIOFILTER_API std::string getName() const override
Return the name of the filter.
Filter that uses a tag to split the instances.