OPTION(USE_GDCM ON)
OPTION(USE_GDCM2 OFF)
-
+ MESSAGE(STATUS "GDCM LIB ....= ${GDCM_LIBRARIES}")
+IF(USE_GDCM2)
+ OPTION(USE_GDCM_ANOM "use gdcm2 anonymizer tool" OFF)
+ #TO DO TEST IF GDCM_USE_SYSTEM_OPENSSL is valid
+ENDIF(USE_GDCM2)
CREA_FIND_AND_USE_LIBRARIES()
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
-OPTION(BUILD_V2 "Build Version 2 ?" ON)
-IF (BUILD_V2)
- SET(LIBNAME creaImageIO2)
- INCLUDE_DIRECTORIES(
- ${PROJECT_BINARY_DIR}
- ${PROJECT_SOURCE_DIR}/src2
- )
- SUBDIRS(src2)
-ELSE (BUILD_V2)
- SET(LIBNAME creaImageIO)
- INCLUDE_DIRECTORIES(
+SET(LIBNAME creaImageIO)
+ INCLUDE_DIRECTORIES(
${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}/src
)
- SUBDIRS(src)
-ENDIF (BUILD_V2)
+SUBDIRS(src)
+
OPTION(BUILD_CREA_BRUKER "Build creaIRM with creaBruker?" ON)
-IF (BUILD_V2)
+
SUBDIRS(gimmick)
SUBDIRS(wxGimmick)
SUBDIRS(TestWxGimmickReaderDialog)
SUBDIRS(TestGimmickReaderDialog)
-ELSE (BUILD_V2)
- SUBDIRS(TestWxGimmickDialog)
-ENDIF (BUILD_V2)
+ SUBDIRS(TestWxGimmickReaderDialogJava)
+#LSE (BUILD_V2)
+ # SUBDIRS(TestWxGimmickDialog)
+#ENDIF (BUILD_V2)
ADD_EXECUTABLE(TestGimmickReaderDialog main)
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES( TestGimmickReaderDialog creaImageIO2 )
+TARGET_LINK_LIBRARIES( TestGimmickReaderDialog creaImageIO )
INSTALL_TARGETS(/bin/ TestGimmickReaderDialog )
ADD_EXECUTABLE(TestWxGimmickDialog MACOSX_BUNDLE main)
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES( TestWxGimmickDialog creaImageIO2 )
+TARGET_LINK_LIBRARIES( TestWxGimmickDialog creaImageIO )
INSTALL_TARGETS(/bin/ TestWxGimmickDialog )
ADD_EXECUTABLE(TestWxGimmickReaderDialog MACOSX_BUNDLE main)
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES( TestWxGimmickReaderDialog creaImageIO2 )
+TARGET_LINK_LIBRARIES( TestWxGimmickReaderDialog creaImageIO )
INSTALL_TARGETS(/bin/ TestWxGimmickReaderDialog )
#include <creaImageIOSystem.h>
#include <creaWx.h>
#include <creaImageIOWxGimmickReaderDialog.h>
-
+#include "vtkMetaImageWriter.h"
+#include "vtkMetaImageReader.h"
#include <creaVtkBasicSlicer.h>
+
+//
+//#pragma comment(lib, "creaImageIO.lib")
+//#pragma comment(lib, "DelayImp.lib")
+//
+//
+//// Tell the linker that my DLL should be delay loaded
+////#pragma comment(linker, "/DelayLoad:creaImageIO.Dll")
+//\ f
+//// Tell the linker that I want to be able to unload my DLL
+//#pragma comment(linker, "/Delay:unload")
+//
+
class myApp : public wxApp
{
public:
min_dim,
max_dim,
output_dim,
- threads);
+
+ threads);
+ /* clock_t endwait;
+ endwait = clock () + CLOCKS_PER_SEC ;
+ while (clock() < endwait ) {}*/
w.ShowModal();
if (w.GetReturnCode() == wxID_OK)
//Puts images
std::vector<vtkImageData*> images;
- w.GetSelectedImages(images,output_dim);
+ w.GetSelectedImages(images,3);
+
+// images[1]->UpdateInformation();
+ /* vtkMetaImageReader *r= vtkMetaImageReader::New();
+ r->SetFileName("c:\\toto.mhd");
+ double zz[3];
+ images[0]->GetSpacing(zz);
+
+ vtkMetaImageWriter* ww = vtkMetaImageWriter::New();
+ ww->SetFileName("c:\\toto2.mhd");
+ ww->SetInput(images[0]);
+ ww->GetInput()->ShallowCopy(images[0]);
+ ww->UpdateInformation();
+ ww->GetInput()->GetSpacing(zz);
+
+
+//>GetImageDataInput(0)->GetSpacing(zz);
+ images[0]->Delete();
+
+ ww->Write();
+ ww->Delete();
+*/
+
+
+
+ //w.GetSelectedImages(images,output_dim);
std::cout<<images.size()<<std::endl;
crea::VtkBasicSlicer(images.front());
}
else if (w.GetReturnCode() == wxID_CANCEL)
{
+
w.OnExit();
std::cout << "$$$$ main : user clicked 'CANCEL' $$$$"<<std::endl;
}
<<std::endl;
}
+
// std::cout << "$$$$ main : deleting dialog"<<std::endl;
// delete w;
std::cout << "$$$$$$$$$$$$$$$$$$$$ main ended "<<std::endl;
ADD_EXECUTABLE(gimmick ${SOURCES})
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES( gimmick creaImageIO2 )
+TARGET_LINK_LIBRARIES( gimmick creaImageIO )
INSTALL_TARGETS(/bin/ gimmick )
ADD_EXECUTABLE(${NAME} MACOSX_BUNDLE main)
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES( ${NAME} creaImageIO2 )
+TARGET_LINK_LIBRARIES( ${NAME} creaImageIO )
INSTALL_TARGETS(/bin/ ${NAME} )
# Aditional INSTALL for CPACK mecanism.
IF (WIN32)
INSTALL( FILES ${PROJECT_BINARY_DIR}/RelWithDebInfo/sqlite3.dll DESTINATION bin )
- INSTALL( FILES ${PROJECT_SOURCE_DIR}/win32/sqlite3.h DESTINATION include/creaImageIO2 )
+ INSTALL( FILES ${PROJECT_SOURCE_DIR}/win32/sqlite3.h DESTINATION include/creaImageIO )
ENDIF (WIN32)
ELSE (WIN32)
SET(INSTALL_DATA_DIR "share/gimmick/")
ENDIF (WIN32)
-INSTALL( FILES ${PROJECT_SOURCE_DIR}/src2/data/localdatabase_Descriptor.dscp DESTINATION ${INSTALL_DATA_DIR} )
+INSTALL( FILES ${PROJECT_SOURCE_DIR}/src/data/localdatabase_Descriptor.dscp DESTINATION ${INSTALL_DATA_DIR} )
-SET(LIBRARY_NAME creaImageIO2)
+SET(LIBRARY_NAME creaImageIO)
FILE(GLOB SOURCES_CREAIMAGEIO
IF(USE_GDCM2)
FILE(GLOB SOURCES_CREAIMAGEIO_IMG_DICOM_READER
- creaImageIODicomImageReader2.cpp)
+ creaImageIODicomImageReader2.cpp
+ creaImageIODicomScanner.cpp)
ENDIF(USE_GDCM2)
# Image Readers
# ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
# )
SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS
- src2
+ src
win32
)
SET(${LIBRARY_NAME}_HAS_ADDITIONAL_CONFIG_FILE TRUE)
SET(${LIBRARY_NAME}_ADDITIONAL_CONFIG_FILE
- ${PROJECT_SOURCE_DIR}/src2/Additional${LIBRARY_NAME}Config.cmake.in)
+ ${PROJECT_SOURCE_DIR}/src/Additional${LIBRARY_NAME}Config.cmake.in)
SET(${LIBRARY_NAME}_ADDITIONAL_USE_FILE
- ${PROJECT_SOURCE_DIR}/src2/AdditionalUse${LIBRARY_NAME}.cmake.in)
+ ${PROJECT_SOURCE_DIR}/src/AdditionalUse${LIBRARY_NAME}.cmake.in)
# Invoke the advanced macro
CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
IF (WIN32)
- SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src2/data)
+ SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src/data)
SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/bin/Shared/gimmick)
ELSE (WIN32)
- SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src2/data)
+ SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src/data)
SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/share/gimmick)
ENDIF (WIN32)
CREA_CPDIR(${INPUT_DATA_DIR} ${OUTPUT_DATA_DIR})
INCLUDE_DIRECTORIES(
# ${PROJECT_BINARY_DIR}
- ${PROJECT_SOURCE_DIR}/src2
-# ${PROJECT_SOURCE_DIR}/src2/CppSQLite3
+ ${PROJECT_SOURCE_DIR}/src
+# ${PROJECT_SOURCE_DIR}/src/CppSQLite3
)
{
mGimmick->Finalize();
}
- deleteMessage();
+
}
-void WxGimmickReaderDialog::deleteMessage()
- {
- deleteGimmickDebugMessage();
- };
///Callback method on a selection
void WxGimmickReaderDialog::OnValid(bool t)
{
</li>
<li>09/02/09 : <span class="anchor" id="line-12"></span>
<ul>
- <li>new sources in src2 : create a lib called creaImageIO2
+ <li>new sources in src : create a lib called creaImageIO
<span class="anchor" id="line-13"></span></li>
<li>command line app : appli/gimmick <span class="anchor" id="line-14">
</span></li>
SET(INPUT
${CMAKE_CURRENT_BINARY_DIR}/DoxyMainPage.txt
- ${PROJECT_SOURCE_DIR}/src2
+ ${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/appli/gimmick
${PROJECT_SOURCE_DIR}/appli/wxGimmick
${PROJECT_SOURCE_DIR}/appli/TestWxGimmickReaderDialog