1 /*=========================================================================
4 Module: $RCSfile: gdcmHeaderHelper.h,v $
6 Date: $Date: 2004/06/25 20:48:25 $
7 Version: $Revision: 1.19 $
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 void AddFileName(std::string const & filename); //should return bool or throw error ?
39 void AddGdcmFile(gdcmHeader *file);
40 void SetDirectory(std::string const & dir);
41 void OrderGdcmFileList();
43 inline gdcmHeader *GetGdcmHeader()
45 // Assume all element in the list have the same global infos
46 // Assume the list is not empty
47 return CoherentGdcmFileList.front();
50 typedef std::list<gdcmHeader* > GdcmHeaderList;
52 * \brief Gets the *coherent* File List
53 * @return the *coherent* File List
55 const GdcmHeaderList& GetGdcmFileList()
57 return CoherentGdcmFileList;
61 bool ImagePositionPatientOrdering();
62 bool ImageNumberOrdering();
63 bool FileNameOrdering();
65 GdcmHeaderList CoherentGdcmFileList;
68 //-----------------------------------------------------------------------------