]> Creatis software - gdcm.git/commitdiff
* FIX : src/gdcmDicomDir.cxx : make windows compilable
authorregrain <regrain>
Mon, 22 Mar 2004 12:06:28 +0000 (12:06 +0000)
committerregrain <regrain>
Mon, 22 Mar 2004 12:06:28 +0000 (12:06 +0000)
     * FIX : gdcmPython/gdcm.i : change gdcmStudy to gdcmDicomDirStudy and
             gdcmSerie to gdcmDicomDirSerie
     -- BeNours

12 files changed:
ChangeLog
gdcmPython/__init__.py
gdcmPython/gdcm.i
gdcmPython/win32/_vtkGdcm.dsp
gdcmPython/win32/gdcmpyembedded.dsp
src/gdcmDicomDir.cxx
src/gdcmObject.cxx
src/gdcmObject.h
src/gdcmParser.cxx
src/gdcmUtil.cxx
src/win32/gdcmdll.dsp
vtk/win32/vtkgdcm.dsp

index 8b3c710f346ccc727a48f943082088f299a6f6ae..7679be8ebe126b77b05be31d896568bc2869f9cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,50 +1,54 @@
+2004-03-22 Benoit Regrain
+     * FIX : src/gdcmDicomDir.cxx : make windows compilable
+     * FIX : gdcmPython/gdcm.i : change gdcmStudy to gdcmDicomDirStudy and
+             gdcmSerie to gdcmDicomDirSerie
+
 2004-03-19  Jean-Pierre Roux
-     * ENH Now the tree-like structure describing a DICOMDIR comming from 
-           an already existing DICOMDIR file is consistent with 
-           the home-made tree-like structure build ex-nihilo 
-           or build from the files held (recursively) in a Directory 
-           functions gdcmDicomDir::CheckBoundaries() 
-                   gdcmObject::SetBoundaries() added
-
-2004-03-17  Jean-Pierre Roux 
-     * REM (Eric Boix bug) : removal of meaningless  
-                             gdcmDicomDirImage::NewImage function.       
+     * ENH Now the tree-like structure describing a DICOMDIR comming from
+           an already existing DICOMDIR file is consistent with
+           the home-made tree-like structure build ex-nihilo
+           or build from the files held (recursively) in a Directory
+           functions gdcmDicomDir::CheckBoundaries()
+           gdcmObject::SetBoundaries() added
+
+2004-03-17  Jean-Pierre Roux
+     * REM (Eric Boix bug) : removal of meaningless
+                             gdcmDicomDirImage::NewImage function.
      * FIX now file names and directory name are written properly in the
-                      DICOMDIR
+           DICOMDIR
      * FIX now gdcmDicomDir constructor may be call without any trick
-                     about the name
+           about the name
 
-2004-03-16  Eric Boix <Eric.Boix@creatis.insa-lyon.fr> 
+2004-03-16  Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
      * FIX (JPR bug) : src/gdcmDicomDirImage.cxx added missing definition
-       of gdcmDicomDirImage::NewImage as empty function.
-
+                       of gdcmDicomDirImage::NewImage as empty function.
 
 2004-02-28  Jean-Pierre Roux
      *ENH add gdcmDicomDir:NewPatient
           add gdcmDicomDirPatient:NewStudy
           add gdcmDicomDirStudy:NewSerie
           add gdcmDicomDirSerie:NewImage
-         to allow making gdcDicomDir object.
+          to allow making gdcDicomDir object.
      *ADD PrintDicomDir executable that uses gdcmDicomDir tree-like structure
           (as opposite to the gdcmHeader chained list)
 
 2004-02-11 Benoit Regrain
      * FIX : memory leaks and the set of ArgDelete methods in gdcmDicomDir
-       when using from python
+             when using from python
 
 2004-02-10 Benoit Regrain
      * FIX : bug fix in the gdcmDirList for the recursivity in directories
      * FIX : in gdcmDicomDir when the directory is empty
      * ENH : add callback and methods to get the progression of dicomDir
-       directory parsing
+             directory parsing
 
 2004-02-06 Jean-Pierre Roux
      * ENH : - now gdcmDicomDir::CreateDicomDir() returns also the meta elements
              - GDCM_META added to gdcmDicomDirType
-            - class gdcmMeta created
+             - class gdcmMeta created
      * ENH : - A brief summary is now displayed at the beginning of
-           'testDicomDir' to help disaster magnitude estimation
-     * REM  : Now useless Test/explDICOMDIR.cxx
+             'testDicomDir' to help disaster magnitude estimation
+     * REM : Now useless Test/explDICOMDIR.cxx
 
 2004-02-05 Benoit Regrain
      * ENH : add methods in gdcmObject to get the hash table or the list of
      * FIX : Final solution (?) for icone embedded images
      * FIX : dicomVR.dic Overlay group is not *only* 6000, but 60xxx
              (see http://medical.nema.org/dicom/2003/03_06PU.PDF)
-            add groups 6002, 6004, 6006, to allow 'clean' parsing of
-            gdcmData/gdcm-MR-SIEMENS-16.acr1
-     * ENH  add gdcmData/checkWriteExplicit.sh gdcmData/checkWriteImplicit.sh
-            to make full checking easier
-            
+             add groups 6002, 6004, 6006, to allow 'clean' parsing of
+             gdcmData/gdcm-MR-SIEMENS-16.acr1
+     * ENH add gdcmData/checkWriteExplicit.sh gdcmData/checkWriteImplicit.sh
+           to make full checking easier
+        
 2004-02-04 Benoit Regrain
      * FIX : WriteEntries : coding style & logic in parameters
      * FIX : Set the elements to create the DicomDir in a dictionary file
         
 2004-02-02 Jean-Pierre Roux
      * FIX : gdcmWrite : equal_range() for multimap doesn't return a 'second' 
-                 iterator on last
+             iterator on last
              of the last synonym :-(
      * FIX : gdcmWrite::WriteBase : method stops if Pixels not yet Read (except 
-                 for DICOMDIR ;-)
+             for DICOMDIR ;-)
      * ENH gdcmData/checkWrite.sh :modif for full check of Explicit VR writting
      * FIX taking into account the possible 7fe0,0010 multiplicity        
      * FIX add GRPixel,NumPixel,countGrPixel (gdcmParser protected members)
            to allow removal of references to 7fe0,0010, to deal with
-          ACR-NEMA images, when 0028,0200 is meaningfull
+      ACR-NEMA images, when 0028,0200 is meaningfull
 
 2004-01-31 Jean-Pierre Roux
      * FIX gdcmParser::WriteEntries : when a VR is tagged as 'Unknown'
-                       no longer writes 'Un' on disk
-     * FIX  SQ elements with actual length are now dealt with corectly
+           no longer writes 'Un' on disk
+     * FIX SQ elements with actual length are now dealt with corectly
      * FIX gdcmFile::WriteBase make the difference, for color images, between
-                     the length (for Palette expanded omages) 
-                    and Raw Length (non expanded image + Palette)
-      * FIX  Dicts/dicomV3.dic : removal of 'CTX' (context dependant) VR
-                     (that broke Write). Replaced by UL.
-                    Aware user will reload the field if he 
-                    thinks it's necesssary
-                      
+           the length (for Palette expanded images)
+           and Raw Length (non expanded image + Palette)
+     * FIX Dicts/dicomV3.dic : removal of 'CTX' (context dependant) VR
+           (that broke Write). Replaced by UL.
+           Aware user will reload the field if he 
+           thinks it's necesssary
+             
 2004-01-30 Jean-Pierre Roux
      * gdcmParser::CheckSwap() now defaults the filetype to ACR 
        when 'dirty Acr' is found, to be compliant with the new 
 2004-01-27 Jean-Pierre Roux
      * gdcmParser constructor has a new boolean param,'ignore_shadow', 
              to allow skipping the shadow elements, to save memory space.
-            The TRUE value for this param has to be used 
-            with a FALSE value for the 'enable_sequence' param.
-            ('public elements' may be embedded in 'shadow Sequences')
+        The TRUE value for this param has to be used 
+        with a FALSE value for the 'enable_sequence' param.
+        ('public elements' may be embedded in 'shadow Sequences')
      * gdcmHeader methods now deal with 'embedded icones images' in the header
              (even when an 'icone image sequence' is announced by the 
-            element (0x0088,0x0200), but there is NO icone at all ...
-            
+        element (0x0088,0x0200), but there is NO icone at all ...
+        
      * gdcmHeader sometimes Image Location value doesn't follow  
              the supposed processor endianity (see gdcmData/cr172241.dcm).
-            Fixed
-                    
+             Fixed
+
      * gdcmHeader add the method
              IterHT  GetHeaderEntrySameNumber(grPixel,numPixel);
-            to get *all* the Header Entries with the same tag.
-            GetHeaderEntrySameName is probabely *useless* 
-            (no meaning : Name is *not* an identifier within the Dictionnary)
+        to get *all* the Header Entries with the same tag.
+        GetHeaderEntrySameName is probabely *useless* 
+        (no meaning : Name is *not* an identifier within the Dictionnary)
 
 2004-01-26 Benoit Regrain
      * Bug fix in the print of hexadecimal representations. Remove long fields 
      * Add the update of header entries using the shadow library
 
 2004-01-19 Benoit Regrain
-    * removal of file gdcmHeader2.cxx
-    * split class gdcmHeader into gdcmParser and gdcmHeader, with gdcmHeader
-      inheriting from gdcmParser. This split is to prepare the integration
-      of dicom dir parsing
-    * bug fix under python
+     * removal of file gdcmHeader2.cxx
+     * split class gdcmHeader into gdcmParser and gdcmHeader, with gdcmHeader
+       inheriting from gdcmParser. This split is to prepare the integration
+       of dicom dir parsing
+     * bug fix under python
 
 2004-01-16 Jean-Pierre Roux
-    * removal of class gdcmHeaderEntrySet
-    * removal of files gdcmHeaderEntrySet.cxx, gdcmHeaderEntrySet.h
-    * add file gdcmHeader2.cxx 
-    * add method gdcmHeader::SetPrintLevel (for PrintHeader)
+     * removal of class gdcmHeaderEntrySet
+     * removal of files gdcmHeaderEntrySet.cxx, gdcmHeaderEntrySet.h
+     * add file gdcmHeader2.cxx
+     * add method gdcmHeader::SetPrintLevel (for PrintHeader)
 
 2004-01-15 Benoit Regrain
      * src/gdcmDicSet.[h|cxx] : add virtual entries to have a reference of
 2003-11-12 Jean-Pierre Roux
      *ENH  gdcmHeader constructor has one more parameter (default value : false)
            that allows the user to 'go inside' the SeQuences only
-          if he wants to.
-          gdcmElValSet:Print takes it into account
+           if he wants to.
+           gdcmElValSet:Print takes it into account
 
 2003-11-12  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
      *ENH: Update gdcmPython/CMakeLists
      *FIX: (gdcmElValSet) char 'tag' was overiding private members (VC++)
 
 2003-11-10 Jean-Pierre Roux
-      *FIX : gdcmHeader::LoadElements is now based
-             on the ListTag listElem member,
-             not longer on the TagElValueHT tagHt member
-      *ENH : PrintPubElVal shows (temporarily) both results,
-             with the tagHt member and the listElem member.
-            (it's easier to 'see' the problems when using Printheader)
-
-      *FIX : old private member LgrElem is now splitted into
-             ReadLength   : Length actually found on disk (updated only
-                           if bug fixing is necessary), for internal
-                           use only
-            UsableLength : Updated by FixFoundLength, to fix a bug
-                           or to allow Parser going on.
-            Will allow to re-write a kosher header when a SeQuence
-            with a length (not 0000) is found
-      Warning : gdcmFile::Write still uses the TagHt (not ListElem)
-               because gdcmElValSet::Add does not update ListElem
-               (to be written)
+     *FIX : gdcmHeader::LoadElements is now based
+            on the ListTag listElem member,
+            not longer on the TagElValueHT tagHt member
+     *ENH : PrintPubElVal shows (temporarily) both results,
+            with the tagHt member and the listElem member.
+            (it's easier to 'see' the problems when using Printheader)
+     *FIX : old private member LgrElem is now splitted into
+            ReadLength   : Length actually found on disk (updated only
+                      if bug fixing is necessary), for internal use only
+            UsableLength : Updated by FixFoundLength, to fix a bug
+                           or to allow Parser going on.
+            Will allow to re-write a kosher header when a SeQuence
+            with a length (not 0000) is found
+            Warning : gdcmFile::Write still uses the TagHt (not ListElem)
+                      because gdcmElValSet::Add does not update ListElem
+                      (to be written)
 
 2003-11-07 Jean-Pierre Roux
      *FIX misstyping in Transfert Syntax name table
      *ENH gdcmHeader::FixFoundLength now allow to 'go inside' tge SeQuences
           when they have an actual length (not 0000 nor FFFFF)
-         (Nobody should care of it, but DICOMDIR explorers)
+     (Nobody should care of it, but DICOMDIR explorers)
 
 2003-11-06  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
      *ENH: vtkgdcmViewer now works with LUT dicom (OT-PAL-face ...)
 2003-11-03 Jean-Pierre Roux
      * add gdcmHeaderHelper::GetNumberOfScalarComponentsRaw()
            to be used by aware (vtk) users that want to manage
-          LUT (and no to turn the PALETTE image into an RGB pixels one)
+           LUT (and no to turn the PALETTE image into an RGB pixels one)
      * GetPixelType now returns 8U for 24 Bits images
-                    (vtkGdcmReader compliant)             
-          
+                    (vtkGdcmReader compliant)           
+      
 2003-10-31 Jean-Pierre Roux
      * Removal of *all* gdcmData images and add them again
        in order to loose the 'history' of un-anonymised images
        
 2003-10-31 Jean-Pierre Roux
      *RMV : removal of useless jBitsInJsample.h 
-           for both 8 and 12 Bits JPEG Lossy Libraries
-          
+            for both 8 and 12 Bits JPEG Lossy Libraries
+      
 2003-10-31 Jean-Pierre Roux
      * ENH : Add the functions gdcmFile::GetImageDataRaw 
                                gdcmFile::GetImageDataIntoVectorRaw
              that act as GetImageData and GetImageDataIntoVector
-            except the making of an RGB Plane from Gray Plane + LUT
-            Intended to aware (vtk) users who know how to manage 
-            such an image : 
-            After gdcmHeader :
-               GetLUTRGBA return a R,G,B,A LUT if any
-               lgrTotaleRaw gives the 'Raw' length
-               GetImageDataRaw returns the gray Plane    
+             except the making of an RGB Plane from Gray Plane + LUT
+             Intended to aware (vtk) users who know how to manage
+             such an image :
+             After gdcmHeader :
+              GetLUTRGBA return a R,G,B,A LUT if any
+              lgrTotaleRaw gives the 'Raw' length
+              GetImageDataRaw returns the gray Plane
      * FIX : no more dirty trick for 'Segmented xxx Palette Color Lookup' images
              (They stay Grey, just like with other Dicom viewers :-(
 
 2003-10-30 Jean-Pierre Roux
      * FIX : a VC++ intended syntax modif broke the 12/12 Bytes expanding
-            
+             
 2003-10-29  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
      *ENH: Can be used like this '$vtkgdcmViewer *.dcm' with *.dcm 
-          being coherents dicom files.
+           being coherents dicom files.
      
 2003-10-29  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
      *FIX: DOH ! Forgot about windo$e users, they couldn't read lossless jpeg,
             
 2003-10-29 Jean-Pierre Roux
       * adding  gdcmHeader::GetLUTRGBA
-               returns a 4 * 256 Bytes Reg/Green/Blue/Alpha vtk compliant LUT
-              --> Mathieu, the modif u're waiting for is not yet committed
+        returns a 4 * 256 Bytes Reg/Green/Blue/Alpha vtk compliant LUT
+          --> Mathieu, the modif u're waiting for is not yet committed
       * removal of now useless GetLUTRed,GetLUTGreen,GetLUTBlue,GetLUTRGB
-      
+
 2003-10-27 Jean-Pierre Roux
-      * adding some xmedcon breaker files (courtesy of Loïc Boussel) 
- .              00191113.dcm DermaColorLossLess.dcm 
-               MxTwinLossLess.dcm RadBWLossLess.dcm       
-       * ENH: For version prior to vtkImageViewer2 -r 1.19
-       * FIX: avoid pb with xmedcon-breaker CT McTwin Elscint images
-           
+      * adding some xmedcon breaker files (courtesy of Loïc Boussel)
+        00191113.dcm DermaColorLossLess.dcm
+        MxTwinLossLess.dcm RadBWLossLess.dcm
+      * ENH: For version prior to vtkImageViewer2 -r 1.19
+      * FIX: avoid pb with xmedcon-breaker CT McTwin Elscint images
+
 2003-10-27  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
       * Removal of ido stuff in CMakeLists.txt
                                                
       * ENH: CMakeLists.txt now generate 'pygdcm.so' instead of 'libpygdcm.so' 
       * FIX: More pragma disable fro VC++, 
              I don't think I break something as it is also disable in VTK/ITK. 
-            But it fasten debug compilation time.
+        But it fasten debug compilation time.
             
 2003-10-23 Jean-Pierre Roux
       * gdcm now deals with 16 Bits Run Length Encoded images
          one for the high Bytes, the other for low Bytes)
 
 2003-10-22 Jean-Pierre Roux
-     * Now CheckRead takes into account :
-            the bugged 'Leonardo' Siemens images
-            the XA images, sent thru the burning VPRO station
-     * add I9000001.dcm, a GE dlx XA image, thru the VEPRO burning station
-     (breaks DicomWorks)
+      * Now CheckRead takes into account :
+         - the bugged 'Leonardo' Siemens images
+         - the XA images, sent thru the burning VPRO station
+      * add I9000001.dcm, a GE dlx XA image, thru the VEPRO burning station
+       (breaks DicomWorks)
 
 2003-10-22  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
       * FIX: When copying a Makefile.am to CMakeLists.txt 
              one should remove the '\'
-            
+        
 2003-10-22 Jean-Pierre Roux
       * in gdcmData adding a bugged 'Leonardo' Siemens image 
         (wrong lengths in header)
 2003-10-20  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
       * ENH: vtkgdcmViewer now autoscale color/window level on start-up, 
         no need to press 'r' now.
-       
+   
 2003-10-20  Jean-Pierre Roux
-      * upgrade of checkRead.sh checkWrite.sh according 
+      * upgrade of checkRead.sh checkWrite.sh according
         to new Jpeg Lossless decompressor
-       * add US.3405.1.dcm, a genuine RGB medical file ...
-       * add gdcm-ACR-LibIDO.acr, unnormalized Rectangular LibIDO format image
-       * add CLIP0001-Sequoia-U11.dcm, US 'Clip', from SEQUOIA machine, 
+      * add US.3405.1.dcm, a genuine RGB medical file ...
+      * add gdcm-ACR-LibIDO.acr, unnormalized Rectangular LibIDO format image
+      * add CLIP0001-Sequoia-U11.dcm, US 'Clip', from SEQUOIA machine,
                                                   UNIT 11, Hop Cardio              
 2003-10-15  Jean-Pierre Roux
       * general anonymisation in gdcmData
       * adding the 'color files' from
-         http://www.leadtools.com/SDK/Medical/DICOM/ltdc19.htm
+        http://www.leadtools.com/SDK/Medical/DICOM/ltdc19.htm
       * adding some well knowed bugged-header images
       * adding checkRead.sk, checkReadColor.sh, checkWrite.sh,
-         waiting for their inclusion in Python testsuite
+        waiting for their inclusion in Python testsuite
 
 2003-10-15  Jean-Pierre Roux
     * gdcmHeader::gdcmHeader(const char *InFilename, bool exception_on_error)
              is not gdcm Readable
      * ENH : One more JPEG LossLess type "JPEG Baseline (Process 14)" 
              is now decoded.
-            
+        
 2003-10-10  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
      * FIX: CMake generate now documentation
      * ENH: out of source doc build !
      * FIX: make install should be ok now on ùnix plateform
      * FIX: PATH to dictionary was wrong (missing /)
      * ENH: OpenFile, return true if the file looks like an ACR or DICOM file 
-                    
+                     
 2003-10-09  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
      * vtkGdcmReader is now able to read rgb dicom file.
      * src/gdcmHeaderHelper : GetNumberOfScalarComponents()
 2003-10-06  Emanuel Ollart
      * FIX : compilation process wad broken.
              Changed gdcmViewer_sources to vtkgdcmViewer_sources
-            
+        
 2003-10-06  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
      * change gdcmViewer -> vtkgdcmViewer
      * change GetXSpacing and GetYSpacing "%f\\%" is parsed backward
 2003-10-03 Jean-Pierre Roux
       * ENH :gdcmHeaderHelper::GetNumberOfScalarComponents() added, 
              to allow displaying RGB images (not only by affim ;-)
-            
+        
 2003-10-03  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
       * vtkGdcmReader is now able to read rgb dicom file.
       * src/gdcmHeaderHelper : GetNumberOfScalarComponents()
       * src/*.cxx removed pragma thingies to src/gdcmCommon.h
         Two reasons: - clear things
                      - third parties acces gdcm through header files, so won't
-                     suffer anymore VC++ complains
+                       suffer anymore VC++ complains
+
 2003-09-30  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
       * add argv[1] in testvtkGdcmReader.cxx
       * removed leaks
-                    
+
 2003-09-24 Jean-Pierre Roux
       * The lines are now eigthy characters long.for 
         gdcmHeader.cxx gdcmHeaderHelper.cxx gdcmParse.cxx 
 
 2003-09-08  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
       * src/gdcmHeaderHelper.[h cxx]: added new class that provide an
-      interpretation to data given by gdcmHeader. For instance there are
-      heuristics to get informations (look at different places).
+        interpretation to data given by gdcmHeader. For instance there are
+        heuristics to get informations (look at different places).
       * it also include a specific class: gdcmSerieHeaderHelper devoted to
-      sorting DICOM images based on different strategies.
+        sorting DICOM images based on different strategies.
       * modified Makefiles accordingly.
 
 2003-09-05  Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
         Notes on valgrind:
           - maximum info is obtained with a command of the form:
             valgrind --leak-check=yes --leak-resolution=high --num-callers=40
-                   --show-reachable=yes PrintHeader
+                     --show-reachable=yes PrintHeader
           - the remaining reachable blocks seem to come from the STL
             allocation scheme through the usage of map and list. It looks
             like this memory cannot be freed but it is not a memory leak
index fcfd024ebb1ab4d60ffcd38b4989ed42cedf12a1..8a73b05ba4637b4c804b0f0ca876d3e38343a54a 100644 (file)
@@ -71,12 +71,18 @@ except ImportError,e:
    raise ImportError, "gdcm extension not imported."
 
 ### Expose only the necessary stuff
-gdcmGlobal       = gdcm.gdcmGlobal
-gdcmDictSet      = gdcm.gdcmDictSet
-gdcmDicomDir     = gdcm.gdcmDicomDir
-gdcmHeader       = gdcm.gdcmHeader
-gdcmHeaderHelper = gdcm.gdcmHeaderHelper
-gdcmFile         = gdcm.gdcmFile
+gdcmGlobal          = gdcm.gdcmGlobal
+gdcmDictSet         = gdcm.gdcmDictSet
+gdcmDicomDir        = gdcm.gdcmDicomDir
+gdcmHeader          = gdcm.gdcmHeader
+gdcmHeaderHelper    = gdcm.gdcmHeaderHelper
+gdcmFile            = gdcm.gdcmFile
+
+gdcmDicomDirMeta    = gdcm.gdcmDicomDirMeta
+gdcmDicomDirPatient = gdcm.gdcmDicomDirPatient
+gdcmDicomDirStudy   = gdcm.gdcmDicomDirStudy
+gdcmDicomDirSerie   = gdcm.gdcmDicomDirSerie
+gdcmDicomDirImage   = gdcm.gdcmDicomDirImage
 
 def GetPubDictEntryNames():
    return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictEntryNames()
index 9c04acd1aba52351f4c2fc275ac15f67b2615c00..d267799810185f76017bf22bf8271ce6e1bca3d1 100644 (file)
@@ -30,7 +30,7 @@ void EatLeadingAndTrailingSpaces(string & s) {
                s.erase(s.length()-1, 1);
 }
 
-void vtkPythonVoidFunc(void *arg)
+void gdcmPythonVoidFunc(void *arg)
 {
   PyObject *arglist, *result;
   PyObject *func = (PyObject *)arg;
@@ -55,7 +55,7 @@ void vtkPythonVoidFunc(void *arg)
     }
 }
 
-void vtkPythonVoidFuncArgDelete(void *arg)
+void gdcmPythonVoidFuncArgDelete(void *arg)
 {
   PyObject *func = (PyObject *)arg;
   if (func)
@@ -181,7 +181,7 @@ extern gdcmGlobal gdcmGlob;
        }
 }
 
-%typemap(out) ListStudy & {
+%typemap(out) ListDicomDirStudy & {
        PyObject* NewItem = (PyObject*)0;
        $result = PyList_New(0); // The result of this typemap
 
@@ -192,7 +192,7 @@ extern gdcmGlobal gdcmGlob;
        }
 }
 
-%typemap(out) ListSerie & {
+%typemap(out) ListDicomDirSerie & {
        PyObject* NewItem = (PyObject*)0;
        $result = PyList_New(0); // The result of this typemap
 
@@ -220,9 +220,9 @@ extern gdcmGlobal gdcmGlob;
        if($input!=Py_None)
        {
                Py_INCREF($input);
-               $1=vtkPythonVoidFunc;
+               $1=gdcmPythonVoidFunc;
                $2=$input;
-               $3=vtkPythonVoidFuncArgDelete;
+               $3=gdcmPythonVoidFuncArgDelete;
        }
        else
        {
index 9f01c3f568dfe6ce95ae6e44662fed8e93b6e35e..887985f49c32b8daf52239a37e46228e0244a3f0 100644 (file)
@@ -66,6 +66,26 @@ SOURCE=..\..\src\gdcmDicomDirElement.cxx
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\..\src\gdcmDicomDirImage.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirMeta.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirPatient.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirSerie.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirStudy.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=..\..\src\gdcmDict.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -102,10 +122,6 @@ SOURCE=..\..\src\gdcmHeaderHelper.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmImage.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmJpeg.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -118,10 +134,6 @@ SOURCE=..\..\src\gdcmJpeg2000.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmMeta.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmObject.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -134,22 +146,10 @@ SOURCE=..\..\src\gdcmParser.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmPatient.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmRLE.cxx\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmSerie.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmStudy.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmTS.cxx\r
 # End Source File\r
 # Begin Source File\r
index 3ed70645beea3b8ca1426545fef0bac7e57e6f53..bddedc8784fddbcdade39720e88eba84a65da6f5 100644 (file)
@@ -53,7 +53,7 @@ LINK32=link.exe
 # Begin Special Build Tool\r
 ProjDir=.\r
 SOURCE="$(InputPath)"\r
-PostBuild_Cmds=move                      $(ProjDir)\gdcm.py                      $(ProjDir)\..\ \r
+PostBuild_Cmds=move                       $(ProjDir)\gdcm.py                       $(ProjDir)\..\ \r
 # End Special Build Tool\r
 # Begin Target\r
 \r
@@ -88,6 +88,26 @@ SOURCE=..\..\src\gdcmDicomDirElement.cxx
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\..\src\gdcmDicomDirImage.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirMeta.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirPatient.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirSerie.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirStudy.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=..\..\src\gdcmDict.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -124,10 +144,6 @@ SOURCE=..\..\src\gdcmHeaderHelper.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmImage.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmJpeg.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -140,10 +156,6 @@ SOURCE=..\..\src\gdcmJpeg2000.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmMeta.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmObject.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -156,22 +168,10 @@ SOURCE=..\..\src\gdcmParser.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmPatient.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmRLE.cxx\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmSerie.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmStudy.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmTS.cxx\r
 # End Source File\r
 # Begin Source File\r
index e6a3d042d78bba5dcd72c1535b3e151386959c37..b109d1efc8fa3882097be3e7e190ed9b701861cc 100644 (file)
 
 #include <sys/types.h>
 #include <errno.h>
-#include <unistd.h>
+
+#ifdef _MSC_VER 
+   #include <direct.h>
+#else
+   #include <unistd.h>
+#endif
 
 //-----------------------------------------------------------------------------
 //  For full DICOMDIR description, see:
@@ -65,7 +70,11 @@ gdcmDicomDir::gdcmDicomDir(const char *Name, bool parseDir,
       if(strlen(Name)==1 && Name[0]=='.') { // user passed '.' as Name
                                             // we get current directory name
          char*dummy=(char*) malloc(1000);   // TODO : check with Windoze // JPR
+#ifdef _MSC_VER
+         _getcwd(dummy,(size_t)1000);
+#else
          getcwd(dummy,(size_t)1000);
+#endif
          SetFileName(dummy); // will be converted into a string
          free(dummy);        // no longer needed   
       }
@@ -412,8 +421,6 @@ void gdcmDicomDir::CreateDicomDirChainedList(std::string path)
 
 void gdcmDicomDir::CheckBoundaries()
 {   
-
-cout <<"entree ds CheckBoundaries " <<endl;
    ListDicomDirPatient::iterator  itPatient;
    ListDicomDirStudy::iterator    itStudy;
    ListDicomDirSerie::iterator    itSerie;
index 5bbe38bbdf4a7ebaaafcfb784e283f41def10835..1d43c4e7709406e436de07e81aaf4319399bcb96 100644 (file)
@@ -127,7 +127,6 @@ void gdcmObject::ResetBoundaries(int flag) {
  bool gdcmObject::SetEntryByNumber(std::string val,guint16 group, 
                                                   guint16 element) {
 
-   gdcmHeaderEntry *a;
    for(ListTag::iterator i=beginObj;;++i) { 
       if ( (*i)->GetGroup() == 0xfffe && (*i)->GetElement() == 0xe000 ) 
          continue;
index f482355324f973daedafdc784a1239f931c51575..9d2eca19d2c5d06265ebd3afa6850648af364593 100644 (file)
@@ -57,18 +57,6 @@ public:
     ListTag::iterator fin  (void) 
        { return(endObj);  }
 
-/**
- * \ingroup gdcmObject
- * \brief   Sets the iterator on the 'new' last Header Entry (i.e Dicom Element),
- *          inside the DICOMDIR chained list,
- *          related to this 'Object' 
- * \warning : NOT end user intended function
- * \todo find a trick to make this function useless.
-* @return
- */
-    ListTag::iterator SetEndObj(ListTag::iterator newEnd) 
-       { endObj=newEnd;  }       
-   
 protected:
 
 void FillObject(std::list<gdcmElement> elemList);
index b01eea12660e16c6af8a3605f199e9fb54e6b7b3..2d75ea704cf8b0c540c07f7b6c3a1684b335724d 100644 (file)
@@ -2,8 +2,8 @@
 //-----------------------------------------------------------------------------
 #include "gdcmParser.h"
 #include "gdcmUtil.h"
+
 #include <errno.h>
-#include <unistd.h>
 
 // For nthos:
 #ifdef _MSC_VER
index 349988731553713eca6126d0726d41ddbbd5bda8..5b5243de71dfc5e0cce0752de859131744817082 100644 (file)
@@ -208,8 +208,10 @@ std::string GetName(std::string &fullName)
         break;
       deb = i;
   }    
+
   std::string lastName;
-  for (int i=deb;i<fin+1;i++)
-    lastName=lastName+fullName.c_str()[i];
+  for (int j=deb;j<fin+1;j++)
+    lastName=lastName+fullName.c_str()[j];
+
   return(lastName);
 } 
index a1bff1e23d810ea7f0ecfefc209f040385d3647c..707bd8e6c410c533703931a4132123885563a30a 100644 (file)
@@ -58,7 +58,7 @@ LINK32=link.exe
 # Begin Special Build Tool\r
 SOURCE="$(InputPath)"\r
 PostBuild_Desc=Copy for test\r
-PostBuild_Cmds=copy                      ..\..\lib\gdcmdll.dll                      ..\..\gdcmPython\                          copy                      ..\..\lib\gdcmdll.dll                      ..\..\test\                        copy                   Release\gdcmdll.lib                   ..\..\lib\ \r
+PostBuild_Cmds=copy                       ..\..\lib\gdcmdll.dll                       ..\..\gdcmPython\                        copy                       ..\..\lib\gdcmdll.dll                       ..\..\test\                      copy                    Release\gdcmdll.lib                    ..\..\lib\ \r
 # End Special Build Tool\r
 \r
 !ELSEIF  "$(CFG)" == "gdcmdll - Win32 Debug"\r
@@ -90,7 +90,7 @@ LINK32=link.exe
 # Begin Special Build Tool\r
 SOURCE="$(InputPath)"\r
 PostBuild_Desc=Copy for test\r
-PostBuild_Cmds=copy                      ..\..\lib\gdcmdll.dll                      ..\..\gdcmPython\                          copy                      ..\..\lib\gdcmdll.dll                      ..\..\test\                        copy                   Debug\gdcmdll.lib                   ..\..\lib\ \r
+PostBuild_Cmds=copy                       ..\..\lib\gdcmdll.dll                       ..\..\gdcmPython\                        copy                       ..\..\lib\gdcmdll.dll                       ..\..\test\                      copy                    Debug\gdcmdll.lib                    ..\..\lib\ \r
 # End Special Build Tool\r
 \r
 !ENDIF \r
@@ -112,6 +112,26 @@ SOURCE=..\gdcmDicomDirElement.cxx
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\gdcmDicomDirImage.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\gdcmDicomDirMeta.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\gdcmDicomDirPatient.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\gdcmDicomDirSerie.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\gdcmDicomDirStudy.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=..\gdcmDict.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -148,10 +168,6 @@ SOURCE=..\gdcmHeaderHelper.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmImage.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\gdcmJpeg.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -164,10 +180,6 @@ SOURCE=..\gdcmJpeg2000.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmMeta.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\gdcmObject.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -180,22 +192,10 @@ SOURCE=..\gdcmParser.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmPatient.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\gdcmRLE.cxx\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmSerie.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmStudy.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\gdcmTS.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -228,67 +228,67 @@ SOURCE=..\gdcmDicomDirElement.h
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmDict.h\r
+SOURCE=..\gdcmDicomDirImage.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmDictEntry.h\r
+SOURCE=..\gdcmDicomDirMeta.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmDictSet.h\r
+SOURCE=..\gdcmDicomDirPatient.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmDirList.h\r
+SOURCE=..\gdcmDicomDirSerie.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmException.h\r
+SOURCE=..\gdcmDicomDirStudy.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmFile.h\r
+SOURCE=..\gdcmDict.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmHeader.h\r
+SOURCE=..\gdcmDictEntry.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmHeaderEntry.h\r
+SOURCE=..\gdcmDictSet.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmHeaderHelper.h\r
+SOURCE=..\gdcmDirList.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmImage.h\r
+SOURCE=..\gdcmException.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmMeta.h\r
+SOURCE=..\gdcmFile.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmObject.h\r
+SOURCE=..\gdcmHeader.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmParser.h\r
+SOURCE=..\gdcmHeaderEntry.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmPatient.h\r
+SOURCE=..\gdcmHeaderHelper.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmSerie.h\r
+SOURCE=..\gdcmObject.h\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\gdcmStudy.h\r
+SOURCE=..\gdcmParser.h\r
 # End Source File\r
 # Begin Source File\r
 \r
index e6866198c0b095e56549a3e8336483919b207f6c..6cf8f65f0c942e229cc4ad7ea7c64535e046c67b 100644 (file)
@@ -104,6 +104,26 @@ SOURCE=..\..\src\gdcmDicomDirElement.cxx
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\..\src\gdcmDicomDirImage.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirMeta.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirPatient.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirSerie.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\src\gdcmDicomDirStudy.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=..\..\src\gdcmDict.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -140,10 +160,6 @@ SOURCE=..\..\src\gdcmHeaderHelper.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmImage.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmJpeg.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -156,10 +172,6 @@ SOURCE=..\..\src\gdcmJpeg2000.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmMeta.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmObject.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -172,22 +184,10 @@ SOURCE=..\..\src\gdcmParser.cxx
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmPatient.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmRLE.cxx\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\..\src\gdcmSerie.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmStudy.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\..\src\gdcmTS.cxx\r
 # End Source File\r
 # Begin Source File\r