[Dcmlib] New Feature : loading a file or a DicomDir

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Fri Jul 8 11:52:02 CEST 2005


Hi!

Just to be the first to agree my las sggestion about new features :


    * Because the gdcm::DicomDir::Load() method may be used either for
      loading an already made DICOMDIR file or for parsing all the dicom
      files with a given root directory we syntaxically separated the
      operations:
      For loading an already made DICOMDIR file, use :

           gdcm::DicomDir *d = new gdcm::DicomDir();
           d->SetFileName(fileName);
           d->Load( );		  
			  

      For parsing all the dicom files with a given root directory, use :

           gdcm::DicomDir *d = new gdcm::DicomDir();
           d->SetDirectoryName(dirName);
           d->Load( );				  
           

      *Don't* use any longer old deprecated style:
      gdcm::DicomDir *d = new gdcm::DicomDir();
      d->SetParseDir(true); // or d->SetParseDir(false);
      d->Load( fileName );

    * User is now allowed to tell gdcm::Document constructor he doesn't
      want to deal with SeqEntry (every time it's possible)
      and/or he doesn't want to deal with Shadow groups (every time it's
      possible)
      or he doesn't want to deal with SeqEntry that belong to a Shadow
      group (every time it's possible)
      use :

            gdcm::File *f = new gdcm::File();
                  f->SetLoadMode(NO_SEQ);            | depending on what
                  f->SetLoadMode(NO_SHADOW);         | you want *not* 
                  f->SetLoadMode(NO_SEQ | NO_SHADOW);| to load from the
                  f->SetLoadMode(NO_SHADOWSEQ);      | target file				
            f->SetFileName(fileName);
            f->Load( );
				

      *Don't* use any longer old deprecated style:
      gdcm::File *f = new gdcm::File(fileName);

    * User is now allowed to tell gdcm::DicomDir constructor he doesn't
      want to deal with SeqEntry he doesn't want to deal with SeqEntry
      (every time it's possible)
      and/or he doesn't want to deal with Shadow groups (every time it's
      possible)
      or he doesn't want to deal with SeqEntry that belong to a Shadow
      group (every time it's possible)
      when he parses all the Dicom files within a given directory use :

            gdcm::DicomDir *f = new gdcm::DicomDir();
                  f->SetLoadMode(NO_SEQ);            | depending on what
                  f->SetLoadMode(NO_SHADOW);>        | you want *not* 
                  f->SetLoadMode(NO_SEQ | NO_SHADOW);| to load from the files
                  f->SetLoadMode(NO_SHADOWSEQ);      | within the root directory 				
            f->SetDirectoryName(rootDirectoryName);
            f->Load( );
				

      *Don't* use any longer old deprecated style:
      gdcm::DicomDir *dcmdir = new gdcm::DicomDir(dirName, true);


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20050708/001daaf5/attachment.html>


More information about the Dcmlib mailing list