]> Creatis software - gdcm.git/commitdiff
Add some commented out lines to prepare future version of 'Full DICOMDIR' stuff
authorjpr <jpr>
Mon, 7 Feb 2005 14:48:34 +0000 (14:48 +0000)
committerjpr <jpr>
Mon, 7 Feb 2005 14:48:34 +0000 (14:48 +0000)
src/gdcmDicomDir.cxx
src/gdcmDicomDir.h
src/gdcmDicomDirElement.cxx
src/gdcmDicomDirElement.h
src/gdcmDicomDirObject.h
src/gdcmDicomDirPatient.h
src/gdcmDicomDirSerie.h
src/gdcmDicomDirStudy.h
src/gdcmGlobal.cxx

index f25fefd786f195de9111b89d1e89b500ff3f659b..18bce3cf67b7b6a172fc7ea712b1a06c60c29bf1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/06 14:31:09 $
-  Version:   $Revision: 1.129 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.130 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -96,7 +96,7 @@
 // PATIENT                     STUDY
 // STUDY                       SERIES 
 // SERIES                      IMAGE
-// IMAGE
+// IMAGE                       /
 //
 // DicomDir::CreateDicomDir will have to be completed
 // Treelike structure management will have to be upgraded
index a7d6893daea6d031b6ad40d123d9c2756319c27a..0e7cdcf67d04c1c03bf95492addca61a5f86648a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/06 14:31:09 $
-  Version:   $Revision: 1.54 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.55 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -140,7 +140,7 @@ private:
    /// Pointer on *the* DicomDirObject 'DicomDirMeta Elements'
    DicomDirMeta* MetaElems;
 
-   /// Chained list of DicomDirPatient (to be exploited recursively) 
+   /// Chained list of DicomDirPatient (to be exploited hierarchicaly) 
    ListDicomDirPatient Patients;
    ListDicomDirPatient::iterator ItPatient;
 
index b526b5bcabe5dfabd4c5b875792224d311c3df7d..6850027251346654cb9c29ca76e5cd6d3f72bb6f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirElement.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/05 01:37:08 $
-  Version:   $Revision: 1.34 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.35 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -108,8 +108,9 @@ DicomDirElement::~DicomDirElement()
 //-----------------------------------------------------------------------------
 // Public
 /**
- * \brief Add an entry 
- * @param type type
+ * \brief Add an entry to one of the DicomDir Elements 
+ *        (Patient, Study, Serie, Image)
+ * @param type Element type (DD_PATIENT, DD_STUDY, DD_SERIE, DD_IMAGE) 
  * @param elem elem
  */
 bool DicomDirElement::AddEntry(DicomDirType type, Element const &elem)
@@ -137,6 +138,22 @@ bool DicomDirElement::AddEntry(DicomDirType type, Element const &elem)
    return true;
 }
 
+/**
+ * \brief Add an entry to one of the DicomDir Elements 
+ *        (Patient, Study, Serie, Image)
+ * @param type Element type (DD_PATIENT, DD_STUDY, DD_SERIE, DD_IMAGE) 
+ * @param group  Group number of the entry to be added
+ * @param elem Element number of the entry to be added
+ */
+void DicomDirElement::AddDicomDirElement(DicomDirType type,
+                                         uint16_t group, uint16_t elem)
+{
+   Element el;
+   el.Group = group;
+   el.Elem  = elem;
+   el.Value = "";
+   AddEntry(type, el);
+}
 //-----------------------------------------------------------------------------
 // Protected
 
index bffec0cc21b1bf8c52db56dd8814940a43a568ef..a214c47e622c29f4b2014ff5feb1fca7ba4f4a6f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirElement.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/06 14:31:09 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.27 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -89,6 +89,10 @@ public:
    // Public method to add an element
    bool AddEntry(DicomDirType type, Element const &elem);
 
+   // Only one instance of ddElem 
+   void AddDicomDirElement(DicomDirType type,
+                           uint16_t group, uint16_t elem);
+
 private:
    /// Elements chained list, related to the MetaElements of DICOMDIR
    ListDicomDirMetaElem    DicomDirMetaList;
index d98c93757e09fbfdbe4db478476ec52f28c43ff6..b2eb7f01f9a52bc57da3b01f288c9bc1646c1c24 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirObject.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/01 13:11:49 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.16 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -35,7 +35,7 @@ typedef std::list<DicomDirObject *> ListContent;
 //-----------------------------------------------------------------------------
 /**
  * \brief   Parent object for DicomDirPatient, DicomDirStudy, 
- *                          DicomDirSerie, DicomDirImage, of a DicomDir
+ *                            DicomDirSerie, DicomDirImage, of a DicomDir
  */
 class GDCM_EXPORT DicomDirObject : public SQItem
 {
index 6cdb3534fa8e7fbee8c404991a66fdd9d875a7c2..97331bf116180c8c0abd80e7da8ef09e79dbdc6b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPatient.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/04 16:51:36 $
-  Version:   $Revision: 1.25 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.26 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -54,7 +54,7 @@ public:
 
 private:
 
-   /// chained list of DicomDirStudy  (to be exploited recursively)
+   /// chained list of DicomDirStudy  (to be exploited hierarchicaly)
    ListDicomDirStudy Studies;
    /// iterator on the DicomDirStudies of the current DicomDirPatient
    ListDicomDirStudy::iterator ItStudy;
index 81e92bdda88a36b9a09618a9cff2483702337b9e..78658e0853a80025677d563951633c87865d026e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/04 16:51:36 $
-  Version:   $Revision: 1.27 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.28 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -56,6 +56,96 @@ private:
    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
 //-----------------------------------------------------------------------------
index b9972f5eff2bc2b8af4d31b05fd7d36383df2098..936a7f7cc8bdbdd034d1ebd14762134b79df94ea 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/06 14:31:09 $
-  Version:   $Revision: 1.25 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.26 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,6 +27,13 @@ class DicomDirSerie;
 //-----------------------------------------------------------------------------
 typedef std::list<DicomDirSerie *> ListDicomDirSerie;
 
+/*
+// For future use (Full DICOMDIR)
+typedef std::list<DicomDirVisit *> ListDicomDirVisit;
+typedef std::list<DicomDirResult *> ListDicomDirResult;
+typedef std::list<DicomDirStudyComponent *> ListDicomDirStudyComponent;
+
+*/
 //-----------------------------------------------------------------------------
 /**
  * \brief   describes a STUDY within a within a PATIENT
@@ -50,14 +57,46 @@ public:
    DicomDirSerie *GetFirstSerie();
    DicomDirSerie *GetNextSerie();
    DicomDirSerie *GetLastSerie();
+
+/*
+   // for future use (Full DICOMDIR)
+
+   DicomDirVisit *GetFirstVisit();
+   DicomDirVisit *GetNextVisit();
+
+   DicomDirResult *GetFirstResult();
+   DicomDirResult *GetNextResult();
+
+   DicomDirStudyComponent *GetFirstStudyComponent();
+   DicomDirStudyComponent *GetNextStudyComponent();
+
+*/
     
 private:
 
-   /// chained list of DicomDirSeries (to be exploited recursively)
+   /// chained list of DicomDirSeries (to be exploited hierarchicaly)
    ListDicomDirSerie Series;
    /// iterator on the DicomDirSeries of the current DicomDirStudy
    ListDicomDirSerie::iterator ItSerie;
 
+/*
+   // for future use (Full DICOMDIR)
+
+   /// chained list of DicomDirVisits(single level)
+   ListDicomDirVisit Visits;
+   /// iterator on the DicomDirVisits of the current DicomDirStudy
+   ListDicomDirVisit::iterator ItVisit;
+
+   /// chained list of DicomDirResults(single level)
+   ListDicomDirResult Results;
+   /// iterator on the DicomDirResults of the current DicomDirStudy
+   ListDicomDirResult::iterator ItResult;
+
+   /// chained list of DicomDirStudyComponents(single level)
+   ListDicomDirStudyComponent StudyComponents;
+   /// iterator on the DicomDirStudyComponents of the current DicomDirStudy
+   ListDicomDirStudyComponent::iterator ItStudyComponents;
+*/
 };
 } // end namespace gdcm
 
index 0e737e4475755d622f4e759b0ed0fbef4ce26067..fe6840c72fb9f841851ab4b7558d4503df450c95 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmGlobal.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/05 01:37:08 $
-  Version:   $Revision: 1.19 $
+  Date:      $Date: 2005/02/07 14:48:34 $
+  Version:   $Revision: 1.20 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -40,10 +40,10 @@ const std::string GDCM_NOTLOADED = "gdcm::NotLoaded";
 const std::string GDCM_UNREAD    = "gdcm::UnRead";
 
 //-----------------------------------------------------------------------------
-DictSet         *Global::Dicts  = (DictSet *)0;
-VR              *Global::ValRes     = (VR *)0;
-TS              *Global::TranSyn     = (TS *)0;
-DicomDirElement *Global::ddElem = (DicomDirElement *)0;
+DictSet         *Global::Dicts   = (DictSet *)0;
+VR              *Global::ValRes  = (VR *)0;
+TS              *Global::TranSyn = (TS *)0;
+DicomDirElement *Global::ddElem  = (DicomDirElement *)0;
 
 //-----------------------------------------------------------------------------
 /**