]> Creatis software - gdcm.git/blob - ChangeLog
* python/distutilsSwigCPlusPlus.py now properly collects the
[gdcm.git] / ChangeLog
1 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
2       * python/distutilsSwigCPlusPlus.py now properly collects the
3         shadow classes generated by "swig -c++" (gdcm.py in our case)
4         when using "python setup.py install".
5       * python/gdcmPython/__init__.py imports gdcm.py and only manually
6         reexports the working classes.
7       * src/gdcmHeader.cxx all the try/catch/throw calls were replaced
8         by the classical C errno scheme. This is to prevent an obscure
9         behavior of the python wrappers when importing wxPython.wx prior
10         to gdcmPython (which ended up in an abort call). An illustration
11         of this oddity can be found in the Test/ExceptionAndPython
12         subdir (see the README file). This problem probably due to
13         an combination of g++ and dynamic loading.
14       * added Test/ExceptionAndPython (see above)
15
16 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
17       * Changed the layout of the python part to avoid bloating main
18         directory with setup.py, distutilsSwigCPlusPlus.py, MANIFEST.in
19         i.e. the distutils arsenal. All the python related stuff is
20         again in a python subdir, but the package itself is now in
21         python/gdcmPython.
22       * setup.py was cleaned up:
23         - pythonIncludePath removed
24         - python setup.py bdist target is now functional.
25       * gdcmPython/__init__.py doesn't export FileName any more (to avoid
26         collision with other packages). gdcmPython/demo/*.py changed
27         accordingly.
28 2003-01-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
29       * python subdir moved to gdcmPython (preparation of distutils packaging).
30       * gdcmPython/setup.py and distutilsSwigCPlusPlus.py added. The
31         distutils installer is operational.
32       * - gdcmPython/__init__.py now properly loads the swig generated
33           shadow classes (from gdcm.py).
34         - gdcmPython/demo/*.py changed to import the package gdcmPython
35           instead of gdcmPython/demo/load.py.
36         - gdcmPython/testSuite.py changed to import the package gdcmPython.
37         
38
39 2002-12-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
40       * src/gdcm.h, src/gdcmHeader.cxx: added GetPubTagNames() resp.
41         GetPubTagNamesByCategory() to gdcmHeader that return a list of the
42         entries within the associated public Dicom dictionary resp. the same
43         information but sorted by the fourth field (PAT, IMG, DIR) of the
44         dictionary.
45         - Dicts/dicomV3.dic Entries which had and unspecified fourth field
46           are now in the "???" group.
47         - python/gdcm.i changed accordingly,
48         - python/demo/printGroupedPublicDict.py added, that gives an example
49           of the above new functionalities in Python.
50
51 2002-12-11 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
52       * src/gdcm.h, gdcmHeader.cxx:
53         - historic references to glib's g_malloc and g_free (#defined)
54           were definitively removed.
55         - gdcm.h: cosmetic changes (part of comments moved to Doc/requirements)
56       * src/gdcmElValSet.cxx:
57         - GetElement(guint32, guint32) renamed to GetElementByNumber.
58         - GetElValue(guint32, guint32) renamed to GetElValueByNumber.
59         - GetElValue(string) renamed to GetElValueByName.
60         - Added GetElementByName(string).
61       * src/gdcmHeader.cxx: added
62         - GetPubElValRepByNumber(guint16, guint16)
63         - GetPubElValRepByName(string)
64         - GetShaElValRepByNumber(guint16, guint16)
65         - GetShaElValRepByName(string)
66         - GetShaElValByNumber(guint16, guint16)
67         - GetShaElValRepByName(string)
68         - GetElValRepByNumber(guint16, guint16)
69         - GetElValRepByName(string)
70         - GetElValByNumber(guint16, guint16)
71         - GetElValRepByName(string)
72       * Doc/requirements.txt added.
73
74 2002-12-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
75       * Test/Makefile building now depends on the one of libgdcm.so
76       * src/gdcmHeader.cxx and gdcm.h are now OB (undefined length encoded
77         pixel data) aware which enables finding the address (offset) of 
78         the pixel data of JPEG encoded DICOM files. This leaves only a single
79         file in the testSuite whose pixel data address (offset) is unknown.
80       * python/testSuite.py changed accordingly.
81
82 2002-12-6 Christophe Odet + Hugues Benoit-Cattin + Eric.Boix
83       * VC++ has some strong limitations when working with the STL, as stated
84         in http://support.microsoft.com/support/kb/articles/Q168/9/58.ASP :
85              "Also note that some STL containers (map, set, queue, list, deque)
86               cannot be exported. [...]
87               Some STL classes contain nested classes. These classes can not
88               be exported. [...]
89               This is caused by a designed limitation that once a template
90               class is instantiated, it can not be re-instantiated and
91               exported."
92         Since our usage of map<> is ubiquitous in gdcm, this "designed
93         limitation" of VC++ is a pitfall.
94         Hence the Python wrappers of gdcm cannot be incrementally linked 
95         against the c++ dynamic library. The dirty but only workaround is
96         to forget about incremental link of dynamic libraries and to generate
97         the Python wrappers library with the inclusions of the underlying C++
98         library. 
99         The following modifications concern this matter on Win32/VC++:
100       - wrapping python correct with standalone wrapped dll (don't use separate
101          dll under windows !!!!)
102       - python21_d debug mode enabled (ask Frog how to use it :-)
103       - NO problem with having an STL member of class for example string in C++
104         WITH THE RESTRICTION OF FORGETING ABOUT INCREMENTAL LINK.
105       - Python test of dcmlib in Python is ok under windows on a large set 
106         (one) of image(s).
107       * removed glib references
108       * typedef's inserted in gdcm.i for correct swig type management
109
110 2002-11-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
111       * python/demo/*.py load.py extracted from test.py. Added explore.py
112         that only displays required tags and testAll.py that parses all
113         the files of the testsuite without using unittest.
114       * python/testSuite.py other additional test on new files added.
115       * Data/* new test files added accordingly to the testSuite.
116       * src/gdcmHeader.cxx avoid overwriting of the dictionary when
117         the vr in the file differs from the one of the dictionary.
118
119 2002-11-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
120       * src/gdcm.h and gdcmHeader.cxx gdcm no longer loads all the elements
121         values, but limits itself to values which are below a user specified
122         size (by default 1024 bytes).
123       * python/gdcm.i : elements not loaded (because their size is above the
124         user specified treshold) are exported with their TagKey as key of the
125         python dictionary. This enables the testsuite to make some checks
126         on the unloaded elements (since we have their offset and size).
127       * python/testSuite.py
128         - now tests for the existence and proper value of the pixel data
129         - two new examples added.
130       * Data/gdcm-MR-SIEMENS-16.acr[12] added.
131
132 2002-11-18 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
133       * src/gdcm.h and gdcmHeader.cxx are now "Big Endian transfer syntax"
134         aware. See the strategy comments in gdcmHeader::FindeLength().
135       * Test/test.cxx now accepts a filename as first argument.
136       * Data/US-PAL-8-10x-echo.dcm and US-RGB-8-epicard.dcm added.
137       * python/testSuite.py changed to integrate test on above files.
138
139 2002-11-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
140       * Dicts/dicomV3.dic removed all the trailing (RET) when the
141         the vr was also RET.
142       * python/testSuite.py more tests added.
143
144 2002-11-14 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
145       * python/testSuite.py unittest test suite added (uses Data)
146       * Data/* dcm and acr files for the test suite.
147       * glib dependance removed from un*x version. We now use ISO C99
148         7.18 Integer types (see stdint.h)
149         - python/Makefile, src/Makefile src/gdcm.h
150       * src/ when an explicit vr (like dicom files) suddenly poped an
151         implicit element we use to mark the underlying DictEntry of the
152         concerned ElValue with "Implicit". This strategy was damageable
153         too the public or provite dictionaries, since some of their vr
154         would be changed. Since Header::FindLength heavily relies on the
155         detection by Header::FindVR of falsely explicit elements, I
156         added an extra ImplicitVr member to ElValue (boolean).
157         The rest of the changes we the necessary adaptations.
158
159 2002-11-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
160       * src/gdcmHeader::FindLength bug fix when trapping falsely explicit
161         VR files.
162       * src/gdcmHeader::FindVR: hard way fix of falsely explicit vr files.
163
164 2002-11-8 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
165       * Adaptation for porting to VC++:
166         - src/gdcm.h
167           o forced to use std namespace (for string to be known)
168           o all class use __declspec export style on WIN32
169         - src/gdcmUtil.cxx new Exit method that wraps the exit call
170           (in stdlib.h on Win32 but in std:: for gcc)
171       * src/gdcmDictSet::SetDictPath adds a trailing / to environement
172         variable GDCM_DICT_PATH.
173       * src/gdcmHeader.cxx verbose comments made discrete.
174
175 2002-11-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
176       * python/gdcm.i: added a typemap that converts a C++ hashing table
177         to native Python dictionary.
178       * python/demo/test.py:
179         - now uses the native dictionary for exploration of gdcmHeader.
180         - takes an optional filename argument (the file to parse).
181       * src/gdcm.h and gdcmHeader.cxx: gdcmHeader now has an accessor on
182         PubElVals hashing table. 
183       * Dicts/dicomV3.dic removed error prone trailing spaces.
184
185 2002-11-6 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
186       * Python wrapping process moved away from src/Makefile to
187         newly created python/Makefile (as well as gdcm.i)
188       * python/demo/test.py (that mirrors Test/test.cxx) is effective.
189       * src/gdcmHeader::FindLength only looks for current vr when necessary.
190       * src/gdcmDictSet.cxx: the dictionnaries directory path is now imported
191         from the environement variable GDCM_DICT_PATH (when existing).
192       * src/gdcmDict::GetTag bug fix.
193
194 2002-10-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
195       * Straightforward temporary fixes for swig to build the python wrappers.
196         src/Makefile now has a python working entry [by working we mean
197         that we can import de shadow classes without errors].
198
199 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
200       * hashtest.cxx removed (since allready in Test)
201       * src/gdcmlib.h renamed to src/gdcm.h
202       * src/dcm.i renamed to src/gdcm.i
203       * src/Makefile prepared for python wrapping
204
205 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
206       * src/gdcmHeader.cxx :
207         - Parsing of header is now separated from loading of element values
208           (see gdcmHeader::LoadElements).
209         - general clean up of hopefully all file access (creation of
210           ReadInt16 and ReadInt32)
211
212 2002-10-22 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
213       * src/gdcmHeader.cxx :
214         - RecupLgr renamed to FindLength and cut off with new IsAnInteger
215           method.
216         - SetLgrElem renamed to SetLength
217         - GetLgrElem renamed to GetLength
218         - ~gdcmHeader() made virtual to pesky warning messages at compile.
219       * src/gdcmElValSet.cxx fixed both GetElValue methods
220       * Dicts/dicomV3.dic falacious entry [7fe0 0010 OT PXL Pixel Data]
221         due to IdoDude was cleaned out.
222
223 2002-10-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
224       * src/gdcmHeader.cxx RecupLgr split in FindVR and RecupLgr. FindVR
225         concentrates on finding the value representation (when it exists).
226         RecupLgr now only finds the element value length, and it avoids
227         returning the unecessary skL (skipped length).
228         Also, offsetCourant was simply removed (with taille_fich) since
229         it was redundant with the File position internals (by using
230         ftell and fseek). This also made skL (see above in RecupLgr) usage
231         jajun.
232       * src/gdcmHeaderIdo.cxx src/gdcmIdo.h added. Those files concentrate
233         on the libido specificities which are handled through class 
234         inheritance.
235       * Test/implicit_vr.dcm dicom v3 in implicit value representation
236         added. 
237
238 2002-10-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
239       * Truckload of changes. Parsing of header is barely functional
240         (see Test/test) with the standard dictionary (see Dicts/dicomV3.dic).
241
242 2002-10-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
243       * src/gdcmHeader.cxx many addons of low level methods
244
245 2002-10-07 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
246       * src/gdcmHeader now contains_IdDcmCheckSwap, _IdDcmRecupLgr,
247         and _IdDcmSWAP_LONG.
248
249 2002-09-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
250       * This corresponds to all the changes decided at the meeting of
251         May 23 2002. Needless to say we are running late...
252