]> Creatis software - clitk.git/commitdiff
Add a close source feature to read usf files.
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Fri, 13 Jul 2012 14:19:03 +0000 (16:19 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Fri, 13 Jul 2012 14:19:03 +0000 (16:19 +0200)
common/CMakeLists.txt
common/clitkConfiguration.h.in
common/clitkIO.cxx
vv/vvMainWindow.cxx

index 336e22558c7e8628aa2b27e32550c3676c026182..4dcf32530b2d6ab661d0420b543f248d50de8ec1 100644 (file)
@@ -33,6 +33,12 @@ SET(clitkCommon_SRC
   vvImageReader.cxx
   vvImageWriter.cxx
 )
+IF(CLITK_PRIVATE_FEATURES)
+  SET(clitkCommon_SRC ${clitkCommon_SRC}
+    ${PROJECT_SOURCE_DIR}/private_features/clitkUsfImageIO.cxx
+    ${PROJECT_SOURCE_DIR}/private_features/clitkUsfImageIOFactory.cxx
+    )
+ENDIF(CLITK_PRIVATE_FEATURES)
 
 ### Declare clitkCommon library
 ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC})
index 5f99d7a9c7c27e3a83ac6e6b66999d24888e7a4d..8d1e1db7c10f7d793ea0accfbe34c856df69d3d4 100644 (file)
@@ -23,6 +23,7 @@
 
 #cmakedefine01 CLITK_EXPERIMENTAL
 #cmakedefine01 CLITK_MEMORY_INFO
+#cmakedefine01 CLITK_PRIVATE_FEATURES
 
 // Global environment variables
 #define OS_NAME "@CMAKE_SYSTEM@"
index 1acd352808ba3ff8f01a8beaa6cd0e2db2ddc66e..011147d868fedb67d05b17cd3ec5ac15ec1b6135 100644 (file)
 #include "clitkXdrImageIOFactory.h"
 #include "clitkHndImageIOFactory.h"
 #include "clitkGateAsciiImageIOFactory.h"
+#include "clitkConfiguration.h"
+#if CLITK_PRIVATE_FEATURES
+  #include "clitkUsfImageIOFactory.h"
+#endif
 
 //--------------------------------------------------------------------
 // Register factories
 void clitk::RegisterClitkFactories()
 {
+#if CLITK_PRIVATE_FEATURES
+  clitk::UsfImageIOFactory::RegisterOneFactory();
+#endif
   clitk::GateAsciiImageIOFactory::RegisterOneFactory();
   clitk::DicomRTDoseIOFactory::RegisterOneFactory();
 #if ITK_VERSION_MAJOR <= 3
index 46b0ecbb2fd9f2bb1a7656876978d531c734631c..9fc078cb1c09dbcdd362e17cda4fbdb5b6f75eeb 100644 (file)
 #define COLUMN_RELOAD_IMAGE 6
 #define COLUMN_IMAGE_NAME 7
 
-#define EXTENSIONS "Images ( *.bmp *.png *.jpeg *.jpg *.tif *.mhd *.mha *.hdr *.vox *.his *.xdr *.SCAN *.nii *.nrrd *.nhdr)"
+#if CLITK_PRIVATE_FEATURES
+  #define EXTENSIONS "Images ( *.bmp *.png *.jpeg *.jpg *.tif *.mhd *.mha *.hdr *.vox *.his *.xdr *.SCAN *.nii *.nrrd *.nhdr *.usf)"
+#else
+  #define EXTENSIONS "Images ( *.bmp *.png *.jpeg *.jpg *.tif *.mhd *.mha *.hdr *.vox *.his *.xdr *.SCAN *.nii *.nrrd *.nhdr)"
+#endif
 
 /*Data Tree values
   0,Qt::UserRole full filename