00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 Module: $URL$ 00005 00006 Copyright (c) 2006-2010 Mathieu Malaterre 00007 All rights reserved. 00008 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 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 { 00044 class GDCM_EXPORT IPPSorter : public Sorter 00045 { 00046 public: 00047 IPPSorter(); 00048 ~IPPSorter(); 00049 00050 // FIXME: I do not like public virtual function... 00057 virtual bool Sort(std::vector<std::string> const & filenames); 00058 00066 void SetComputeZSpacing(bool b) { ComputeZSpacing = b; } 00070 void SetZSpacingTolerance(double tol) { ZTolerance = tol; } 00071 double GetZSpacingTolerance() const { return ZTolerance; } 00072 00079 double GetZSpacing() const { return ZSpacing; } 00080 00081 protected: 00082 bool ComputeZSpacing; 00083 double ZSpacing; 00084 double ZTolerance; 00085 00086 private: 00087 bool ComputeSpacing(std::vector<std::string> const & filenames); 00088 }; 00089 00090 00091 } // end namespace gdcm 00092 00093 #endif //GDCMIPPSORTER_H