1 /*=========================================================================
4 Module: $RCSfile: gdcmHeaderHelper.h,v $
6 Date: $Date: 2004/06/21 21:51:01 $
7 Version: $Revision: 1.18 $
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 {
37 void AddFileName(std::string filename); //should return bool or throw error ?
38 void AddGdcmFile(gdcmHeader *file);
39 void SetDirectory(std::string dir);
40 void OrderGdcmFileList();
42 inline gdcmHeader *GetGdcmHeader()
44 //Assume all element in the list have the same global infos
45 return CoherentGdcmFileList.front();
48 std::list<gdcmHeader*>& GetGdcmFileList();
51 bool ImagePositionPatientOrdering();
52 bool ImageNumberOrdering();
53 bool FileNameOrdering();
55 std::list<gdcmHeader*> CoherentGdcmFileList;
58 //-----------------------------------------------------------------------------