gdcmIPPSorter.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMIPPSORTER_H
#define GDCMIPPSORTER_H
#include "gdcmSorter.h"
#include <vector>
#include <string>
namespace gdcm
{
class GDCM_EXPORT IPPSorter : public Sorter
{
public:
IPPSorter();
// FIXME: I do not like public virtual function...
bool Sort(std::vector<std::string> const & filenames) override;
void SetComputeZSpacing(bool b) { ComputeZSpacing = b; }
void SetZSpacingTolerance(double tol) { ZTolerance = tol; }
double GetZSpacingTolerance() const { return ZTolerance; }
void SetDirectionCosinesTolerance(double tol) { DirCosTolerance = tol; }
double GetDirectionCosinesTolerance() const { return DirCosTolerance; }
void SetDropDuplicatePositions(bool b) { DropDuplicatePositions = b; }
double GetZSpacing() const { return ZSpacing; }
protected:
bool ComputeZSpacing;
bool DropDuplicatePositions;
double ZSpacing;
double ZTolerance;
double DirCosTolerance;
private:
GDCM_LEGACY(bool ComputeSpacing(std::vector<std::string> const & filenames))
};
} // end namespace gdcm
#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