gdcmIPPSorter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __gdcmIPPSorter_h
00016 #define __gdcmIPPSorter_h
00017
00018 #include "gdcmSorter.h"
00019
00020 #include <vector>
00021 #include <string>
00022
00023 namespace gdcm
00024 {
00035 class GDCM_EXPORT IPPSorter : public Sorter
00036 {
00037 public:
00038 IPPSorter();
00039 ~IPPSorter();
00040
00041
00048 virtual bool Sort(std::vector<std::string> const & filenames);
00049
00057 void SetComputeZSpacing(bool b) { ComputeZSpacing = b; }
00061 void SetZSpacingTolerance(double tol) { ZTolerance = tol; }
00062 double GetZSpacingTolerance() const { return ZTolerance; }
00063
00070 double GetZSpacing() const { return ZSpacing; }
00071
00072 protected:
00073 bool ComputeZSpacing;
00074 double ZSpacing;
00075 double ZTolerance;
00076
00077 private:
00078 bool ComputeSpacing(std::vector<std::string> const & filenames);
00079 };
00080
00081
00082 }
00083
00084 #endif //__gdcmIPPSorter_h