]> Creatis software - gdcm.git/commitdiff
* Added documentation of vtkgdcmReader on Website:
authorfrog <frog>
Fri, 1 Oct 2004 12:40:55 +0000 (12:40 +0000)
committerfrog <frog>
Fri, 1 Oct 2004 12:40:55 +0000 (12:40 +0000)
     - testvtkGdcmReader.cxx renamed to vtkGdcmDemo.cxx (to be compatible
       with it's binary name).
     - vtk/vtkGdcmDemo.cxx and vtkgdcmViewer.cxx: added comments for
       the Website to be more complete.
     - Doc/doxygen.config.in: vtk/vtkGdcmReader.cxx now appears on
       doxygenated documentation.
     - Doc/DoxyVtkGdcmReaderExamples.txt added
       (see http://www.creatis.insa-lyon.fr/Public/Gdcm/html.developper/
            DoxyVtkGdmReaderExamples.html )
  * src/win32, vtk/win32 manually maintained .dsp and .dsw removed.
  * CLEANUP_ROUND (3) for gdcmPixelConvert
   - src/gdcmFile.cxx, gdcmFile.h splitting GetImageDataIntoVectorRaw

20 files changed:
ChangeLog
Doc/CMakeLists.txt
Doc/DoxyVtkGdmReaderExamples.txt [new file with mode: 0644]
Doc/Website/Main.html
Doc/Website/VtkGdcm.html
Doc/doxygen.config.in
TODO
src/gdcmFile.cxx
src/gdcmFile.h
src/win32/.cvsignore [deleted file]
src/win32/gdcmdll.dsp [deleted file]
src/win32/libgdcmijpeg12.dsp [deleted file]
src/win32/libgdcmijpeg8.dsp [deleted file]
src/win32/libgdcmljpeg.dsp [deleted file]
vtk/CMakeLists.txt
vtk/vtkGdcmDemo.cxx [moved from vtk/testvtkGdcmReader.cxx with 58% similarity]
vtk/vtkgdcmViewer.cxx
vtk/win32/.cvsignore [deleted file]
vtk/win32/vtkGdcmTest.dsp [deleted file]
vtk/win32/vtkgdcm.dsp [deleted file]

index 6bdf25a0c0fc2efbba2cf67e8559ba29cbea19ca..24c8c10e8ab96861c33bb3b5eb76521ace62a2c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2004-10-01 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
+  * Added documentation of vtkgdcmReader on Website:
+     - testvtkGdcmReader.cxx renamed to vtkGdcmDemo.cxx (to be compatible
+       with it's binary name).
+     - vtk/vtkGdcmDemo.cxx and vtkgdcmViewer.cxx: added comments for
+       the Website to be more complete.
+     - Doc/doxygen.config.in: vtk/vtkGdcmReader.cxx now appears on 
+       doxygenated documentation.
+     - Doc/DoxyVtkGdcmReaderExamples.txt added
+       (see http://www.creatis.insa-lyon.fr/Public/Gdcm/html.developper/
+                  DoxyVtkGdmReaderExamples.html )
+  * src/win32, vtk/win32 manually maintained .dsp and .dsw removed.
+  * CLEANUP_ROUND (3) for gdcmPixelConvert
+   - src/gdcmFile.cxx, gdcmFile.h splitting GetImageDataIntoVectorRaw
+
 2004-09-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
   * CLEANUP_ROUND (2) for gdcmPixelConvert
    - src/gdcmFile.cxx, gdcmFile.h splitting GetImageDataIntoVectorRaw
index 2781f7d617d69a375f46fe0922dcebf9360db0ec..6102dc841cdfe862a2bab3e94cf7964569390b3a 100644 (file)
@@ -20,11 +20,16 @@ IF(GDCM_DOCUMENTATION)
   # http://www.cmake.org/pipermail/cmake/2003-April/003673.html
   # Too bad CMake doesn't support multiline ""
   SET(GDCM_DOCUMENTATION_INPUT_COMMON
-    "${GDCM_SOURCE_DIR}/src   ${GDCM_SOURCE_DIR}/Doc/DoxyPython.txt"
+    "${GDCM_SOURCE_DIR}/src ${GDCM_SOURCE_DIR}/Doc/DoxyPython.txt ${GDCM_SOURCE_DIR}/Doc/DoxyVtkGdmReaderExamples.txt"
   )
   SET(GDCM_DOCUMENTATION_EXCLUDE_COMMON
     "${GDCM_SOURCE_DIR}/src/gdcmJpeg.cxx"
   )
+  
+  IF(GDCM_VTK)
+     SET(GDCM_DOCUMENTATION_INPUT_COMMON
+         "${GDCM_DOCUMENTATION_INPUT_COMMON} ${GDCM_SOURCE_DIR}/vtk")
+  ENDIF(GDCM_VTK)
 
   #Should rewrote this thing with FOREACH:
   #-----------------------------------------------------------------------------
diff --git a/Doc/DoxyVtkGdmReaderExamples.txt b/Doc/DoxyVtkGdmReaderExamples.txt
new file mode 100644 (file)
index 0000000..ab9891f
--- /dev/null
@@ -0,0 +1,9 @@
+/**
+ * \page DoxyVtkGdmReaderExamples VtkGdmReader examples
+ *  Below you will find, by order of complexity, two examples that
+ *  illustate how the vtkGdcmReader vtk class can be used.
+ *  Basically, vtkGdcmReader behaves like any other derived class of
+ *  vtkImageReader...
+ * \include vtkGdcmDemo.cxx
+ * \include vtkgdcmViewer.cxx
+ */
index 3d0e0a4e4bfc4ea46b78264b9317b7da7aaf18d0..42dfebdbf1caa50f02f0d9909cf3bccb820b8e49 100644 (file)
@@ -93,6 +93,23 @@ gdcm doesn't implement (yet?)
 <UL>
   <LI>the integration of (optional) overlays on image.
   </LI>
+  <LI>a more complete supports of the 
+     <A HREF="ConformanceSummary.html">various Jpeg encodings</A>
+  </LI>
+</UL>
+Gdcm also still needs
+<UL>
+<LI> an enhanced and simpler API to access the various forms of pixel data
+     (e.g. RGB, GrayLevel, RawData...),
+</LI>
+<LI> a decent user's guide (currently, only a partial doxygenation is
+     available),
+</LI>
+<LI> the python wrappers to be fixed,
+</LI>
+<LI> a simple wxWdiget Dicom file editor.
+</LI>
+</UL>
 </UL>
 
 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
index bb17ab4cc8d7543d79d97d4c35ba38a0d2107db5..906b3ff2ec6aadf8e9e8193496abcf7422b06fdc 100644 (file)
@@ -23,6 +23,21 @@ which enables
    <LI> this class is wrapped for vtkPython (by using native VTK wrappers).
 </UL>
 
+For a quick, but probably sufficient, introduction to the
+usage of <TT>vtkGdcmReader</TT> please refer to the
+<A HREF="html.developper/DoxyVtkGdmReaderExamples.html">
+simple examples</A>.
+
+The documentation of vtkGdcmReader is available in both forms
+<UL>
+<LI>
+    <A HREF="html.user/classvtkGdcmReader.html">for users</A>,
+</LI>
+<LI>
+    <A HREF="html.developper/classvtkGdcmReader.html">for developpers</A>.
+</LI>
+</UL>
+
 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
 
 </BODY>
index 0b97fdad6bea9858121f6f1024c514a95d26d78b..4783a68a0435d021340a6c9706fb86a9d9cfdd1c 100644 (file)
@@ -339,14 +339,14 @@ EXCLUDE_PATTERNS       =
 # directories that contain example code fragments that are included (see 
 # the \include command).
 
-EXAMPLE_PATH           = @GDCM_SOURCE_DIR@/gdcmPython/demo
+EXAMPLE_PATH = @GDCM_SOURCE_DIR@/gdcmPython/demo @GDCM_SOURCE_DIR@/vtk
 
 # If the value of the EXAMPLE_PATH tag contains directories, you can use the 
 # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
 # and *.h) to filter out the source-files in the directories. If left 
 # blank all files are included.
 
-EXAMPLE_PATTERNS       = 
+EXAMPLE_PATTERNS       = *.py *.cxx
 
 # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be 
 # searched for input files to be used with the \include or \dontinclude 
diff --git a/TODO b/TODO
index 6481daf15a4db42cec6bfea6195e163f54e9f213..f410e287caa1226334df139b34f67bb91e7fb0bc 100644 (file)
--- a/TODO
+++ b/TODO
@@ -13,6 +13,27 @@ Comments:
 
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
+Description: vtk/vtkGdcmReader doesn't positionate the normal to the image
+Date: 2004 Oct 1
+Attributed:
+Details: vtkGdcmReader::CheckFileCoherence() sets the DataOrigin[i]
+         but doesn't set the plane (image seen in 3D) normal (is it
+         possible any how). This plane normal could be extracted from 
+         the "orientation" info of the gdcmHeader ( refer to
+         grep "Orientation" Dicts/dicomV3.dic).
+         Problem exhibiting this defect: cine loop on a pile of images
+               whose Origin is correct, but whose normal is not set will
+               plainly suck !
+Comments:
+        * vtkGdcmReader inherits from vtkImageReader which aggregates
+          a vtkTranform. vtkGdcmReader could store (when the user requires
+          it, see below) the origin/normal taken from the Dicom Header
+          within this vtkTransform (looks like a natural place to store
+          this spacial information).
+        * Both settings of the origin and/OR the normal of the plane (image)
+          should be an option defined with a flag (On/Off) in the
+          vtkGdcmReader...
+-----------------------------------------------------------------------------
 Description: Fix the Python wrappers
 Date: 2004 Sep 24
 Attributed: no
index 18928712a81c38d92997707b85ab0939c10f82d3..6b9138b2ad26ea1e6d59b624994fc358ef04e202 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/30 12:51:55 $
-  Version:   $Revision: 1.133 $
+  Date:      $Date: 2004/10/01 12:40:57 $
+  Version:   $Revision: 1.134 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -1051,32 +1051,12 @@ bool gdcmFile::ReadPixelData(void* destination)
       return false;
    }
 
-   // ----------------------  Compacted File (12 Bits Per Pixel)
-   // unpack 12 Bits pixels into 16 Bits pixels
-   // 2 pixels 12bit =     [0xABCDEF]
-   // 2 pixels 16bit = [0x0ABD] + [0x0FCE]
-   
    if ( Header->GetBitsAllocated() == 12 )
    {
-      int nbPixels = Header->GetXSize() * Header->GetYSize();
-      uint8_t b0, b1, b2;
-      
-      uint16_t* pdestination = (uint16_t*)destination;    
-      for(int p = 0; p < nbPixels; p += 2 )
-      {
-         fread(&b0,1,1,fp);
-         fread(&b1,1,1,fp);
-         fread(&b2,1,1,fp);      
-
-         //Two steps is necessary to please VC++
-         *pdestination++ =  ((b0 >> 4) << 8) + ((b0 & 0x0f) << 4) + (b1 & 0x0f);
-         //                     A                     B                 D
-         *pdestination++ =  ((b2 & 0x0f) << 8) + ((b1 >> 4) << 4) + (b2 >> 4);
-         //                     F                     C                 E
-  
-         // Troubles expected on Big-Endian processors ?
-      }
-
+      ConvertDecompress12BitsTo16Bits( (uint8_t*)destination, 
+                                       Header->GetXSize(),
+                                       Header->GetYSize(),
+                                       fp);
       Header->CloseFile();
       return true;
    }
@@ -1109,22 +1089,13 @@ bool gdcmFile::ReadPixelData(void* destination)
    }  
     
    // --------------- SingleFrame/Multiframe JPEG Lossless/Lossy/2000 
-   int nb;
-   std::string str_nb = Header->GetEntryByNumber(0x0028,0x0100);
-   if ( str_nb == GDCM_UNFOUND )
-   {
-      nb = 16;
-   }
-   else
+   int numberBitsAllocated = Header->GetBitsAllocated();
+   if ( ( numberBitsAllocated == 0 ) || ( numberBitsAllocated == 12 ) )
    {
-      nb = atoi( str_nb.c_str() );
-      if ( nb == 12 )
-      {
-         nb = 16;  // ?? 12 should be ACR-NEMA only
-      }
+      numberBitsAllocated = 16;
    }
 
-   int nBytes= nb/8;
+   int nBytes= numberBitsAllocated/8;
    int taille = Header->GetXSize() * Header->GetYSize()  
                 * Header->GetSamplesPerPixel();
    long fragmentBegining; // for ftell, fseek
@@ -1237,4 +1208,57 @@ bool gdcmFile::ReadPixelData(void* destination)
    Header->CloseFile();
    return res;
 }
+
+/**
+ * \brief Read from file a 12 bits per pixel image and uncompress it
+ *        into a 16 bits per pixel image.
+ */
+void gdcmFile::ConvertDecompress12BitsTo16Bits(
+                  uint8_t* pixelZone,
+                  int sizeX,
+                  int sizeY,
+                  FILE* filePtr)
+               throw ( gdcmFormatError )
+{
+   int nbPixels = sizeX * sizeY;
+   uint16_t* destination = (uint16_t*)pixelZone;    
+
+   for( int p = 0; p < nbPixels; p += 2 )
+   {
+      uint8_t b0, b1, b2;
+      size_t ItemRead;
+
+      ItemRead = fread( &b0, 1, 1, filePtr);
+      if ( ItemRead != 1 )
+      {
+         throw gdcmFormatError( "gdcmFile::ConvertDecompress12BitsTo16Bits()",
+                                "Unfound first block" );
+      }
+
+      ItemRead = fread( &b1, 1, 1, filePtr);
+      if ( ItemRead != 1 )
+      {
+         throw gdcmFormatError( "gdcmFile::ConvertDecompress12BitsTo16Bits()",
+                                "Unfound second block" );
+      }
+
+      ItemRead = fread( &b2, 1, 1, filePtr);      
+      if ( ItemRead != 1 )
+      {
+         throw gdcmFormatError( "gdcmFile::ConvertDecompress12BitsTo16Bits()",
+                                "Unfound second block" );
+      }
+
+      // Two steps are necessary to please VC++
+      //
+      // 2 pixels 12bit =     [0xABCDEF]
+      // 2 pixels 16bit = [0x0ABD] + [0x0FCE]
+      //                     A                     B                 D
+      *destination++ =  ((b0 >> 4) << 8) + ((b0 & 0x0f) << 4) + (b1 & 0x0f);
+      //                     F                     C                 E
+      *destination++ =  ((b2 & 0x0f) << 8) + ((b1 >> 4) << 4) + (b2 >> 4);
+  
+      /// \todo JPR Troubles expected on Big-Endian processors ?
+   }
+}
 //-----------------------------------------------------------------------------
index 693bea288d7e845713aba397093b51eedf4df744..a69011f8edb61b4b91d0fdf397ef7260e32f0ac2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.h,v $
   Language:  C++
-  Date:      $Date: 2004/09/30 12:51:55 $
-  Version:   $Revision: 1.54 $
+  Date:      $Date: 2004/10/01 12:40:57 $
+  Version:   $Revision: 1.55 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -43,17 +43,23 @@ public:
 
    void ConvertRGBPlanesToRGBPixels( uint8_t* source, uint8_t* destination );
    void ConvertYcBcRPlanesToRGBPixels( uint8_t* source, uint8_t* destination );
-   void ConvertReArrangeBits( uint8_t* pixelZone,
-                              size_t imageDataSize,
-                              int numberBitsStored,
-                              int numberBitsAllocated,
-                              int highBitPosition ) throw ( gdcmFormatError );
-   void ConvertReorderEndianity( uint8_t* pixelZone,
-                                 size_t imageDataSize,
-                                 int numberBitsStored,
-                                 int numberBitsAllocated,
-                                 bool signedPixel );
-
+   void ConvertReArrangeBits(
+           uint8_t* pixelZone,
+           size_t imageDataSize,
+           int numberBitsStored,
+           int numberBitsAllocated,
+           int highBitPosition ) throw ( gdcmFormatError );
+   void ConvertReorderEndianity(
+           uint8_t* pixelZone,
+           size_t imageDataSize,
+           int numberBitsStored,
+           int numberBitsAllocated,
+           bool signedPixel );
+   void ConvertDecompress12BitsTo16Bits(
+           uint8_t* pixelZone,
+           int sizeX,
+           int sizeY,
+           FILE* filePtr) throw ( gdcmFormatError);
    
    /// Accessor to \ref ImageDataSize
    size_t GetImageDataSize(){ return ImageDataSize; };
diff --git a/src/win32/.cvsignore b/src/win32/.cvsignore
deleted file mode 100644 (file)
index b452d01..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-*Debug*
-*Release*
-*.plg
\ No newline at end of file
diff --git a/src/win32/gdcmdll.dsp b/src/win32/gdcmdll.dsp
deleted file mode 100644 (file)
index c94c858..0000000
+++ /dev/null
@@ -1,339 +0,0 @@
-# Microsoft Developer Studio Project File - Name="gdcmdll" - Package Owner=<4>\r
-# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
-# ** DO NOT EDIT **\r
-\r
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102\r
-\r
-CFG=gdcmdll - Win32 Debug\r
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
-!MESSAGE use the Export Makefile command and run\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "gdcmdll.mak".\r
-!MESSAGE \r
-!MESSAGE You can specify a configuration when running NMAKE\r
-!MESSAGE by defining the macro CFG on the command line. For example:\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "gdcmdll.mak" CFG="gdcmdll - Win32 Debug"\r
-!MESSAGE \r
-!MESSAGE Possible choices for configuration are:\r
-!MESSAGE \r
-!MESSAGE "gdcmdll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE "gdcmdll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE \r
-\r
-# Begin Project\r
-# PROP AllowPerConfigDependencies 0\r
-# PROP Scc_ProjName ""\r
-# PROP Scc_LocalPath ""\r
-CPP=cl.exe\r
-MTL=midl.exe\r
-RSC=rc.exe\r
-\r
-!IF  "$(CFG)" == "gdcmdll - Win32 Release"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 0\r
-# PROP BASE Output_Dir "Release"\r
-# PROP BASE Intermediate_Dir "Release"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 0\r
-# PROP Output_Dir "Release"\r
-# PROP Intermediate_Dir "Release"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GDCMDLL_EXPORTS" /YX /FD /c\r
-# ADD CPP /nologo /MD /w /W0 /GX /O2 /I "$(CREATIS)\glib-1.3\src\glib" /I "..\jpeg\libijg8" /I "..\jpeg\libijg12" /I "..\jpeg\ljpg" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GDCMDLL_EXPORTS" /YX /FD /c\r
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "NDEBUG"\r
-# ADD RSC /l 0x40c /d "NDEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386\r
-# ADD LINK32 kernel32.lib msvcrt.lib msvcprt.lib Wsock32.lib /nologo /dll /machine:I386 /nodefaultlib /out:"../../lib/gdcmdll.dll"\r
-# SUBTRACT LINK32 /debug\r
-# 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
-# End Special Build Tool\r
-\r
-!ELSEIF  "$(CFG)" == "gdcmdll - Win32 Debug"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 1\r
-# PROP BASE Output_Dir "Debug"\r
-# PROP BASE Intermediate_Dir "Debug"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 1\r
-# PROP Output_Dir "Debug"\r
-# PROP Intermediate_Dir "Debug"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GDCMDLL_EXPORTS" /YX /FD /GZ /c\r
-# ADD CPP /nologo /MDd /w /W0 /Gm /GX /ZI /Od /I "$(CREATIS)\glib-1.3\src\glib" /I "..\jpeg\libijg8" /I "..\jpeg\libijg12" /I "..\jpeg\ljpg" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GDCMDLL_EXPORTS" /YX /FD /GZ /c\r
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "_DEBUG"\r
-# ADD RSC /l 0x40c /d "_DEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib msvcrtd.lib msvcprtd.lib Wsock32.lib /nologo /dll /machine:I386 /nodefaultlib /out:"..\..\lib\gdcmdll.dll" /pdbtype:sept\r
-# SUBTRACT LINK32 /incremental:no /debug\r
-# 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
-# End Special Build Tool\r
-\r
-!ENDIF \r
-\r
-# Begin Target\r
-\r
-# Name "gdcmdll - Win32 Release"\r
-# Name "gdcmdll - Win32 Debug"\r
-# Begin Group "Source Files"\r
-\r
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDebug.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDir.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDirElement.cxx\r
-# 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
-\r
-SOURCE=..\gdcmDictEntry.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDictSet.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDirList.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmException.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmFile.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmGlobal.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmHeader.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmHeaderEntry.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmHeaderHelper.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmJpeg.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmJpeg12.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmJpeg2000.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmObject.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmParsePixels.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmParser.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=..\gdcmTS.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmUtil.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmVR.cxx\r
-# End Source File\r
-# End Group\r
-# Begin Group "Header Files"\r
-\r
-# PROP Default_Filter "h;hpp;hxx;hm;inl"\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcm.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDebug.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmCommon.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDir.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDirElement.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDirImage.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDirMeta.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDirPatient.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDirSerie.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDicomDirStudy.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDict.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDictEntry.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDictSet.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmDirList.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmException.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmFile.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmGlobal.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmHeader.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmHeaderEntry.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmHeaderHelper.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmObject.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmParser.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmTS.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmUtil.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\gdcmVR.h\r
-# End Source File\r
-# End Group\r
-# Begin Group "Resource Files"\r
-\r
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"\r
-# End Group\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\libgdcmljpeg.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\libgdcmijpeg8.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\libgdcmijpeg12.lib\r
-# End Source File\r
-# End Target\r
-# End Project\r
diff --git a/src/win32/libgdcmijpeg12.dsp b/src/win32/libgdcmijpeg12.dsp
deleted file mode 100644 (file)
index 786828e..0000000
+++ /dev/null
@@ -1,295 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libgdcmijpeg12" - Package Owner=<4>\r
-# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
-# ** DO NOT EDIT **\r
-\r
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102\r
-\r
-CFG=libgdcmijpeg12 - Win32 Debug\r
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
-!MESSAGE use the Export Makefile command and run\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "libgdcmijpeg12.mak".\r
-!MESSAGE \r
-!MESSAGE You can specify a configuration when running NMAKE\r
-!MESSAGE by defining the macro CFG on the command line. For example:\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "libgdcmijpeg12.mak" CFG="libgdcmijpeg12 - Win32 Debug"\r
-!MESSAGE \r
-!MESSAGE Possible choices for configuration are:\r
-!MESSAGE \r
-!MESSAGE "libgdcmijpeg12 - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE "libgdcmijpeg12 - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE \r
-\r
-# Begin Project\r
-# PROP AllowPerConfigDependencies 0\r
-# PROP Scc_ProjName ""\r
-# PROP Scc_LocalPath ""\r
-CPP=cl.exe\r
-MTL=midl.exe\r
-RSC=rc.exe\r
-\r
-!IF  "$(CFG)" == "libgdcmijpeg12 - Win32 Release"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 0\r
-# PROP BASE Output_Dir "Release"\r
-# PROP BASE Intermediate_Dir "Release"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 0\r
-# PROP Output_Dir "Release__libgdcmijpeg12"\r
-# PROP Intermediate_Dir "Release__libgdcmijpeg12"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMIJPEG12_EXPORTS" /YX /FD /c\r
-# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMIJPEG12_EXPORTS" /YX /FD /c\r
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "NDEBUG"\r
-# ADD RSC /l 0x40c /d "NDEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386\r
-# ADD LINK32 kernel32.lib msvcrt.lib /nologo /dll /machine:I386 /nodefaultlib /out:"..\..\lib\libgdcmijpeg12.dll"\r
-# Begin Special Build Tool\r
-SOURCE="$(InputPath)"\r
-PostBuild_Cmds=copy     Release__libgdcmijpeg12\libgdcmijpeg12.lib     ..\..\lib\      copy     ..\..\lib\libgdcmijpeg12.dll     ..\..\gdcmPython\     copy     ..\..\lib\libgdcmijpeg12.dll     ..\..\vtk\    copy  ..\..\lib\libgdcmijpeg12.dll            ..\..\test\ \r
-# End Special Build Tool\r
-\r
-!ELSEIF  "$(CFG)" == "libgdcmijpeg12 - Win32 Debug"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 1\r
-# PROP BASE Output_Dir "Debug"\r
-# PROP BASE Intermediate_Dir "Debug"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 1\r
-# PROP Output_Dir "Debug__libgdcmijpeg12"\r
-# PROP Intermediate_Dir "Debug__libgdcmijpeg12"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMIJPEG12_EXPORTS" /YX /FD /GZ /c\r
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMIJPEG12_EXPORTS" /YX /FD /GZ /c\r
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "_DEBUG"\r
-# ADD RSC /l 0x40c /d "_DEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib msvcrtd.lib /nologo /dll /debug /machine:I386 /nodefaultlib /out:"..\..\lib\libgdcmijpeg12.dll" /pdbtype:sept\r
-# Begin Special Build Tool\r
-SOURCE="$(InputPath)"\r
-PostBuild_Cmds=copy     Debug__libgdcmijpeg12\libgdcmijpeg12.lib     ..\..\lib\        copy     ..\..\lib\libgdcmijpeg12.dll     ..\..\gdcmPython\     copy     ..\..\lib\libgdcmijpeg12.dll     ..\..\vtk\    copy  ..\..\lib\libgdcmijpeg12.dll            ..\..\test\ \r
-# End Special Build Tool\r
-\r
-!ENDIF \r
-\r
-# Begin Target\r
-\r
-# Name "libgdcmijpeg12 - Win32 Release"\r
-# Name "libgdcmijpeg12 - Win32 Debug"\r
-# Begin Group "Source Files"\r
-\r
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcapimin12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcapistd12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jccoefct12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jccolor12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcdctmgr12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jchuff12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcinit12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcmainct12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcmarker12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcmaster12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcomapi12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcparam12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcphuff12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcprepct12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jcsample12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jctrans12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdapimin12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdapistd12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdatadst12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdatasrc12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdcoefct12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdcolor12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jddctmgr12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdhuff12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdinput12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdmainct12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdmarker12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdmaster12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdmerge12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdphuff12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdpostct12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdsample12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jdtrans12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jerror12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jfdctflt12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jfdctfst12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jfdctint12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jidctflt12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jidctfst12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jidctint12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jidctred12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jmemmgr12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jmemnobs12.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jquant112.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jquant212.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg12\jutils12.c\r
-# End Source File\r
-# End Group\r
-# Begin Group "Header Files"\r
-\r
-# PROP Default_Filter "h;hpp;hxx;hm;inl"\r
-# End Group\r
-# Begin Group "Resource Files"\r
-\r
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"\r
-# End Group\r
-# End Target\r
-# End Project\r
diff --git a/src/win32/libgdcmijpeg8.dsp b/src/win32/libgdcmijpeg8.dsp
deleted file mode 100644 (file)
index 180cafe..0000000
+++ /dev/null
@@ -1,295 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libgdcmijpeg8" - Package Owner=<4>\r
-# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
-# ** DO NOT EDIT **\r
-\r
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102\r
-\r
-CFG=libgdcmijpeg8 - Win32 Debug\r
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
-!MESSAGE use the Export Makefile command and run\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "libgdcmijpeg8.mak".\r
-!MESSAGE \r
-!MESSAGE You can specify a configuration when running NMAKE\r
-!MESSAGE by defining the macro CFG on the command line. For example:\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "libgdcmijpeg8.mak" CFG="libgdcmijpeg8 - Win32 Debug"\r
-!MESSAGE \r
-!MESSAGE Possible choices for configuration are:\r
-!MESSAGE \r
-!MESSAGE "libgdcmijpeg8 - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE "libgdcmijpeg8 - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE \r
-\r
-# Begin Project\r
-# PROP AllowPerConfigDependencies 0\r
-# PROP Scc_ProjName ""\r
-# PROP Scc_LocalPath ""\r
-CPP=cl.exe\r
-MTL=midl.exe\r
-RSC=rc.exe\r
-\r
-!IF  "$(CFG)" == "libgdcmijpeg8 - Win32 Release"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 0\r
-# PROP BASE Output_Dir "Release"\r
-# PROP BASE Intermediate_Dir "Release"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 0\r
-# PROP Output_Dir "Release__libgdcmijpeg8"\r
-# PROP Intermediate_Dir "Release__libgdcmijpeg8"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMIJPEG8_EXPORTS" /YX /FD /c\r
-# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMIJPEG8_EXPORTS" /YX /FD /c\r
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "NDEBUG"\r
-# ADD RSC /l 0x40c /d "NDEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386\r
-# ADD LINK32 kernel32.lib msvcrt.lib /nologo /dll /machine:I386 /nodefaultlib /out:"..\..\lib\libgdcmijpeg8.dll"\r
-# Begin Special Build Tool\r
-SOURCE="$(InputPath)"\r
-PostBuild_Cmds=copy    Release__libgdcmijpeg8\libgdcmijpeg8.lib    ..\..\lib\          copy    ..\..\lib\libgdcmijpeg8.dll    ..\..\gdcmPython\        copy    ..\..\lib\libgdcmijpeg8.dll    ..\..\vtk\       copy           ..\..\lib\libgdcmijpeg8.dll           ..\..\test\       \r
-# End Special Build Tool\r
-\r
-!ELSEIF  "$(CFG)" == "libgdcmijpeg8 - Win32 Debug"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 1\r
-# PROP BASE Output_Dir "Debug"\r
-# PROP BASE Intermediate_Dir "Debug"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 1\r
-# PROP Output_Dir "Debug__libgdcmijpeg8"\r
-# PROP Intermediate_Dir "Debug__libgdcmijpeg8"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMIJPEG8_EXPORTS" /YX /FD /GZ /c\r
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMIJPEG8_EXPORTS" /YX /FD /GZ /c\r
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "_DEBUG"\r
-# ADD RSC /l 0x40c /d "_DEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib msvcrtd.lib /nologo /dll /debug /machine:I386 /nodefaultlib /out:"..\..\lib\libgdcmijpeg8.dll" /pdbtype:sept\r
-# Begin Special Build Tool\r
-SOURCE="$(InputPath)"\r
-PostBuild_Cmds=copy    Debug__libgdcmijpeg8\libgdcmijpeg8.lib    ..\..\lib\    copy    ..\..\lib\libgdcmijpeg8.dll    ..\..\gdcmPython\        copy    ..\..\lib\libgdcmijpeg8.dll    ..\..\vtk\       copy           ..\..\lib\libgdcmijpeg8.dll           ..\..\test\       \r
-# End Special Build Tool\r
-\r
-!ENDIF \r
-\r
-# Begin Target\r
-\r
-# Name "libgdcmijpeg8 - Win32 Release"\r
-# Name "libgdcmijpeg8 - Win32 Debug"\r
-# Begin Group "Source Files"\r
-\r
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcapimin.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcapistd.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jccoefct.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jccolor.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcdctmgr.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jchuff.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcinit.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcmainct.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcmarker.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcmaster.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcomapi.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcparam.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcphuff.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcprepct.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jcsample.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jctrans.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdapimin.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdapistd.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdatadst.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdatasrc.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdcoefct.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdcolor.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jddctmgr.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdhuff.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdinput.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdmainct.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdmarker.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdmaster.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdmerge.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdphuff.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdpostct.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdsample.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jdtrans.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jerror.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jfdctflt.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jfdctfst.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jfdctint.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jidctflt.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jidctfst.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jidctint.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jidctred.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jmemmgr.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jmemnobs.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jquant1.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jquant2.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\libijg8\jutils.c\r
-# End Source File\r
-# End Group\r
-# Begin Group "Header Files"\r
-\r
-# PROP Default_Filter "h;hpp;hxx;hm;inl"\r
-# End Group\r
-# Begin Group "Resource Files"\r
-\r
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"\r
-# End Group\r
-# End Target\r
-# End Project\r
diff --git a/src/win32/libgdcmljpeg.dsp b/src/win32/libgdcmljpeg.dsp
deleted file mode 100644 (file)
index 68f9dd9..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libgdcmljpeg" - Package Owner=<4>\r
-# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
-# ** DO NOT EDIT **\r
-\r
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102\r
-\r
-CFG=libgdcmljpeg - Win32 Debug\r
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
-!MESSAGE use the Export Makefile command and run\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "libgdcmljpeg.mak".\r
-!MESSAGE \r
-!MESSAGE You can specify a configuration when running NMAKE\r
-!MESSAGE by defining the macro CFG on the command line. For example:\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "libgdcmljpeg.mak" CFG="libgdcmljpeg - Win32 Debug"\r
-!MESSAGE \r
-!MESSAGE Possible choices for configuration are:\r
-!MESSAGE \r
-!MESSAGE "libgdcmljpeg - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE "libgdcmljpeg - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE \r
-\r
-# Begin Project\r
-# PROP AllowPerConfigDependencies 0\r
-# PROP Scc_ProjName ""\r
-# PROP Scc_LocalPath ""\r
-CPP=cl.exe\r
-MTL=midl.exe\r
-RSC=rc.exe\r
-\r
-!IF  "$(CFG)" == "libgdcmljpeg - Win32 Release"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 0\r
-# PROP BASE Output_Dir "Release"\r
-# PROP BASE Intermediate_Dir "Release"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 0\r
-# PROP Output_Dir "Release__libgdcmljpeg"\r
-# PROP Intermediate_Dir "Release__libgdcmljpeg"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMLJPEG_EXPORTS" /YX /FD /c\r
-# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMLJPEG_EXPORTS" /YX /FD /c\r
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "NDEBUG"\r
-# ADD RSC /l 0x40c /d "NDEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386\r
-# ADD LINK32 kernel32.lib msvcrt.lib /nologo /dll /machine:I386 /nodefaultlib /out:"..\..\lib\libgdcmljpeg.dll"\r
-# Begin Special Build Tool\r
-SOURCE="$(InputPath)"\r
-PostBuild_Cmds=copy    Release__libgdcmljpeg\libgdcmljpeg.lib    ..\..\lib\    copy    ..\..\lib\libgdcmljpeg.dll    ..\..\gdcmPython\         copy    ..\..\lib\libgdcmljpeg.dll    ..\..\vtk\        copy           ..\..\lib\libgdcmljpeg.dll           ..\..\test\       \r
-# End Special Build Tool\r
-\r
-!ELSEIF  "$(CFG)" == "libgdcmljpeg - Win32 Debug"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 1\r
-# PROP BASE Output_Dir "Debug"\r
-# PROP BASE Intermediate_Dir "Debug"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 1\r
-# PROP Output_Dir "Debug__libgdcmljpeg"\r
-# PROP Intermediate_Dir "Debug__libgdcmljpeg"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMLJPEG_EXPORTS" /YX /FD /GZ /c\r
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBGDCMLJPEG_EXPORTS" /YX /FD /GZ /c\r
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "_DEBUG"\r
-# ADD RSC /l 0x40c /d "_DEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib msvcrtd.lib /nologo /dll /debug /machine:I386 /nodefaultlib /out:"..\..\lib\libgdcmljpeg.dll" /pdbtype:sept\r
-# Begin Special Build Tool\r
-SOURCE="$(InputPath)"\r
-PostBuild_Cmds=copy    Debug__libgdcmljpeg\libgdcmljpeg.lib    ..\..\lib\      copy    ..\..\lib\libgdcmljpeg.dll    ..\..\gdcmPython\         copy    ..\..\lib\libgdcmljpeg.dll    ..\..\vtk\        copy           ..\..\lib\libgdcmljpeg.dll           ..\..\test\       \r
-# End Special Build Tool\r
-\r
-!ENDIF \r
-\r
-# Begin Target\r
-\r
-# Name "libgdcmljpeg - Win32 Release"\r
-# Name "libgdcmljpeg - Win32 Debug"\r
-# Begin Group "Source Files"\r
-\r
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\ljpg\decomp.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\ljpg\huffd.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\ljpg\jpegutil.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\ljpg\mcu.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\ljpg\predict.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\jpeg\ljpg\read.c\r
-# End Source File\r
-# End Group\r
-# Begin Group "Header Files"\r
-\r
-# PROP Default_Filter "h;hpp;hxx;hm;inl"\r
-# End Group\r
-# Begin Group "Resource Files"\r
-\r
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"\r
-# End Group\r
-# End Target\r
-# End Project\r
index 3d21617b41e12733f19c8a053f0866d0985f58fd..6b2fa6b57ac78452de006db2d321a1f07a1f9a91 100644 (file)
@@ -23,10 +23,8 @@ TARGET_LINK_LIBRARIES(vtkgdcm
 )\r
 \r
 #-----------------------------------------------------------------------------\r
-# See with frog why m4 didn't link to lib, and include cxx file instead ?\r
 SET(vtkgdcmdemo_SOURCES\r
-  testvtkGdcmReader.cxx\r
-#  vtkGdcmReader.cxx\r
+  vtkGdcmDemo.cxx\r
 )\r
 ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES})\r
 TARGET_LINK_LIBRARIES(vtkgdcmdemo \r
@@ -36,10 +34,8 @@ TARGET_LINK_LIBRARIES(vtkgdcmdemo
 )\r
 \r
 #-----------------------------------------------------------------------------\r
-# See with frog why m4 didn't link to lib, and include cxx file instead ?\r
 SET(vtkgdcmViewer_SOURCES\r
   vtkgdcmViewer.cxx\r
-  #vtkGdcmReader.cxx \r
 )\r
 ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES})\r
 TARGET_LINK_LIBRARIES(vtkgdcmViewer \r
similarity index 58%
rename from vtk/testvtkGdcmReader.cxx
rename to vtk/vtkGdcmDemo.cxx
index 198d14ba84a5857c5c87dde6dd022e091949cbf2..d94763cb9fa3744843356265b52be8e1f36013da 100644 (file)
@@ -1,4 +1,18 @@
-// $Header: /cvs/public/gdcm/vtk/Attic/testvtkGdcmReader.cxx,v 1.9 2004/03/30 09:00:40 regrain Exp $
+// $Header: /cvs/public/gdcm/vtk/vtkGdcmDemo.cxx,v 1.1 2004/10/01 12:40:58 frog Exp $
+
+//----------------------------------------------------------------------------
+// A simple straightfoward example of vtkGdcmReader vtk class usage.
+//
+// The vtkGdcmReader vtk class behaves like any other derived class of
+// vtkImageReader. It's usage within a vtk pipeline hence follows the
+// classical vtk pattern.
+// This example is a really simple Dicom image viewer demo.
+// It builds the minimal vtk rendering pipeline in order to display
+// (with the native vtk classes) a single Dicom image parsed with gdcm.
+//
+// Usage: the filename of the Dicom image to display should be given as
+//        command line arguments,
+//----------------------------------------------------------------------------
 
 #include <vtkRenderer.h>
 #include <vtkRenderWindow.h>
   
 int main( int argc, char *argv[] )
 {
-   int *taille;
-   int x,y;
-
-   // Lecture de l'image
    vtkGdcmReader *reader = vtkGdcmReader::New();
-//   reader->DebugOn();
-   // Alloc Used High
-   // 8 8 7 U : OK
-   // reader->SetFileName("../gdcmData/CT-MONO2-8-abdo.dcm");
-   // 16 12 11 U : OK but saturated
-   // reader->SetFileName("../gdcmData/CT-MONO2-12-lomb-an2.acr2");
-   // 16 12 11 U OK
-   //OKreader->SetFileName("../gdcmData/MR-MONO2-12-an2.acr2");
-   // 16 10 9 U OK
-   //reader->SetFileName("../gdcmData/CR-MONO1-10-chest.dcm");
-   //reader->Update();
-   // 16 16 15 S: OK saturation ?
-   // reader->SetFileName("../gdcmData/CT-MONO2-16-ort.dcm");
-   // 16 16 15 S:
-
-       if (argc > 1)
-     reader->SetFileName( argv[1] );
-       else
-     reader->SetFileName("../gdcmData/CT-MONO2-16-ankle.dcm");
+
+   if (argc < 2)
+   {
+      std::cerr << "Usage: " << argv[0] << " image.dcm\n";
+      return 0;
+   }
+
+   reader->SetFileName( argv[1] );
 
    reader->UpdateWholeExtent();
-//   reader->Update();
-   vtkImageData *ima = reader->GetOutput();
-   taille=ima->GetDimensions();
-   x = taille[0];  y = taille[1];
+   vtkImageData* ima = reader->GetOutput();
+
+   ///////// Display image size on terminal:
+   int* Size = ima->GetDimensions();
    cout << "Dimensions of the picture as read with gdcm: "
-        << x << " x " << y << endl;
+        << Size[0] << " x " << Size[1] << endl;
 
-   vtkLookupTable *VTKtable = vtkLookupTable::New();
+   ///////// A simple display pipeline:
+   // 
+   vtkLookupTable* VTKtable = vtkLookupTable::New();
    VTKtable->SetNumberOfColors(1000);
    VTKtable->SetTableRange(0,1000);
    VTKtable->SetSaturationRange(0,0);
@@ -66,25 +67,30 @@ int main( int argc, char *argv[] )
    VTKtable->SetValueRange(0,1);
    VTKtable->SetAlphaRange(1,1);
    VTKtable->Build();
-   // Texture
-   vtkTexture * VTKtexture = vtkTexture::New();
+
+   //// Texture
+   vtkTexture* VTKtexture = vtkTexture::New();
    VTKtexture->SetInput(ima);
    VTKtexture->InterpolateOn();
    VTKtexture->SetLookupTable(VTKtable);
-   // PlaneSource
-   vtkPlaneSource *VTKplane = vtkPlaneSource::New();
+
+   //// PlaneSource
+   vtkPlaneSource* VTKplane = vtkPlaneSource::New();
    VTKplane->SetOrigin( -0.5, -0.5, 0.0);
    VTKplane->SetPoint1(  0.5, -0.5, 0.0);
    VTKplane->SetPoint2( -0.5,  0.5, 0.0);
-   // PolyDataMapper
+
+   //// PolyDataMapper
    vtkPolyDataMapper *VTKplaneMapper = vtkPolyDataMapper::New();
    VTKplaneMapper->SetInput(VTKplane->GetOutput());
-   // Actor
+
+   //// Actor
    vtkActor* VTKplaneActor = vtkActor::New();
    VTKplaneActor->SetTexture(VTKtexture);
    VTKplaneActor->SetMapper(VTKplaneMapper);
    VTKplaneActor->PickableOn();
-   //
+
+   //// Final rendering with simple interactor:
    vtkRenderer        *ren = vtkRenderer::New();
    vtkRenderWindow *renwin = vtkRenderWindow::New();
    renwin->AddRenderer(ren);
@@ -95,6 +101,7 @@ int main( int argc, char *argv[] )
    renwin->Render();
    iren->Start();
 
+   //// Clean up:
    reader->Delete();
    VTKtable->Delete();
    VTKtexture->Delete();
@@ -107,4 +114,3 @@ int main( int argc, char *argv[] )
 
    return(0);
 }
-
index 709d93da50129a8e50839f51b913ee7dc1acd47c..3f64b40b02ff95ccde180c0206b822613959b4c9 100644 (file)
@@ -1,3 +1,17 @@
+// This example illustrates how the vtkGdcmReader vtk class can be
+// used in order to:
+//  * produce a simple (vtk based) Dicom image STACK VIEWER.
+//  * dump the stack considered as a volume in a vtkStructuredPoints
+//    vtk file: the vtk gdcm wrappers can be seen as a simple way to convert
+//    a stack of Dicom images into a native vtk volume.
+//
+// Usage:
+//  * the filenames of the Dicom images constituting the stack should be
+//    given as command line arguments,
+//  * you can navigate through the stack by hitting any character key,
+//  * the produced vtk file is named "foo.vtk" (in the invocation directory).
+// 
+//----------------------------------------------------------------------------
 #include <iostream>
 
 #include <vtkRenderWindowInteractor.h>
diff --git a/vtk/win32/.cvsignore b/vtk/win32/.cvsignore
deleted file mode 100644 (file)
index b452d01..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-*Debug*
-*Release*
-*.plg
\ No newline at end of file
diff --git a/vtk/win32/vtkGdcmTest.dsp b/vtk/win32/vtkGdcmTest.dsp
deleted file mode 100644 (file)
index 6c8d8ca..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-# Microsoft Developer Studio Project File - Name="vtkGdcmTest" - Package Owner=<4>\r
-# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
-# ** DO NOT EDIT **\r
-\r
-# TARGTYPE "Win32 (x86) Console Application" 0x0103\r
-\r
-CFG=vtkGdcmTest - Win32 Debug\r
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
-!MESSAGE use the Export Makefile command and run\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "vtkGdcmTest.mak".\r
-!MESSAGE \r
-!MESSAGE You can specify a configuration when running NMAKE\r
-!MESSAGE by defining the macro CFG on the command line. For example:\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "vtkGdcmTest.mak" CFG="vtkGdcmTest - Win32 Debug"\r
-!MESSAGE \r
-!MESSAGE Possible choices for configuration are:\r
-!MESSAGE \r
-!MESSAGE "vtkGdcmTest - Win32 Release" (based on "Win32 (x86) Console Application")\r
-!MESSAGE "vtkGdcmTest - Win32 Debug" (based on "Win32 (x86) Console Application")\r
-!MESSAGE \r
-\r
-# Begin Project\r
-# PROP AllowPerConfigDependencies 0\r
-# PROP Scc_ProjName ""\r
-# PROP Scc_LocalPath ""\r
-CPP=cl.exe\r
-RSC=rc.exe\r
-\r
-!IF  "$(CFG)" == "vtkGdcmTest - Win32 Release"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 0\r
-# PROP BASE Output_Dir "vtkGdcmTest___Win32_Release"\r
-# PROP BASE Intermediate_Dir "vtkGdcmTest___Win32_Release"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 0\r
-# PROP Output_Dir "vtkGdcmTest___Win32_Release"\r
-# PROP Intermediate_Dir "vtkGdcmTest___Win32_Release"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD CPP /nologo /W3 /GX /O2 /I "$(VTKPATH)\include\vtk" /I "..\..\src" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD BASE RSC /l 0x40c /d "NDEBUG"\r
-# ADD RSC /l 0x40c /d "NDEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"..\vtkGdcmTest.exe"\r
-\r
-!ELSEIF  "$(CFG)" == "vtkGdcmTest - Win32 Debug"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 1\r
-# PROP BASE Output_Dir "vtkGdcmTest___Win32_Debug0"\r
-# PROP BASE Intermediate_Dir "vtkGdcmTest___Win32_Debug0"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 1\r
-# PROP Output_Dir "vtkGdcmTest___Win32_Debug0"\r
-# PROP Intermediate_Dir "vtkGdcmTest___Win32_Debug0"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c\r
-# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "$(VTKPATH)\include\vtk" /I "..\..\src" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c\r
-# ADD BASE RSC /l 0x40c /d "_DEBUG"\r
-# ADD RSC /l 0x40c /d "_DEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\vtkGdcmTest.exe" /pdbtype:sept\r
-\r
-!ENDIF \r
-\r
-# Begin Target\r
-\r
-# Name "vtkGdcmTest - Win32 Release"\r
-# Name "vtkGdcmTest - Win32 Debug"\r
-# Begin Group "Source Files"\r
-\r
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
-# Begin Source File\r
-\r
-SOURCE=..\testvtkGdcmReader.cxx\r
-# End Source File\r
-# End Group\r
-# Begin Group "Header Files"\r
-\r
-# PROP Default_Filter "h;hpp;hxx;hm;inl"\r
-# End Group\r
-# Begin Group "Resource Files"\r
-\r
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkRendering.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkFiltering.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkGraphics.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkImaging.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkIO.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkCommon.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\vtkgdcm.lib\r
-# End Source File\r
-# End Group\r
-# End Target\r
-# End Project\r
diff --git a/vtk/win32/vtkgdcm.dsp b/vtk/win32/vtkgdcm.dsp
deleted file mode 100644 (file)
index 13d5e66..0000000
+++ /dev/null
@@ -1,251 +0,0 @@
-# Microsoft Developer Studio Project File - Name="vtkgdcm" - Package Owner=<4>\r
-# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
-# ** DO NOT EDIT **\r
-\r
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102\r
-\r
-CFG=vtkgdcm - Win32 Debug\r
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
-!MESSAGE use the Export Makefile command and run\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "vtkgdcm.mak".\r
-!MESSAGE \r
-!MESSAGE You can specify a configuration when running NMAKE\r
-!MESSAGE by defining the macro CFG on the command line. For example:\r
-!MESSAGE \r
-!MESSAGE NMAKE /f "vtkgdcm.mak" CFG="vtkgdcm - Win32 Debug"\r
-!MESSAGE \r
-!MESSAGE Possible choices for configuration are:\r
-!MESSAGE \r
-!MESSAGE "vtkgdcm - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE "vtkgdcm - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")\r
-!MESSAGE \r
-\r
-# Begin Project\r
-# PROP AllowPerConfigDependencies 0\r
-# PROP Scc_ProjName ""\r
-# PROP Scc_LocalPath ""\r
-CPP=cl.exe\r
-MTL=midl.exe\r
-RSC=rc.exe\r
-\r
-!IF  "$(CFG)" == "vtkgdcm - Win32 Release"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 0\r
-# PROP BASE Output_Dir "Release"\r
-# PROP BASE Intermediate_Dir "Release"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 0\r
-# PROP Output_Dir "Release"\r
-# PROP Intermediate_Dir "Release"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "VTKGDCM_EXPORTS" /YX /FD /c\r
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "$(VTKPATH)\include\vtk" /I "..\..\src" /I "..\..\src\jpeg\libijg8" /I "..\..\src\jpeg\libijg12" /I "..\..\src\jpeg\ljpg" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "VTKGDCM_EXPORTS" /YX /FD /c\r
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "NDEBUG"\r
-# ADD RSC /l 0x40c /d "NDEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386\r
-# ADD LINK32 Wsock32.lib kernel32.lib user32.lib gdi32.lib /nologo /dll /machine:I386 /out:"..\..\lib\vtkgdcm.dll" /libpath:"$(VTKPATH)\lib\vtk ../../lib/"\r
-# Begin Special Build Tool\r
-SOURCE="$(InputPath)"\r
-PostBuild_Cmds=copy ..\..\lib\vtkgdcm.dll ..\  copy Release\vtkgdcm.lib ..\..\lib\vtkgdcm.lib\r
-# End Special Build Tool\r
-\r
-!ELSEIF  "$(CFG)" == "vtkgdcm - Win32 Debug"\r
-\r
-# PROP BASE Use_MFC 0\r
-# PROP BASE Use_Debug_Libraries 1\r
-# PROP BASE Output_Dir "Debug"\r
-# PROP BASE Intermediate_Dir "Debug"\r
-# PROP BASE Target_Dir ""\r
-# PROP Use_MFC 0\r
-# PROP Use_Debug_Libraries 1\r
-# PROP Output_Dir "Debug"\r
-# PROP Intermediate_Dir "Debug"\r
-# PROP Ignore_Export_Lib 0\r
-# PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "VTKGDCM_EXPORTS" /YX /FD /GZ /c\r
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "$(VTKPATH)\include\vtk" /I "..\..\src" /I "..\..\src\jpeg\libijg8" /I "..\..\src\jpeg\libijg12" /I "..\..\src\jpeg\ljpg" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "VTKGDCM_EXPORTS" /YX /FD /GZ /c\r
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
-# ADD BASE RSC /l 0x40c /d "_DEBUG"\r
-# ADD RSC /l 0x40c /d "_DEBUG"\r
-BSC32=bscmake.exe\r
-# ADD BASE BSC32 /nologo\r
-# ADD BSC32 /nologo\r
-LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 Wsock32.lib kernel32.lib user32.lib gdi32.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"msvcrt" /out:"..\..\lib\vtkgdcm.dll" /pdbtype:sept /libpath:"$(VTKPATH)\lib\vtk ../../lib/"\r
-# Begin Special Build Tool\r
-SOURCE="$(InputPath)"\r
-PostBuild_Cmds=copy ..\..\lib\vtkgdcm.dll ..\  copy Debug\vtkgdcm.lib ..\..\lib\vtkgdcm.lib\r
-# End Special Build Tool\r
-\r
-!ENDIF \r
-\r
-# Begin Target\r
-\r
-# Name "vtkgdcm - Win32 Release"\r
-# Name "vtkgdcm - Win32 Debug"\r
-# Begin Group "Source Files"\r
-\r
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmDebug.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmDicomDirElement.cxx\r
-# 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
-\r
-SOURCE=..\..\src\gdcmDictEntry.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmDictSet.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmDirList.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmException.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmFile.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmGlobal.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmHeader.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmHeaderEntry.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmHeaderHelper.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmJpeg.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmJpeg12.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmJpeg2000.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmObject.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmParsePixels.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmParser.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\gdcmTS.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmUtil.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmVR.cxx\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\vtkGdcmReader.cxx\r
-# End Source File\r
-# End Group\r
-# Begin Group "Header Files"\r
-\r
-# PROP Default_Filter "h;hpp;hxx;hm;inl"\r
-# End Group\r
-# Begin Group "Resource Files"\r
-\r
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkIO.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkCommon.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=c:\Creatis\vtkDistrib\lib\vtk\vtkFiltering.lib\r
-# End Source File\r
-# End Group\r
-# Begin Source File\r
-\r
-SOURCE=..\..\src\gdcmDirList.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\libgdcmljpeg.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\libgdcmijpeg8.lib\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\libgdcmijpeg12.lib\r
-# End Source File\r
-# End Target\r
-# End Project\r