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