1 /*=========================================================================
4 Module: $RCSfile: gdcmSerieHeader.h,v $
6 Date: $Date: 2005/01/14 21:30:53 $
7 Version: $Revision: 1.6 $
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 * \ingroup 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
38 typedef std::list<Header* > GdcmHeaderList;
43 /// \todo should return bool or throw error ?
44 void AddFileName(std::string const &filename);
45 void SetDirectory(std::string const &dir);
46 void OrderGdcmFileList();
48 /// \brief Gets the *coherent* File List
49 /// @return the *coherent* File List
50 /// Caller must call OrderGdcmFileList first
51 const GdcmHeaderList &GetGdcmFileList() { return CoherentGdcmFileList; }
54 bool ImagePositionPatientOrdering();
55 bool ImageNumberOrdering();
56 bool FileNameOrdering();
58 GdcmHeaderList CoherentGdcmFileList;
59 /// Ref to the current Serie Instance UID to avoid mixing two series
60 /// within the same directory
61 std::string CurrentSerieUID;
64 } // end namespace gdcm
66 //-----------------------------------------------------------------------------