Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSortByImagePositionPatient.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,
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 #ifndef mitkSortByImagePositionPatient_h
18 #define mitkSortByImagePositionPatient_h
19 
20 #include "mitkDICOMSortCriterion.h"
21 
22 #include "mitkVector.h"
23 
24 namespace mitk
25 {
26 
38 {
39  public:
40 
43 
44  virtual DICOMTagList GetTagsOfInterest() const override;
45  virtual bool IsLeftBeforeRight(const mitk::DICOMDatasetAccess* left, const mitk::DICOMDatasetAccess* right) const override;
46 
47  virtual double NumericDistance(const mitk::DICOMDatasetAccess* from, const mitk::DICOMDatasetAccess* to) const override;
48 
49  virtual void Print(std::ostream& os) const override;
50 
51  virtual bool operator==(const DICOMSortCriterion& other) const override;
52 
53  protected:
54 
55  SortByImagePositionPatient( DICOMSortCriterion::Pointer secondaryCriterion = nullptr );
56  virtual ~SortByImagePositionPatient();
57 
60 
61  double InternalNumericDistance(const mitk::DICOMDatasetAccess* from, const mitk::DICOMDatasetAccess* to, bool& possible) const;
62 
63  private:
64 };
65 
66 }
67 
68 #endif
itk::SmartPointer< Self > Pointer
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:64
#define MITKDICOMREADER_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
use the deprecated old MITK testing style If possible
Sort by distance of image origin along image normal (for use in DICOMTagBasedSorter).
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
A tag based sorting criterion for use in DICOMTagBasedSorter.