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