1 /*=========================================================================
4 Module: $RCSfile: gdcmSerieHeader.h,v $
6 Date: $Date: 2004/11/26 10:55:04 $
7 Version: $Revision: 1.1 $
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 "gdcmHeader.h"
27 //-----------------------------------------------------------------------------
29 * \defgroup SerieHeader
32 * - This class should be used for a stack of 2D dicom images.
33 * - For a multiframe dicom image better use directly SerieHeader
35 class GDCM_EXPORT SerieHeader
41 /// \todo should return bool or throw error ?
42 void AddFileName(std::string const & filename);
43 void AddGdcmFile(Header *file);
44 void SetDirectory(std::string const & dir);
45 void OrderGdcmFileList();
47 /// \warning Assumes all elements in the list have the same global infos.
48 /// Assumes the list is not empty.
49 Header* GetGdcmHeader() { return CoherentGdcmFileList.front(); }
51 typedef std::list<Header* > GdcmHeaderList;
53 /// \brief Gets the *coherent* File List
54 /// @return the *coherent* File List
55 const GdcmHeaderList& GetGdcmFileList() { return CoherentGdcmFileList; }
58 bool ImagePositionPatientOrdering();
59 bool ImageNumberOrdering();
60 bool FileNameOrdering();
62 GdcmHeaderList CoherentGdcmFileList;
65 } // end namespace gdcm
67 //-----------------------------------------------------------------------------