]> Creatis software - gdcm.git/blob - ChangeLog
* setup.py fixed for un*x (needed macro for stdint.h)
[gdcm.git] / ChangeLog
1 2003-03-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
2       * setup.py fixed for un*x (needed macro for stdint.h)
3       * Test/test.cxx renamed to PrintHeader.cxx to avoid collision on
4         un*ces with sh-utils test utility.
5       * gdcmPython/demo/test.py renamed to PrintHeader.py
6       * gdcmPython/demo/ReorganiseFiles.py new demo script added.
7
8 2003-03-26 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
9       * src/gdcmHeader[h, cxx] gdcmHeader now has an IsReadable predicate.
10       * gdcmPython/demo/test.py changed accordingly.
11
12 2003-03-25 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
13       * gdcmPython/Makefile.am fixed linking against libstdc++
14       * gdcmPython/_gdcm.so symbolic link to gdcmPython/.libs/pygdcm.so added.
15       * Swig subdir (historical tests of swig version 1.3.17++) removed
16       * Test/testChangeEntete.cxx some lines commented out in order to make
17         compilation work.
18       * src/gdcmHeader.cxx cleaned up wild JPR's dirty kludge.
19       * src/gdcmElValSet.cxx cleaned up frog's forgotten debug message
20
21 2003-03-24 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
22       * src/gdcmHeader.cxx gdcmHeader::gdcmHeader now calls LoadElements(),
23         hence the user doesn't need this explicit call.
24         - gdcmPython/testSuite.py, gdcmPython/demo/*.py changed accordingly
25           i.e. LoadElements() call removed.
26       * src/gdcmCommon.h now defines UINT32_MAX (see stdint.h).
27         - src/Makefile.am declares the proper flag for g++.
28       * src/gdcmElValSet.h added gdcmElValSet::GenerateFreeTagKeyInGroup
29         for adding user defined new tags.
30         - src/gdcmHeader.cxx gdcmHeader::NewManualElValToPubDict added.
31         - src/gdcmHeader.cxx gdcmHeader::AddAndDefaultElements now
32           cleanly adds some gdcm added tags (like gdcmXSize, gdcmYSize...)
33
34 2003-03-17 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
35       * Makefile.am, acinclude.m4, configure.in, python.m4, Dicts/Makefile.am,
36    Doc/Makefile.am, Test/Makefile.am, gdcmPython/Makefile.am, 
37    src/Makefile.am : the project should properly compile and install
38    with the autotools, included the python wrappers part. 
39       * gdcm.spec.in : added a spec file for RPM packaging.
40
41 2003-03-14 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
42       * src/gdcmUtils.cxx : redifinition of defaults parameters in code
43
44 2003-03-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
45       * gdcmPython/__init__.py fix of GDCM_DICT_PATH which was not
46         to exported to the environement (see gdcmPython/testSuite.py
47         for usage).
48       * src/gdcmElValSet.[cxx/h], gdcmElValue.[cxx/h], gdcmFile.[cxx/h],
49         gdcmHeader.[cxx/h]: ElValSet class renamed to gdcmElValSet, and
50         ElValue class renamed to gdcmElValue for obvious consistency reasons.
51       * src/gdcmElValSet.cxx, src/gdcmUtil.[cxx-h] Tokenize utility function
52         moved away from gdcmElValSet.cxx to gdcmUtil.cxx.
53
54 2003-03-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
55       * gdcmPython/__init__.py doesn't crash anymore when running in
56         in InstallMode or PreInstallMode but with an environement given
57         value of GDCM_DICT_PATH.
58       * src/gdcmDictSet.[cxx/h] coding style.
59
60 2003-03-06 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
61       * src/gdcmHeader.h and gdcmHeader.cxx Coding style + doxigenation.
62       * src/gdcm.h general comments moved to TODO, and README
63       * src/gdcm.h should now be seen as a user commodity (including it
64         should suffice to fully use gdcm). It is nowhere including within
65         any of the kernel files src/*.cxx and src/*.h.
66
67 2003-03-05 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
68       * src/gdcm.h splitted in gdcmCommon.h, gdcmDict.h, gdcmDictEntry.h,
69         gdcmDictSet.h, gdcmElValSet.h, gdcmElValue.h, gdcmFile.h,
70         gdcmHeader.h
71       * src/gdcm*.cxx only include their corresponding include file
72         (as opposed to gdcm.h)
73       * gdcmPython/gdcm.i changed accordingly
74       * Test/Makefile.am corrected and added NEWS, AUTHORS in order for
75         the autogen.sh generated "make snapshot" command to work.
76       * autogen.sh removed history related references to crea package.
77
78 2003-03-04 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
79       * distutilsSwigCPlusPlus.py work around some swig portability
80         bug.
81
82 2003-03-03 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
83       * Eventually, python/gdcmPython was renamed to gdcmPython. This
84         was done in a last ditch attempt to get setup.py _really_
85         operationnal. The python/gdcmPython layaout add the advantage
86         of hidding away the python related distutils specific files
87         (MANIFEST.in, setup.py, distutils*.py...) from the main directory.
88         Alas, the src directory was out of scope (i.e. it's relative
89         position to setup.py was ../src) which made things impossible to
90         handle (see previous version of python/setup.py). Crossing fingers...
91
92 2003-02-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
93       * python/setup.py now works on Un*x. (harder than I thougth)
94       * python/distutilsSwigCPlusPlus.py can now have include files
95         among the list of sources.
96       
97 2003-02-20 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
98       * src/gdcmHeader.cxx : bug fix - opening dicom file in binary !!!
99       * modifications in MSVC projects
100
101 2003-02-19 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
102       * As stated by the first lines of Test/ExceptionAndPython/README, it
103         looks like we can move back to original usage of exception within
104         src/gdcm* and hence remove the errno stuff that was introduced
105         as a quick and dirty fixture of this problem (added to the TODO).
106       * Doc/Doxyfile configuration file for Doxygen and corresponding
107         README file for usage added.
108       * Test/testWrite.cxx added. This new test comes from a split of
109         test.cxx that is now reverted to its original purpous i.e. 
110         testing the proper parsing of a Dicom related file.
111         testWrite.cxx concentrates on testing the IO part of gdcm.
112       * Test/bug1.cxx (containing a bug on WIn32) added.
113       * src/gdcm.h, gdcmHeader.cxx, gdcmDictSet.cxx: 
114         - gdcmHeader::GetPubTagNames and  gdcmHeader::GetPubTagNamesByCategory
115           whose purpose is to publish the content of the TagNames of the
116           Dicom public dictionnary were not accessible without an
117           instance of class gdcmHeader.
118         - those methods are now static methods of gdcmDictSet and hence
119           require no instances at all to be invocated.
120         - within gdcmDictSet this change required to change some method
121           to class methods (i.e. are now static) among which SetDictPath
122           (renamed to BuildDictPath) and LoadDefaultPubDict.
123       * python/gdcmPython/demo/printGroupedPublicDict.py changed to illustrate
124         the above changes by calling the new method classes of gdcmDictSet.
125       * python/gdcmPython/__init__.py now exposes gdcm.gdcmDictSet for
126         the above to be effective.
127       * python/gdcmPython: in order to wrap properly the above changes
128         for Python, swig version now needs to be > 1.3.17.
129       * python/gdcmPython/Makefile fixed to adapt itself to new 
130         configure/make shema introduced by Johan Montagnat (thanks for the
131         contribution). Alas this Makefile cannot be turned into a proper
132         Makefile.am without some heavy changes in the configure.in
133         (for python dectection).
134       * python/gdcmPython/gdcm.i: the out typemap map<string, list<string>>*
135         now avoids publishing the empty entries.
136
137 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
138       * python/setup.py : bug fix concerning install under windows
139         ExtraPath reused :-P
140       * gdcm.dsw : bug fix concerning path for libraries for python !!!
141
142 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
143       * Dicts/dicomV3.dic : remove double spaces !!!
144       * src/gdcmElValSet.cxx : bug fix concerning windows compiler
145       * python/gdcmPython/win32/gdcmpycomplet.dsp : bug fix concerning paths
146         and links
147
148 2003-01-28 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
149       * src/gdcmHeader.cxx added a post header parsing AddAndDefaultElements
150         method. Doxygenation.
151       * src/gdcm.h clean up of JPR spurious comments.
152
153 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
154       * python/distutilsSwigCPlusPlus.py now properly collects the
155         shadow classes generated by "swig -c++" (gdcm.py in our case)
156         when using "python setup.py install".
157       * python/gdcmPython/__init__.py imports gdcm.py and only manually
158         reexports the working classes.
159       * src/gdcmHeader.cxx all the try/catch/throw calls were replaced
160         by the classical C errno scheme. This is to prevent an obscure
161         behavior of the python wrappers when importing wxPython.wx prior
162         to gdcmPython (which ended up in an abort call). An illustration
163         of this oddity can be found in the Test/ExceptionAndPython
164         subdir (see the README file). This problem probably due to
165         an combination of g++ and dynamic loading.
166       * added Test/ExceptionAndPython (see above)
167
168 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
169       * Changed the layout of the python part to avoid bloating main
170         directory with setup.py, distutilsSwigCPlusPlus.py, MANIFEST.in
171         i.e. the distutils arsenal. All the python related stuff is
172         again in a python subdir, but the package itself is now in
173         python/gdcmPython.
174       * setup.py was cleaned up:
175         - pythonIncludePath removed
176         - python setup.py bdist target is now functional.
177       * gdcmPython/__init__.py doesn't export FileName any more (to avoid
178         collision with other packages). gdcmPython/demo/*.py changed
179         accordingly.
180 2003-01-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
181       * python subdir moved to gdcmPython (preparation of distutils packaging).
182       * gdcmPython/setup.py and distutilsSwigCPlusPlus.py added. The
183         distutils installer is operational.
184       * - gdcmPython/__init__.py now properly loads the swig generated
185           shadow classes (from gdcm.py).
186         - gdcmPython/demo/*.py changed to import the package gdcmPython
187           instead of gdcmPython/demo/load.py.
188         - gdcmPython/testSuite.py changed to import the package gdcmPython.
189         
190
191 2002-12-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
192       * src/gdcm.h, src/gdcmHeader.cxx: added GetPubTagNames() resp.
193         GetPubTagNamesByCategory() to gdcmHeader that return a list of the
194         entries within the associated public Dicom dictionary resp. the same
195         information but sorted by the fourth field (PAT, IMG, DIR) of the
196         dictionary.
197         - Dicts/dicomV3.dic Entries which had and unspecified fourth field
198           are now in the "???" group.
199         - python/gdcm.i changed accordingly,
200         - python/demo/printGroupedPublicDict.py added, that gives an example
201           of the above new functionalities in Python.
202
203 2002-12-11 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
204       * src/gdcm.h, gdcmHeader.cxx:
205         - historic references to glib's g_malloc and g_free (#defined)
206           were definitively removed.
207         - gdcm.h: cosmetic changes (part of comments moved to Doc/requirements)
208       * src/gdcmElValSet.cxx:
209         - GetElement(guint32, guint32) renamed to GetElementByNumber.
210         - GetElValue(guint32, guint32) renamed to GetElValueByNumber.
211         - GetElValue(string) renamed to GetElValueByName.
212         - Added GetElementByName(string).
213       * src/gdcmHeader.cxx: added
214         - GetPubElValRepByNumber(guint16, guint16)
215         - GetPubElValRepByName(string)
216         - GetShaElValRepByNumber(guint16, guint16)
217         - GetShaElValRepByName(string)
218         - GetShaElValByNumber(guint16, guint16)
219         - GetShaElValRepByName(string)
220         - GetElValRepByNumber(guint16, guint16)
221         - GetElValRepByName(string)
222         - GetElValByNumber(guint16, guint16)
223         - GetElValRepByName(string)
224       * Doc/requirements.txt added.
225
226 2002-12-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
227       * Test/Makefile building now depends on the one of libgdcm.so
228       * src/gdcmHeader.cxx and gdcm.h are now OB (undefined length encoded
229         pixel data) aware which enables finding the address (offset) of 
230         the pixel data of JPEG encoded DICOM files. This leaves only a single
231         file in the testSuite whose pixel data address (offset) is unknown.
232       * python/testSuite.py changed accordingly.
233
234 2002-12-6 Christophe Odet + Hugues Benoit-Cattin + Eric.Boix
235       * VC++ has some strong limitations when working with the STL, as stated
236         in http://support.microsoft.com/support/kb/articles/Q168/9/58.ASP :
237              "Also note that some STL containers (map, set, queue, list, deque)
238               cannot be exported. [...]
239               Some STL classes contain nested classes. These classes can not
240               be exported. [...]
241               This is caused by a designed limitation that once a template
242               class is instantiated, it can not be re-instantiated and
243               exported."
244         Since our usage of map<> is ubiquitous in gdcm, this "designed
245         limitation" of VC++ is a pitfall.
246         Hence the Python wrappers of gdcm cannot be incrementally linked 
247         against the c++ dynamic library. The dirty but only workaround is
248         to forget about incremental link of dynamic libraries and to generate
249         the Python wrappers library with the inclusions of the underlying C++
250         library. 
251         The following modifications concern this matter on Win32/VC++:
252       - wrapping python correct with standalone wrapped dll (don't use separate
253          dll under windows !!!!)
254       - python21_d debug mode enabled (ask Frog how to use it :-)
255       - NO problem with having an STL member of class for example string in C++
256         WITH THE RESTRICTION OF FORGETING ABOUT INCREMENTAL LINK.
257       - Python test of dcmlib in Python is ok under windows on a large set 
258         (one) of image(s).
259       * removed glib references
260       * typedef's inserted in gdcm.i for correct swig type management
261
262 2002-11-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
263       * python/demo/*.py load.py extracted from test.py. Added explore.py
264         that only displays required tags and testAll.py that parses all
265         the files of the testsuite without using unittest.
266       * python/testSuite.py other additional test on new files added.
267       * Data/* new test files added accordingly to the testSuite.
268       * src/gdcmHeader.cxx avoid overwriting of the dictionary when
269         the vr in the file differs from the one of the dictionary.
270
271 2002-11-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
272       * src/gdcm.h and gdcmHeader.cxx gdcm no longer loads all the elements
273         values, but limits itself to values which are below a user specified
274         size (by default 1024 bytes).
275       * python/gdcm.i : elements not loaded (because their size is above the
276         user specified treshold) are exported with their TagKey as key of the
277         python dictionary. This enables the testsuite to make some checks
278         on the unloaded elements (since we have their offset and size).
279       * python/testSuite.py
280         - now tests for the existence and proper value of the pixel data
281         - two new examples added.
282       * Data/gdcm-MR-SIEMENS-16.acr[12] added.
283
284 2002-11-18 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
285       * src/gdcm.h and gdcmHeader.cxx are now "Big Endian transfer syntax"
286         aware. See the strategy comments in gdcmHeader::FindeLength().
287       * Test/test.cxx now accepts a filename as first argument.
288       * Data/US-PAL-8-10x-echo.dcm and US-RGB-8-epicard.dcm added.
289       * python/testSuite.py changed to integrate test on above files.
290
291 2002-11-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
292       * Dicts/dicomV3.dic removed all the trailing (RET) when the
293         the vr was also RET.
294       * python/testSuite.py more tests added.
295
296 2002-11-14 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
297       * python/testSuite.py unittest test suite added (uses Data)
298       * Data/* dcm and acr files for the test suite.
299       * glib dependance removed from un*x version. We now use ISO C99
300         7.18 Integer types (see stdint.h)
301         - python/Makefile, src/Makefile src/gdcm.h
302       * src/ when an explicit vr (like dicom files) suddenly poped an
303         implicit element we use to mark the underlying DictEntry of the
304         concerned ElValue with "Implicit". This strategy was damageable
305         too the public or provite dictionaries, since some of their vr
306         would be changed. Since Header::FindLength heavily relies on the
307         detection by Header::FindVR of falsely explicit elements, I
308         added an extra ImplicitVr member to ElValue (boolean).
309         The rest of the changes we the necessary adaptations.
310
311 2002-11-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
312       * src/gdcmHeader::FindLength bug fix when trapping falsely explicit
313         VR files.
314       * src/gdcmHeader::FindVR: hard way fix of falsely explicit vr files.
315
316 2002-11-8 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
317       * Adaptation for porting to VC++:
318         - src/gdcm.h
319           o forced to use std namespace (for string to be known)
320           o all class use __declspec export style on WIN32
321         - src/gdcmUtil.cxx new Exit method that wraps the exit call
322           (in stdlib.h on Win32 but in std:: for gcc)
323       * src/gdcmDictSet::SetDictPath adds a trailing / to environement
324         variable GDCM_DICT_PATH.
325       * src/gdcmHeader.cxx verbose comments made discrete.
326
327 2002-11-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
328       * python/gdcm.i: added a typemap that converts a C++ hashing table
329         to native Python dictionary.
330       * python/demo/test.py:
331         - now uses the native dictionary for exploration of gdcmHeader.
332         - takes an optional filename argument (the file to parse).
333       * src/gdcm.h and gdcmHeader.cxx: gdcmHeader now has an accessor on
334         PubElVals hashing table. 
335       * Dicts/dicomV3.dic removed error prone trailing spaces.
336
337 2002-11-6 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
338       * Python wrapping process moved away from src/Makefile to
339         newly created python/Makefile (as well as gdcm.i)
340       * python/demo/test.py (that mirrors Test/test.cxx) is effective.
341       * src/gdcmHeader::FindLength only looks for current vr when necessary.
342       * src/gdcmDictSet.cxx: the dictionnaries directory path is now imported
343         from the environement variable GDCM_DICT_PATH (when existing).
344       * src/gdcmDict::GetTag bug fix.
345
346 2002-10-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
347       * Straightforward temporary fixes for swig to build the python wrappers.
348         src/Makefile now has a python working entry [by working we mean
349         that we can import de shadow classes without errors].
350
351 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
352       * hashtest.cxx removed (since allready in Test)
353       * src/gdcmlib.h renamed to src/gdcm.h
354       * src/dcm.i renamed to src/gdcm.i
355       * src/Makefile prepared for python wrapping
356
357 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
358       * src/gdcmHeader.cxx :
359         - Parsing of header is now separated from loading of element values
360           (see gdcmHeader::LoadElements).
361         - general clean up of hopefully all file access (creation of
362           ReadInt16 and ReadInt32)
363
364 2002-10-22 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
365       * src/gdcmHeader.cxx :
366         - RecupLgr renamed to FindLength and cut off with new IsAnInteger
367           method.
368         - SetLgrElem renamed to SetLength
369         - GetLgrElem renamed to GetLength
370         - ~gdcmHeader() made virtual to pesky warning messages at compile.
371       * src/gdcmElValSet.cxx fixed both GetElValue methods
372       * Dicts/dicomV3.dic falacious entry [7fe0 0010 OT PXL Pixel Data]
373         due to IdoDude was cleaned out.
374
375 2002-10-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
376       * src/gdcmHeader.cxx RecupLgr split in FindVR and RecupLgr. FindVR
377         concentrates on finding the value representation (when it exists).
378         RecupLgr now only finds the element value length, and it avoids
379         returning the unecessary skL (skipped length).
380         Also, offsetCourant was simply removed (with taille_fich) since
381         it was redundant with the File position internals (by using
382         ftell and fseek). This also made skL (see above in RecupLgr) usage
383         jajun.
384       * src/gdcmHeaderIdo.cxx src/gdcmIdo.h added. Those files concentrate
385         on the libido specificities which are handled through class 
386         inheritance.
387       * Test/implicit_vr.dcm dicom v3 in implicit value representation
388         added. 
389
390 2002-10-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
391       * Truckload of changes. Parsing of header is barely functional
392         (see Test/test) with the standard dictionary (see Dicts/dicomV3.dic).
393
394 2002-10-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
395       * src/gdcmHeader.cxx many addons of low level methods
396
397 2002-10-07 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
398       * src/gdcmHeader now contains_IdDcmCheckSwap, _IdDcmRecupLgr,
399         and _IdDcmSWAP_LONG.
400
401 2002-09-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
402       * This corresponds to all the changes decided at the meeting of
403         May 23 2002. Needless to say we are running late...
404