1 /*=========================================================================
4 Module: $RCSfile: gdcmSerieHeader.h,v $
6 Date: $Date: 2005/01/06 20:03:28 $
7 Version: $Revision: 1.3 $
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.html 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 GDCMSERIEHEADER_H
20 #define GDCMSERIEHEADER_H
22 #include "gdcmCommon.h"
28 //-----------------------------------------------------------------------------
30 * \defgroup SerieHeader
33 * - This class should be used for a stack of 2D dicom images.
34 * - For a multiframe dicom image better use directly SerieHeader
36 class GDCM_EXPORT SerieHeader
42 /// \todo should return bool or throw error ?
43 void AddFileName(std::string const &filename);
44 void AddGdcmFile(Header *file);
45 void SetDirectory(std::string const &dir);
46 void OrderGdcmFileList();
48 /// \warning Assumes all elements in the list have the same global infos.
49 /// Assumes the list is not empty.
50 Header *GetGdcmHeader() { return CoherentGdcmFileList.front(); }
52 typedef std::list<Header* > GdcmHeaderList;
54 /// \brief Gets the *coherent* File List
55 /// @return the *coherent* File List
56 const GdcmHeaderList &GetGdcmFileList() { return CoherentGdcmFileList; }
59 bool ImagePositionPatientOrdering();
60 bool ImageNumberOrdering();
61 bool FileNameOrdering();
63 GdcmHeaderList CoherentGdcmFileList;
66 } // end namespace gdcm
68 //-----------------------------------------------------------------------------