Medical Imaging Interaction Toolkit  2018.4.99-b585543d
Medical Imaging Interaction Toolkit
mitkThreeDnTDICOMSeriesReader.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkThreeDnTDICOMSeriesReader_h
14 #define mitkThreeDnTDICOMSeriesReader_h
15 
17 
18 #include "MitkDICOMReaderExports.h"
19 
20 namespace mitk
21 {
22 
42 {
43  public:
44 
47  itkNewMacro( ThreeDnTDICOMSeriesReader );
49 
51  void SetGroup3DandT(bool on);
52  bool GetGroup3DandT() const;
53 
54  itkBooleanMacro(OnlyCondenseSameSeries);
55  itkSetMacro(OnlyCondenseSameSeries, bool);
56  itkGetConstMacro(OnlyCondenseSameSeries, bool);
57 
58  // void AllocateOutputImages();
60  bool LoadImages() override;
61 
62  bool operator==(const DICOMFileReader& other) const override;
63 
64  static bool GetDefaultGroup3DandT()
65  {
66  return m_DefaultGroup3DandT;
67  }
69  {
70  return m_DefaultOnlyCondenseSameSeries;
71  }
72 
73  protected:
74 
75  ThreeDnTDICOMSeriesReader(unsigned int decimalPlacesForOrientation = Superclass::m_DefaultDecimalPlacesForOrientation);
76  ~ThreeDnTDICOMSeriesReader() override;
77 
80 
86  SortingBlockList Condense3DBlocks(SortingBlockList&) override;
87 
88  bool LoadMitkImageForImageBlockDescriptor(DICOMImageBlockDescriptor& block) const override;
89 
92 
93  const static bool m_DefaultGroup3DandT = true;
94  const static bool m_DefaultOnlyCondenseSameSeries = true;
95 };
96 
97 }
98 
99 #endif
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
Flexible reader based on itk::ImageSeriesReader and GDCM, for single-slice modalities like CT...
#define MITKDICOMREADER_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Output descriptor for DICOMFileReader.
Extends DICOMITKSeriesGDCMReader by sorting/grouping into 3D+t image blocks.
std::vector< DICOMDatasetAccessingImageFrameList > SortingBlockList
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:158
Interface for DICOM readers that produce mitk::Images.