Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 (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 
13 #ifndef mitkSortByImagePositionPatient_h
14 #define mitkSortByImagePositionPatient_h
15 
16 #include "mitkDICOMSortCriterion.h"
17 
18 #include "mitkVector.h"
19 
20 namespace mitk
21 {
22 
34 {
35  public:
36 
38  mitkNewMacro1Param( SortByImagePositionPatient, DICOMSortCriterion::Pointer );
39 
40  DICOMTagList GetTagsOfInterest() const override;
41  bool IsLeftBeforeRight(const mitk::DICOMDatasetAccess* left, const mitk::DICOMDatasetAccess* right) const override;
42 
43  double NumericDistance(const mitk::DICOMDatasetAccess* from, const mitk::DICOMDatasetAccess* to) const override;
44 
45  void Print(std::ostream& os) const override;
46 
47  bool operator==(const DICOMSortCriterion& other) const override;
48 
49  protected:
50 
51  SortByImagePositionPatient( DICOMSortCriterion::Pointer secondaryCriterion = nullptr );
52  ~SortByImagePositionPatient() override;
53 
56 
57  double InternalNumericDistance(const mitk::DICOMDatasetAccess* from, const mitk::DICOMDatasetAccess* to, bool& possible) const;
58 
59  private:
60 };
61 
62 }
63 
64 #endif
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:59
#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:40
A tag based sorting criterion for use in DICOMTagBasedSorter.