vtkCommonPython
vtkIOPython)
ENDIF (GDCM_WRAP_PYTHON)
+
+ #generate a setup.py according to VTK installation
+ #put it in subdir in order to not override old one
+ CONFIGURE_FILE(
+ ${GDCM_SOURCE_DIR}/gdcmPython/setup.py.in
+ ${GDCM_BINARY_DIR}/gdcmPython/setup.py
+ )
+
ENDIF(GDCM_VTK)
#I should install in path of PYTHON_LIBRARY
unsigned char * newDest = (unsigned char *)malloc(lgrTotale);
unsigned char * a = (unsigned char *)destination;
- unsigned char * lutRGBA = (unsigned char *)GetLUTRGBA();
+ unsigned char * lutRGBA = GetLUTRGBA();
if (lutRGBA) {
int l = lgrTotaleRaw;
memmove(newDest, destination, l);// move Gray pixels to temp area
-// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.115 2003/11/12 15:35:19 jpr Exp $
+// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.116 2003/11/13 10:23:40 malaterre Exp $
#include "gdcmHeader.h"
* @return Lookup Table RGBA
*/
-void * gdcmHeader::GetLUTRGBA(void) {
+unsigned char * gdcmHeader::GetLUTRGBA(void) {
// Not so easy : see
// http://www.barre.nom.fr/medical/dicom2/limitations.html#Color%20Lookup%20Tables
// and OT-PAL-8-face.dcm
-// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.h,v 1.43 2003/11/12 15:35:19 jpr Exp $
+// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.h,v 1.44 2003/11/13 10:23:40 malaterre Exp $
#ifndef GDCMHEADER_H
#define GDCMHEADER_H
std::string GetTransferSyntaxName(void);
int HasLUT(void);
int GetLUTNbits(void);
- void * GetLUTRGBA(void);
+ unsigned char * GetLUTRGBA(void);
};
-// $Header: /cvs/public/gdcm/vtk/vtkGdcmReader.cxx,v 1.27 2003/11/12 14:06:36 malaterre Exp $
+// $Header: /cvs/public/gdcm/vtk/vtkGdcmReader.cxx,v 1.28 2003/11/13 10:23:41 malaterre Exp $
// //////////////////////////////////////////////////////////////
// WARNING TODO CLENAME
// Actual limitations of this code:
{
size = GdcmFile.GetImageDataSizeRaw();
Source = (unsigned char*) GdcmFile.GetImageDataRaw();
- unsigned char *Lut = (unsigned char*) GdcmFile.GetLUTRGBA();
+ unsigned char *Lut = GdcmFile.GetLUTRGBA();
if(!this->LookupTable) this->LookupTable = vtkLookupTable::New();
this->LookupTable->SetNumberOfTableValues(256);