Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDicomSR_SliceGroupingResult.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include <mitkDicomSeriesReader.h>
18 
19 namespace mitk
20 {
23  {
24  return m_GroupedFiles;
25  }
26 
28  {
29  return m_UnsortedFiles;
30  }
31 
34  {
35  m_GroupedFiles.push_back(filename);
36  }
37 
39  {
40  m_UnsortedFiles.push_back(filename);
41  }
42 
44  {
45  m_UnsortedFiles.insert(m_UnsortedFiles.end(), filenames.begin(), filenames.end());
46  }
47 
50  {
51  assert(!m_GroupedFiles.empty());
52  m_UnsortedFiles.insert(m_UnsortedFiles.begin(), m_GroupedFiles.back());
53  m_GroupedFiles.pop_back();
54  }
55 
56 } // end namespace mitk
StringContainer GetBlockFilenames()
Grouping result, all same origin-to-origin distance w/o gaps.
void UndoPrematureGrouping()
Only meaningful for use by AnalyzeFileForITKImageSeriesReaderSpacingAssumption.
std::vector< std::string > StringContainer
Lists of filenames.
DataCollection - Class to facilitate loading/accessing structured data.
StringContainer GetUnsortedFilenames()
Remaining files, which could not be grouped.
static const std::string filename
void AddFileToSortedBlock(const std::string &filename)
Meant for internal use by AnalyzeFileForITKImageSeriesReaderSpacingAssumption only.
bool ContainsGantryTilt()
Wheter or not the grouped result contain a gantry tilt.
void FlagGantryTilt()
Meant for internal use by AnalyzeFileForITKImageSeriesReaderSpacingAssumption only.
void AddFileToUnsortedBlock(const std::string &filename)
Meant for internal use by AnalyzeFileForITKImageSeriesReaderSpacingAssumption only.