1 /*=========================================================================
4 Module: $RCSfile: gdcmHeaderHelper.h,v $
6 Date: $Date: 2004/07/02 13:55:28 $
7 Version: $Revision: 1.20 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef GDCMHEADERHELPER_H
20 #define GDCMHEADERHELPER_H
22 #include "gdcmHeader.h"
24 //-----------------------------------------------------------------------------
26 * \defgroup gdcmSerieHeader
29 * - This class should be used for a stack of 2D dicom images.
30 * - For a multiframe dicom image better use directly gdcmHeaderHelper
32 class GDCM_EXPORT gdcmSerieHeader
38 /// \todo should return bool or throw error ?
39 void AddFileName(std::string const & filename);
40 void AddGdcmFile(gdcmHeader *file);
41 void SetDirectory(std::string const & dir);
42 void OrderGdcmFileList();
44 /// \warning Assumes all elements in the list have the same global infos.
45 /// Assumes the list is not empty.
46 gdcmHeader* GetGdcmHeader() { return CoherentGdcmFileList.front(); }
48 typedef std::list<gdcmHeader* > GdcmHeaderList;
50 /// \brief Gets the *coherent* File List
51 /// @return the *coherent* File List
52 const GdcmHeaderList& GetGdcmFileList() { return CoherentGdcmFileList; }
55 bool ImagePositionPatientOrdering();
56 bool ImageNumberOrdering();
57 bool FileNameOrdering();
59 GdcmHeaderList CoherentGdcmFileList;
62 //-----------------------------------------------------------------------------