Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::DICOMDatasetSorter Class Referenceabstract

The sorting/splitting building-block of DICOMITKSeriesGDCMReader. More...

#include <mitkDICOMDatasetSorter.h>

Inheritance diagram for mitk::DICOMDatasetSorter:
Collaboration diagram for mitk::DICOMDatasetSorter:

Public Member Functions

 mitkClassMacroItkParent (DICOMDatasetSorter, itk::LightObject)
 
virtual DICOMTagList GetTagsOfInterest ()=0
 Return the tags of interest (to facilitate scanning) More...
 
void SetInput (DICOMDatasetList filenames)
 Input for sorting. More...
 
const DICOMDatasetListGetInput () const
 Input for sorting. More...
 
virtual void Sort ()=0
 Sort input datasets into one or multiple outputs. More...
 
unsigned int GetNumberOfOutputs () const
 Output of the sorting process. More...
 
const DICOMDatasetListGetOutput (unsigned int index) const
 Output of the sorting process. More...
 
DICOMDatasetListGetOutput (unsigned int index)
 Output of the sorting process. More...
 
IOVolumeSplitReason::ConstPointer GetSplitReason (unsigned int index) const
 
virtual void PrintConfiguration (std::ostream &os, const std::string &indent="") const =0
 Print configuration details into stream. More...
 
virtual bool operator== (const DICOMDatasetSorter &other) const =0
 

Protected Member Functions

 DICOMDatasetSorter ()
 
 ~DICOMDatasetSorter () override
 
 DICOMDatasetSorter (const DICOMDatasetSorter &other)
 
DICOMDatasetSorteroperator= (const DICOMDatasetSorter &other)
 
void ClearOutputs ()
 
void SetNumberOfOutputs (unsigned int numberOfOutputs)
 
void SetOutput (unsigned int index, const DICOMDatasetList &output, IOVolumeSplitReason::ConstPointer splitReason=nullptr)
 

Detailed Description

The sorting/splitting building-block of DICOMITKSeriesGDCMReader.

This class describes the interface of the sorting/splitting process described as part of DICOMITKSeriesGDCMReader::AnalyzeInputFiles() (see Loading strategy).

The procedure is simple:

  • take a list of input datasets (DICOMDatasetAccess)
  • sort them (to be defined by sub-classes, based on specific tags)
  • return the sorting result as outputs (the single input might be distributed into multiple outputs)

The simplest and most generic form of sorting is implemented in sub-class DICOMTagBasedSorter.

Definition at line 41 of file mitkDICOMDatasetSorter.h.

Constructor & Destructor Documentation

◆ DICOMDatasetSorter() [1/2]

mitk::DICOMDatasetSorter::DICOMDatasetSorter ( )
protected

◆ ~DICOMDatasetSorter()

mitk::DICOMDatasetSorter::~DICOMDatasetSorter ( )
overrideprotected

◆ DICOMDatasetSorter() [2/2]

mitk::DICOMDatasetSorter::DICOMDatasetSorter ( const DICOMDatasetSorter other)
protected

Member Function Documentation

◆ ClearOutputs()

void mitk::DICOMDatasetSorter::ClearOutputs ( )
protected

◆ GetInput()

const DICOMDatasetList& mitk::DICOMDatasetSorter::GetInput ( ) const

Input for sorting.

◆ GetNumberOfOutputs()

unsigned int mitk::DICOMDatasetSorter::GetNumberOfOutputs ( ) const

Output of the sorting process.

◆ GetOutput() [1/2]

DICOMDatasetList& mitk::DICOMDatasetSorter::GetOutput ( unsigned int  index)

Output of the sorting process.

◆ GetOutput() [2/2]

const DICOMDatasetList& mitk::DICOMDatasetSorter::GetOutput ( unsigned int  index) const

Output of the sorting process.

◆ GetSplitReason()

IOVolumeSplitReason::ConstPointer mitk::DICOMDatasetSorter::GetSplitReason ( unsigned int  index) const

◆ GetTagsOfInterest()

virtual DICOMTagList mitk::DICOMDatasetSorter::GetTagsOfInterest ( )
pure virtual

Return the tags of interest (to facilitate scanning)

Implemented in mitk::DICOMTagBasedSorter, mitk::EquiDistantBlocksSorter, and mitk::NormalDirectionConsistencySorter.

◆ mitkClassMacroItkParent()

mitk::DICOMDatasetSorter::mitkClassMacroItkParent ( DICOMDatasetSorter  ,
itk::LightObject   
)

◆ operator=()

DICOMDatasetSorter& mitk::DICOMDatasetSorter::operator= ( const DICOMDatasetSorter other)
protected

◆ operator==()

virtual bool mitk::DICOMDatasetSorter::operator== ( const DICOMDatasetSorter other) const
pure virtual

◆ PrintConfiguration()

virtual void mitk::DICOMDatasetSorter::PrintConfiguration ( std::ostream &  os,
const std::string &  indent = "" 
) const
pure virtual

Print configuration details into stream.

Implemented in mitk::DICOMTagBasedSorter, mitk::EquiDistantBlocksSorter, and mitk::NormalDirectionConsistencySorter.

◆ SetInput()

void mitk::DICOMDatasetSorter::SetInput ( DICOMDatasetList  filenames)

Input for sorting.

◆ SetNumberOfOutputs()

void mitk::DICOMDatasetSorter::SetNumberOfOutputs ( unsigned int  numberOfOutputs)
protected

◆ SetOutput()

void mitk::DICOMDatasetSorter::SetOutput ( unsigned int  index,
const DICOMDatasetList output,
IOVolumeSplitReason::ConstPointer  splitReason = nullptr 
)
protected

◆ Sort()

virtual void mitk::DICOMDatasetSorter::Sort ( )
pure virtual

Sort input datasets into one or multiple outputs.

Implemented in mitk::DICOMTagBasedSorter, mitk::EquiDistantBlocksSorter, and mitk::NormalDirectionConsistencySorter.


The documentation for this class was generated from the following file: