GDCM  2.2.6
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 
22 namespace gdcm
23 {
43 {
44 public:
45  IPPSorter();
46 
47  // FIXME: I do not like public virtual function...
54  virtual bool Sort(std::vector<std::string> const & filenames);
55 
63  void SetComputeZSpacing(bool b) { ComputeZSpacing = b; }
67  void SetZSpacingTolerance(double tol) { ZTolerance = tol; }
68  double GetZSpacingTolerance() const { return ZTolerance; }
69 
79  void SetDirectionCosinesTolerance(double tol) { DirCosTolerance = tol; }
80  double GetDirectionCosinesTolerance() const { return DirCosTolerance; }
81 
85  void SetDropDuplicatePositions(bool b) { DropDuplicatePositions = b; }
86 
93  double GetZSpacing() const { return ZSpacing; }
94 
95 protected:
98  double ZSpacing;
99  double ZTolerance;
101 
102 private:
103  bool ComputeSpacing(std::vector<std::string> const & filenames);
104 };
105 
106 
107 } // end namespace gdcm
108 
109 #endif //GDCMIPPSORTER_H
Sorter General class to do sorting using a custom function You simply need to provide a function of t...
Definition: gdcmSorter.h:38
void SetDropDuplicatePositions(bool b)
Definition: gdcmIPPSorter.h:85
double GetZSpacing() const
Definition: gdcmIPPSorter.h:93
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
void SetZSpacingTolerance(double tol)
Definition: gdcmIPPSorter.h:67
double ZTolerance
Definition: gdcmIPPSorter.h:99
double GetZSpacingTolerance() const
Definition: gdcmIPPSorter.h:68
double ZSpacing
Definition: gdcmIPPSorter.h:98
bool ComputeZSpacing
Definition: gdcmIPPSorter.h:96
void SetComputeZSpacing(bool b)
Definition: gdcmIPPSorter.h:63
double GetDirectionCosinesTolerance() const
Definition: gdcmIPPSorter.h:80
void SetDirectionCosinesTolerance(double tol)
Definition: gdcmIPPSorter.h:79
bool DropDuplicatePositions
Definition: gdcmIPPSorter.h:97
IPPSorter Implement a simple Image Position (Patient) sorter, along the Image Orientation (Patient) d...
Definition: gdcmIPPSorter.h:42
double DirCosTolerance
Definition: gdcmIPPSorter.h:100

Generated on Sat Dec 21 2013 05:56:17 for GDCM by doxygen 1.8.5
SourceForge.net Logo