1 /*=========================================================================
4 Module: $RCSfile: gdcmSerieHeader.h,v $
6 Date: $Date: 2005/01/21 11:40:56 $
7 Version: $Revision: 1.7 $
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 //-----------------------------------------------------------------------------
31 * - This class should be used for a stack of 2D dicom images.
33 class GDCM_EXPORT SerieHeader
36 typedef std::list<File* > GdcmFileList;
41 /// \todo should return bool or throw error ?
42 void AddFileName(std::string const &filename);
43 void SetDirectory(std::string const &dir);
44 void OrderGdcmFileList();
46 /// \brief Gets the *coherent* File List
47 /// @return the *coherent* File List
48 /// Caller must call OrderGdcmFileList first
49 const GdcmFileList &GetGdcmFileList() { return CoherentGdcmFileList; }
52 bool ImagePositionPatientOrdering();
53 bool ImageNumberOrdering();
54 bool FileNameOrdering();
56 GdcmFileList CoherentGdcmFileList;
57 /// Ref to the current Serie Instance UID to avoid mixing two series
58 /// within the same directory
59 std::string CurrentSerieUID;
62 } // end namespace gdcm
64 //-----------------------------------------------------------------------------