Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::SortByImagePositionPatient Class Reference

Sort by distance of image origin along image normal (for use in DICOMTagBasedSorter). More...

#include <mitkSortByImagePositionPatient.h>

Inheritance diagram for mitk::SortByImagePositionPatient:
Collaboration diagram for mitk::SortByImagePositionPatient:

Public Member Functions

 mitkClassMacro (SortByImagePositionPatient, DICOMSortCriterion)
 
 mitkNewMacro1Param (SortByImagePositionPatient, DICOMSortCriterion::Pointer)
 
virtual DICOMTagList GetTagsOfInterest () const override
 Tags used for comparison. More...
 
virtual bool IsLeftBeforeRight (const mitk::DICOMDatasetAccess *left, const mitk::DICOMDatasetAccess *right) const override
 Answer the sorting question. More...
 
virtual double NumericDistance (const mitk::DICOMDatasetAccess *from, const mitk::DICOMDatasetAccess *to) const override
 Calculate a distance between two datasets. This ansers the question of consecutive datasets. More...
 
virtual void Print (std::ostream &os) const override
 brief describe this class in given stream. More...
 
virtual bool operator== (const DICOMSortCriterion &other) const override
 
- Public Member Functions inherited from mitk::DICOMSortCriterion
 mitkClassMacroItkParent (DICOMSortCriterion, itk::LightObject)
 
DICOMTagList GetAllTagsOfInterest () const
 Tags used for comparison (includes seconary criteria). More...
 
DICOMSortCriterion::ConstPointer GetSecondaryCriterion () const
 The fallback criterion. More...
 

Protected Member Functions

 SortByImagePositionPatient (DICOMSortCriterion::Pointer secondaryCriterion=nullptr)
 
virtual ~SortByImagePositionPatient ()
 
 SortByImagePositionPatient (const SortByImagePositionPatient &other)
 
SortByImagePositionPatientoperator= (const SortByImagePositionPatient &other)
 
double InternalNumericDistance (const mitk::DICOMDatasetAccess *from, const mitk::DICOMDatasetAccess *to, bool &possible) const
 
- Protected Member Functions inherited from mitk::DICOMSortCriterion
 DICOMSortCriterion (DICOMSortCriterion::Pointer secondaryCriterion)
 
virtual ~DICOMSortCriterion ()
 
bool NextLevelIsLeftBeforeRight (const mitk::DICOMDatasetAccess *left, const mitk::DICOMDatasetAccess *right) const
 
 DICOMSortCriterion (const DICOMSortCriterion &other)
 
DICOMSortCriterionoperator= (const DICOMSortCriterion &other)
 

Additional Inherited Members

- Protected Attributes inherited from mitk::DICOMSortCriterion
DICOMSortCriterion::Pointer m_SecondaryCriterion
 

Detailed Description

Sort by distance of image origin along image normal (for use in DICOMTagBasedSorter).

To compare two datasets, their distance to the world origin is calculated. This distance is calculated along the image normals because we do not know the image orientation in advance, to any of the three coordinates could be identical for all datasets.

Note
This class assumes that the datasets have identical orientations!

Definition at line 37 of file mitkSortByImagePositionPatient.h.

Constructor & Destructor Documentation

mitk::SortByImagePositionPatient::SortByImagePositionPatient ( DICOMSortCriterion::Pointer  secondaryCriterion = nullptr)
protected

Definition at line 21 of file mitkSortByImagePositionPatient.cpp.

mitk::SortByImagePositionPatient::~SortByImagePositionPatient ( )
protectedvirtual

Definition at line 27 of file mitkSortByImagePositionPatient.cpp.

mitk::SortByImagePositionPatient::SortByImagePositionPatient ( const SortByImagePositionPatient other)
protected

Definition at line 32 of file mitkSortByImagePositionPatient.cpp.

Member Function Documentation

mitk::DICOMTagList mitk::SortByImagePositionPatient::GetTagsOfInterest ( ) const
overridevirtual

Tags used for comparison.

Implements mitk::DICOMSortCriterion.

Definition at line 64 of file mitkSortByImagePositionPatient.cpp.

double mitk::SortByImagePositionPatient::InternalNumericDistance ( const mitk::DICOMDatasetAccess from,
const mitk::DICOMDatasetAccess to,
bool &  possible 
) const
protected
bool mitk::SortByImagePositionPatient::IsLeftBeforeRight ( const mitk::DICOMDatasetAccess left,
const mitk::DICOMDatasetAccess right 
) const
overridevirtual

Answer the sorting question.

Implements mitk::DICOMSortCriterion.

Definition at line 75 of file mitkSortByImagePositionPatient.cpp.

References possible.

mitk::SortByImagePositionPatient::mitkClassMacro ( SortByImagePositionPatient  ,
DICOMSortCriterion   
)
mitk::SortByImagePositionPatient::mitkNewMacro1Param ( SortByImagePositionPatient  ,
DICOMSortCriterion::Pointer   
)
double mitk::SortByImagePositionPatient::NumericDistance ( const mitk::DICOMDatasetAccess from,
const mitk::DICOMDatasetAccess to 
) const
overridevirtual

Calculate a distance between two datasets. This ansers the question of consecutive datasets.

Implements mitk::DICOMSortCriterion.

Definition at line 163 of file mitkSortByImagePositionPatient.cpp.

References possible.

mitk::SortByImagePositionPatient & mitk::SortByImagePositionPatient::operator= ( const SortByImagePositionPatient other)
protected
bool mitk::SortByImagePositionPatient::operator== ( const DICOMSortCriterion other) const
overridevirtual

Implements mitk::DICOMSortCriterion.

Definition at line 50 of file mitkSortByImagePositionPatient.cpp.

void mitk::SortByImagePositionPatient::Print ( std::ostream &  os) const
overridevirtual

brief describe this class in given stream.

Implements mitk::DICOMSortCriterion.

Definition at line 57 of file mitkSortByImagePositionPatient.cpp.


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