X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.h;h=dfcf896860b27bc3068b2df5de6e0836578bf715;hb=3842530aeeb5ab67f9d7b0f1754108fd176ee51a;hp=e4d57b33aa1d0f59ec806533a5a60e838fc8bfde;hpb=7b3410ee413b056e0e599a4800ea836c8b56152b;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.h b/src/gdcmDicomDirSerie.h index e4d57b33..dfcf8968 100644 --- a/src/gdcmDicomDirSerie.h +++ b/src/gdcmDicomDirSerie.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.h,v $ Language: C++ - Date: $Date: 2004/10/25 04:08:20 $ - Version: $Revision: 1.13 $ + Date: $Date: 2005/10/25 14:52:33 $ + Version: $Revision: 1.30 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,48 +20,136 @@ #define GDCMDICOMDIRSERIE_H #include "gdcmDicomDirObject.h" -#include "gdcmDicomDirImage.h" namespace gdcm { +class DicomDirImage; //----------------------------------------------------------------------------- typedef std::list ListDicomDirImage; //----------------------------------------------------------------------------- +/** + * \brief describes a SERIE within a within a STUDY + * (DicomDirStudy) of a given DICOMDIR (DicomDir) + */ class GDCM_EXPORT DicomDirSerie : public DicomDirObject { + gdcmTypeMacro(DicomDirSerie); + public: - DicomDirSerie( SQItem* s, TagDocEntryHT* ptagHT ); - DicomDirSerie( TagDocEntryHT* ptagHT ); + static DicomDirSerie *New(bool empty=false) {return new DicomDirSerie(empty);} - ~DicomDirSerie(); + void Print( std::ostream &os = std::cout, std::string const &indent = "" ); + void WriteContent( std::ofstream *fp, FileType t ); - void Print( std::ostream& os = std::cout ); - void Write( std::ofstream* fp, FileType t ); + // Image methods + DicomDirImage *NewImage(); + /// Add a new gdcm::DicomDirImage to the Serie + void AddImage(DicomDirImage *obj) { Images.push_back(obj); } + void ClearImage(); - /** - * \ingroup DicomDirSerie - * \brief returns the IMAGE chained List for this SERIE. - */ - ListDicomDirImage const & GetDicomDirImages() const { return Images; }; + DicomDirImage *GetFirstImage(); + DicomDirImage *GetNextImage(); - /** - * \ingroup DicomDirSerie - * \brief adds the passed IMAGE to the IMAGE chained List for this SERIE. - */ - void AddDicomDirImage(DicomDirImage *obj) { Images.push_back(obj); }; +protected: + DicomDirSerie(bool empty=false); + ~DicomDirSerie(); -/** - * \ingroup DicomDirSerie - * \brief TODO - */ - DicomDirImage* NewImage(); - private: -/** -* \brief chained list of DicomDirImages -*/ + ///chained list of DicomDirImages (to be exploited recursively) ListDicomDirImage Images; + /// iterator on the DicomDirImages of the current DicomDirSerie + ListDicomDirImage::iterator ItImage; + +/* +// for future use : + + /// chained list of DicomDirOverlays(single level) + ListDicomDirOverlay Overlays; + /// iterator on the DicomDirOverlays of the current DicomDirSerie + ListDicomDirOverlay::iterator ItOverlay; + + /// chained list of DicomDirModalityLuts(single level) + ListDicomDirModalityLut ModalityLuts; + /// iterator on the DicomDirModalityLuts of the current DicomDirSerie + ListDicomDirModalityLut::iterator ItModalityLut; + + /// chained list of DicomDirModalityLuts(single level) + ListDicomDirModalityLut ModalityLuts; + /// iterator on the DicomDirModalityLuts of the current DicomDirSerie + ListDicomDirModalityLut::iterator ItModalityLuts; + + /// chained list of DicomDirCurves(single level) + ListDicomDirCurve Curves; + /// iterator on the DicomDirCurves of the current DicomDirSerie + ListDicomDirCurve::iterator ItCurves; + + /// chained list of DicomDirStoredPrints(single level) + ListDicomDirStoredPrint StoredPrints; + /// iterator on the DicomDirStoredPrints of the current DicomDirSerie + ListDicomDirStoredPrint::iterator ItStoredPrints; + + /// chained list of DicomDirRtDoses(single level) + ListDicomDirRtDose RtDoses; + /// iterator on the DicomDirRtDoses of the current DicomDirSerie + ListDicomDirRtDose::iterator ItRtDoses; + + /// chained list of DicomDirRtStructureSets(single level) + ListDicomDirRtStructureSet RtStructureSets; + /// iterator on the DicomDirRtStructureSets of the current DicomDirSerie + ListDicomDirRtStructureSet::iterator ItRtStructureSets; + + /// chained list of DicomDirRtPlans(single level) + ListDicomDirRtPlan RtPlans; + /// iterator on the DicomDirRtPlans of the current DicomDirSerie + ListDicomDirPlan::iterator ItRtPlans; + + /// chained list of DicomDirRtTreatRecords(single level) + ListDicomDirRtTreatRecord RtTreatRecords; + /// iterator on the DicomDirRtTreatRecords of the current DicomDirSerie + ListDicomDirRtTreatRecord::iterator ItRtTreatRecords; + + /// chained list of DicomDirPresentations(single level) + ListDicomDirPresentation Presentations; + /// iterator on the DicomDirPresentations of the current DicomDirSerie + ListDicomDirPresentation::iterator ItPresentations; + + /// chained list of DicomDirWaveForms(single level) + ListDicomDirWaveForm WaveForms; + /// iterator on the DicomDirWaveForms of the current DicomDirSerie + ListDicomDirWaveForm::iterator ItWaveForms; + + /// chained list of DicomDirSrDocuments(single level) + ListDicomDirSrDocument SrDocuments; + /// iterator on the DicomDirSrDocuments of the current DicomDirSerie + ListDicomDirSrDocument::iterator ItSrDocuments; + + /// chained list of DicomDirKeyObjectDocs(single level) + ListDicomDirKeyObjectDoc KeyObjectDocs; + /// iterator on the DicomDirKeyObjectDocs of the current DicomDirSerie + ListDicomDirKeyObjectDoc::iterator ItKeyObjectDocs; + + /// chained list of DicomDirSpectroscopys(single level) + ListDicomDirSpectroscopy Spectroscopys; + /// iterator on the DicomDirSpectroscopys of the current DicomDirSerie + ListDicomDirSpectroscopy::iterator ItSpectroscopys; + + /// chained list of DicomDirRawDatas(single level) + ListDicomDirRawData RawDatas; + /// iterator on the DicomDirRawDatas of the current DicomDirSerie + ListDicomDirRawData::iterator ItRawDatas; + + /// chained list of DicomDirRegistrations(single level) + ListDicomDirRegistration Registrations; + /// iterator on the DicomDirRegistrations of the current DicomDirSerie + ListDicomDirRegistration::iterator ItRegistrations; + + /// chained list of DicomDirFiducials(single level) + ListDicomDirFiducial Fiducials; + /// iterator on the DicomDirFiducials of the current DicomDirSerie + ListDicomDirFiducial::iterator ItFiducials; +*/ + }; } // end namespace gdcm //-----------------------------------------------------------------------------