Medical Imaging Interaction Toolkit  2024.06.00
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
mitk::SortByImagePositionPatient
Sort by distance of image origin along image normal (for use in DICOMTagBasedSorter).
Definition: mitkSortByImagePositionPatient.h:33
mitk::DICOMDatasetAccess
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
Definition: mitkDICOMDatasetAccess.h:45
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::DICOMTagList
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:59
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
mitk::DICOMSortCriterion
A tag based sorting criterion for use in DICOMTagBasedSorter.
Definition: mitkDICOMSortCriterion.h:37
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKDICOM_EXPORT
#define MITKDICOM_EXPORT
Definition: MitkDICOMExports.h:15
mitkVector.h
mitkDICOMSortCriterion.h
possible
use the deprecated old MITK testing style If possible
Definition: TestsGeneral.dox:104