# gdcmIPPSorter.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program: GDCM (Grassroots DICOM). A DICOM library
    00004   Module:  $URL$
    00005
    00006   Copyright (c) 2006-2009 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 {
    00035 class GDCM_EXPORT IPPSorter : public Sorter
    00036 {
    00037 public:
    00038   IPPSorter();
    00039   ~IPPSorter();
    00040
    00041   // FIXME: I do not like public virtual function...
    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 } // end namespace gdcm
    00083
    00084 #endif //__gdcmIPPSorter_h