# BUG: This is only needed with cmake <= 2.0.5
SET_SOURCE_FILES_PROPERTIES(gdcm.i PROPERTIES SWIG_FLAGS "")
# END OF BUG
+#FIXME :
+#where must we put the keyword SHARED
+#- just like in ADD_LIBRARY(vtkgdcmPython SHARED ${gdcmWrapSOURCES}) -
+#to allow use of a static/shared libray ?
+# JPRx
SWIG_ADD_MODULE(gdcm python gdcm.i) #gdcm_wrap.cxx, or gdcmPYTHON_wrap.cxx
SWIG_LINK_LIBRARIES(gdcm gdcm ${PYTHON_LIBRARIES})
dim = reader.GetOutput().GetDimensions()
viewer.SetSize(dim[0],dim[1])
if(dim[2] != 1):
- # For multifame dicom, take a snapshot of the center slice (+/- 1)
+ # For multiframe dicom, take a snapshot of the center slice (+/- 1)
viewer.SetZSlice(dim[2] / 2)
else:
viewer.SetZSlice(0)
dim = reader.GetOutput().GetDimensions()
viewer.SetSize(dim[0],dim[1])
if(dim[2] != 1):
- # For multifame dicom, take a snapshot of the center slice (+/- 1)
+ # For multiframe dicom, take a snapshot of the center slice (+/- 1)
viewer.SetZSlice(dim[2] / 2)
else:
viewer.SetZSlice(0)