SET(BBFY_CXX_OUT ${CMAKE_CURRENT_BINARY_DIR}/${filename}.cxx)
IF (WIN32)
+ MAKE_DLL_PATH()
# SET(command00 Path=c:/creatis/dlls__RR__%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH%)
# STRING(REPLACE "__RR__" "\;" SETPATH ${command00} )
# SET(SETPATH set ${command0} &&)
ADD_CUSTOM_COMMAND(
OUTPUT ${BBFY_CXX_OUT}
COMMAND
- set ${CREA_PATH} && ${BBTK_BBFY} ${xmlfile} ${BBTK_PACKAGE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/ -q
+ set ${DLL_PATH} && ${BBTK_BBFY} ${xmlfile} ${BBTK_PACKAGE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/ -q
DEPENDS ${xmlfile}
${BBTK_BBFY_DEPENDENCY}
)
#
IF(WIN32)
SET(USE_DOT TRUE)
- # %DOT_DIR%
- # set(command00 Path=C:/Creatis/dlls__RR__%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__${DOT_DIR}__RR__%PATH% )
- # STRING(REPLACE "__RR__" "\;" command0 ${command00} )
-
+ MAKE_DLL_PATH()
# FILE(TO_NATIVE_PATH ${EXECUTABLE_OUTPUT_PATH}/bb${BBTK_PACKAGE_NAME}.dll pathCommand2 )
FILE(TO_NATIVE_PATH ${BBTK_BIN_PATH}/bbtk_config.xml pathCommand2 )
FILE(TO_NATIVE_PATH ${PROJECT_BINARY_DIR}/${BBTK_BBS_REL_PATH} pathCommand1 )
OUTPUT ${DOC_OUTPUT}
COMMAND
# cd ${BBTK_BIN_PATH}/../bbs/ && ${BBTK_BBI} -n ${OUTPUT_FILE}
- set ${CREA_PATH} && ${command1} && ${command2} && ${command3}
+ set ${DLL_PATH} && ${command1} && ${command2} && ${command3}
#&& ${command4}
DEPENDS bb${PACKAGE_NAME}
)
ENDIF(USE_DOXYGEN)
#-----------------------------------------------------------------------------
-#-----------------------------------------------------------------------------
-IF(USE_DOT)
- IF(WIN32)
- FIND_PATH(DOT_DIR dot.exe PATHS $ENV{PATH} )
- IF(NOT DOT_DIR)
- MESSAGE(FATAL_ERROR "Dot not found : set DOT_DIR to the folder containing dot.exe")
- ENDIF(NOT DOT_DIR)
- ENDIF(WIN32)
-ENDIF(USE_DOT)
-#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
IF(USE_LATEX)
IF(WIN32)
SET (EXECUTABLE_OUTPUT_REL_PATH "")
SET (LIBRARY_OUTPUT_REL_PATH "")
+ SET (ADDITIONAL_DLL_PATH "C:/CreaTools/lib" CACHE PATH "Additional paths in which to look for dlls")
ELSE(WIN32)
SET (EXECUTABLE_OUTPUT_REL_PATH bin)
SET (LIBRARY_OUTPUT_REL_PATH bin)
ENDIF(NOT IS_DIRECTORY ${DIR})
ENDMACRO(MKDIR)
#========================================================================
+
+
+#========================================================================
+MACRO(MAKE_DLL_PATH)
+ IF(WIN32)
+ IF(NOT DLL_PATH)
+ IF(USE_DOT)
+ FIND_PATH(DOT_DIR dot.exe PATHS $ENV{PATH} )
+ IF(NOT DOT_DIR)
+ MESSAGE(FATAL_ERROR "Dot not found : set DOT_DIR to the folder containing dot.exe")
+ ELSE(NOT DOT_DIR)
+ MESSAGE(STATUS "Looking for dot... - found in ${DOT_DIR}")
+ ENDIF(NOT DOT_DIR)
+ ENDIF(USE_DOT)
+ SET(DLL_PATH0 Path=${ADDITIONAL_DLL_PATH}__RR__%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH%__RR__${DOT_DIR})
+ STRING(REPLACE "__RR__" "\;" DLL_PATH ${DLL_PATH0} )
+ ENDIF(NOT DLL_PATH)
+ ENDIF(WIN32)
+ENDMACRO(MAKE_DLL_PATH)
+#========================================================================
#-----------------------------------------------------------------------------
-#-----------------------------------------------------------------------------
-IF(WIN32)
- SET(CREA_ADDITIONAL_DLL_PATH "C:/CreaTools/lib" CACHE PATH "Addictional paths in which to look for dlls")
- SET(CREA_PATH0 Path=${CREA_ADDITIONAL_DLL_PATH}__RR__%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH%__RR__${DOT_DIR})
- STRING(REPLACE "__RR__" "\;" CREA_PATH ${CREA_PATH0} )
-ENDIF(WIN32)
-#-----------------------------------------------------------------------------
-
)
IF (WIN32)
- # SET(command00 Path=%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH% )
- # STRING(REPLACE "__RR__" "\;" command0 ${command00} )
+ SET(USE_DOT TRUE)
+ MAKE_DLL_PATH()
ADD_CUSTOM_COMMAND(
OUTPUT ${INDEX_OUTPUT}
COMMAND
- set ${CREA_PATH} cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -N -q ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
+ set ${DLL_PATH} cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -N -q ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
DEPENDS ${BBTK_BBI_DEPENDENCY} ${BBTK_PACKAGES_DEPS}
)
ELSE (WIN32)
Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.cxx,v $
Language: C++
- Date: $Date: 2008/06/25 08:21:31 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/10/06 09:01:08 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//---------------------------------------------------------------------
void ImagePlanes::bbUserDestructor()
{
- planeWidgetX->Delete();
- planeWidgetY->Delete();
- planeWidgetZ->Delete();
+ if (bbGetOutputPlaneX()) bbGetOutputPlaneX()->Delete();
+ if (bbGetOutputPlaneY()) bbGetOutputPlaneY()->Delete();
+ if (bbGetOutputPlaneZ()) bbGetOutputPlaneZ()->Delete();
}
//---------------------------------------------------------------------