Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 
14 
15 namespace mitk
16 {
19  {
20  return m_GroupedFiles;
21  }
22 
24  {
25  return m_UnsortedFiles;
26  }
27 
30  {
31  m_GroupedFiles.push_back(filename);
32  }
33 
35  {
36  m_UnsortedFiles.push_back(filename);
37  }
38 
40  {
41  m_UnsortedFiles.insert(m_UnsortedFiles.end(), filenames.begin(), filenames.end());
42  }
43 
46  {
47  assert(!m_GroupedFiles.empty());
48  m_UnsortedFiles.insert(m_UnsortedFiles.begin(), m_GroupedFiles.back());
49  m_GroupedFiles.pop_back();
50  }
51 
52 } // 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.
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.