]> Creatis software - gdcm.git/commitdiff
Update comments
authorjpr <jpr>
Thu, 14 Apr 2005 15:13:39 +0000 (15:13 +0000)
committerjpr <jpr>
Thu, 14 Apr 2005 15:13:39 +0000 (15:13 +0000)
Example/PrintDicomDir.cxx
Example/exReadWriteFile.cxx

index 8f6e250915d7a498b807751d4c5d00ee1597ca45..329e47c8bca4501860343603d5af46cdffcbe268 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/01 10:34:59 $
-  Version:   $Revision: 1.19 $
+  Date:      $Date: 2005/04/14 15:13:39 $
+  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
@@ -52,12 +52,12 @@ int main(int argc, char* argv[])
 
    e1 = new gdcm::DicomDir( fileName );
 
-   e1->SetPrintLevel(2);
-   int detailLevel;
-   if (argc > 2)
-      detailLevel = atoi(argv[2]);   
-   else
-      detailLevel = 3;
+   // new style id useless, since it has no effect fore *reading* a DICOMDIR
+   // (only meaningfull when *creating* a DICOMDIR)
+
+   //e1 = new gdcm::DicomDir();
+   //e1->SetParseDir(false);
+   //e1->Load(  fileName );
 
    // Test if the DicomDir is readable
    if( !e1->IsReadable() )
@@ -70,6 +70,13 @@ int main(int argc, char* argv[])
       return 1;
    }
 
+   e1->SetPrintLevel(2);
+   int detailLevel;
+   if (argc > 2)
+      detailLevel = atoi(argv[2]);   
+   else
+      detailLevel = 3;
+
    // Test if the DicomDir contains any Patient
    pa = e1->GetFirstPatient();
    if ( pa  == 0)
index 8bfd830890175549d5a61d22461371f89b479e6c..180f2be9cea710d19d5f46c4c5aa622da709bc2d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exReadWriteFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/10 20:41:19 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2005/04/14 15:16:57 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -57,7 +57,7 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
    std::string output   = argv[2];
 
    // First, let's create a gdcm::File
-   // that will contain all the Dicom Field but the Pixels Element
+   // that will contain all the Dicom fields but the Pixels Element
 
    gdcm::File *f1= new gdcm::File( filename );
 
@@ -210,6 +210,9 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
              << "]" << std::endl;
    std::cout << "Frame ref UID :["   << f1->GetEntryValue(0x0020,0x0052)
              << "]" << std::endl;
+   // User wants to get info about the 'real world' vs image
+
 
    // ------ User wants to load the pixels---------------------------------