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