GDCM: gdcmIPPSorter.h Source File

GDCM 3.0.25

gdcmIPPSorter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMIPPSORTER_H
15#define GDCMIPPSORTER_H
16
17#include "gdcmSorter.h"
18
19#include <vector>
20#include <string>
21
22namespace gdcm
23{
43 class GDCM_EXPORT IPPSorter : public Sorter
44{
45public:
46 IPPSorter();
47
48 // FIXME: I do not like public virtual function...
55 bool Sort(std::vector<std::string> const & filenames) override;
56
64 void SetComputeZSpacing(bool b) { ComputeZSpacing = b; }
68 void SetZSpacingTolerance(double tol) { ZTolerance = tol; }
69 double GetZSpacingTolerance() const { return ZTolerance; }
70
80 void SetDirectionCosinesTolerance(double tol) { DirCosTolerance = tol; }
81 double GetDirectionCosinesTolerance() const { return DirCosTolerance; }
82
86 void SetDropDuplicatePositions(bool b) { DropDuplicatePositions = b; }
87
94 double GetZSpacing() const { return ZSpacing; }
95
96protected:
97 bool ComputeZSpacing;
98 bool DropDuplicatePositions;
99 double ZSpacing;
100 double ZTolerance;
101 double DirCosTolerance;
102
103private:
104 GDCM_LEGACY(bool ComputeSpacing(std::vector<std::string> const & filenames))
105};
106
107
108} // end namespace gdcm
109
110#endif //GDCMIPPSORTER_H
gdcm::IPPSorter::ComputeZSpacing
bool ComputeZSpacing
Definition gdcmIPPSorter.h:97
gdcm::IPPSorter::IPPSorter
IPPSorter()
gdcm::IPPSorter::SetDirectionCosinesTolerance
void SetDirectionCosinesTolerance(double tol)
Definition gdcmIPPSorter.h:80
gdcm::IPPSorter::SetComputeZSpacing
void SetComputeZSpacing(bool b)
Definition gdcmIPPSorter.h:64
gdcm::IPPSorter::Sort
bool Sort(std::vector< std::string > const &filenames) override
gdcm::IPPSorter::ZTolerance
double ZTolerance
Definition gdcmIPPSorter.h:100
gdcm::IPPSorter::DirCosTolerance
double DirCosTolerance
Definition gdcmIPPSorter.h:101
gdcm::IPPSorter::GetZSpacingTolerance
double GetZSpacingTolerance() const
Definition gdcmIPPSorter.h:69
gdcm::IPPSorter::GetDirectionCosinesTolerance
double GetDirectionCosinesTolerance() const
Definition gdcmIPPSorter.h:81
gdcm::IPPSorter::SetDropDuplicatePositions
void SetDropDuplicatePositions(bool b)
Definition gdcmIPPSorter.h:86
gdcm::IPPSorter::SetZSpacingTolerance
void SetZSpacingTolerance(double tol)
Definition gdcmIPPSorter.h:68
gdcm::IPPSorter::GetZSpacing
double GetZSpacing() const
Definition gdcmIPPSorter.h:94
gdcm::IPPSorter::ZSpacing
double ZSpacing
Definition gdcmIPPSorter.h:99
gdcm::IPPSorter::DropDuplicatePositions
bool DropDuplicatePositions
Definition gdcmIPPSorter.h:98
gdcm::Sorter::Sorter
Sorter()
GDCM_LEGACY
#define GDCM_LEGACY(method)
Definition gdcmLegacyMacro.h:44
gdcmSorter.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21