#-----------------------------------------------------------------------------
# The toolkit kernel (bbtk lib; appli : bbi, bbfy; docs; ...)
-SUBDIRS(kernel)
+ADD_SUBDIRECTORY(kernel)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# The "core" packages
-SUBDIRS(packages)
+ADD_SUBDIRECTORY(packages)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# The samples
#OPTION(BUILD_BBTK_SAMPLES "Build bbtk samples" OFF)
#IF(BUILD_BBTK_SAMPLES)
-# SUBDIRS(samples)
+# ADD_SUBDIRECTORY(samples)
#ENDIF(BUILD_BBTK_SAMPLES)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# bbtk library
-SUBDIRS(src)
+ADD_SUBDIRECTORY(src)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Documentation
-SUBDIRS(doc)
+ADD_SUBDIRECTORY(doc)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Applications (bbi, bbfy...)
IF(BUILD_APPLICATIONS)
- SUBDIRS(appli)
+ ADD_SUBDIRECTORY(appli)
ENDIF(BUILD_APPLICATIONS)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Recurse into cmake folder to install files
-SUBDIRS(cmake)
+ADD_SUBDIRECTORY(cmake)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# System-specific installation tools
-SUBDIRS(install)
+ADD_SUBDIRECTORY(install)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
-SUBDIRS(data)
+ADD_SUBDIRECTORY(data)
#-----------------------------------------------------------------------------
-SUBDIRS(bin)
\ No newline at end of file
+ADD_SUBDIRECTORY(bin)
\ No newline at end of file
IF(WIN32)
# Replace strings in a file (sed for windows)
-SUBDIRS(bbSed)
+ADD_SUBDIRECTORY(bbSed)
ENDIF(WIN32)
# The BlackBox Interpreter
-SUBDIRS(bbi)
+ADD_SUBDIRECTORY(bbi)
# LG test
-#SUBDIRS(bbI)
+#ADD_SUBDIRECTORY(bbI)
# Black box code generator from xml
-SUBDIRS(bbfy)
+ADD_SUBDIRECTORY(bbfy)
# Creates html documentation of a package
-#SUBDIRS(bbdoc)
+#ADD_SUBDIRECTORY(bbdoc)
# Utility that creates the file architecture for a new user package
-SUBDIRS(bbCreatePackage)
+ADD_SUBDIRECTORY(bbCreatePackage)
# Utility that creates a new user black box
-SUBDIRS(bbCreateBlackBox)
+ADD_SUBDIRECTORY(bbCreateBlackBox)
# The black box script development studio
-SUBDIRS(bbStudio)
+ADD_SUBDIRECTORY(bbStudio)
# The black box package browser
-SUBDIRS(bbPackageBrowser)
+ADD_SUBDIRECTORY(bbPackageBrowser)
#
-SUBDIRS(bbs2cpp)
+ADD_SUBDIRECTORY(bbs2cpp)
-SUBDIRS(bbc)
+ADD_SUBDIRECTORY(bbc)
-SUBDIRS(bbRegenerateBoxesLists)
+ADD_SUBDIRECTORY(bbRegenerateBoxesLists)
-SUBDIRS(bbRegeneratePackageDoc)
+ADD_SUBDIRECTORY(bbRegeneratePackageDoc)
-SUBDIRS(bbPostInstallPackage)
+ADD_SUBDIRECTORY(bbPostInstallPackage)
-SUBDIRS(bbPlugPackage)
+ADD_SUBDIRECTORY(bbPlugPackage)
# used to creates the file architecture for a new user package
# go to data which install the input data to the script
-#SUBDIRS(data)
+#ADD_SUBDIRECTORY(data)
# Sets the data install path
-SUBDIRS(icons)
+ADD_SUBDIRECTORY(icons)
#-----------------------------------------------------------------------------
IF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_DOXYGEN)
INCLUDE(../cmake/BBTKBuildDoxygenDoc.cmake)
- SUBDIRS(bbtkDoxygen)
+ ADD_SUBDIRECTORY(bbtkDoxygen)
ENDIF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_DOXYGEN)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
IF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_PDF OR BUILD_BBTK_DOC_GUIDES_HTML)
- SUBDIRS(bbtkUsersGuide)
- SUBDIRS(bbtkPackageDevelopersGuide)
- SUBDIRS(bbtkDevelopersGuide)
+ ADD_SUBDIRECTORY(bbtkUsersGuide)
+ ADD_SUBDIRECTORY(bbtkPackageDevelopersGuide)
+ ADD_SUBDIRECTORY(bbtkDevelopersGuide)
ENDIF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_PDF OR BUILD_BBTK_DOC_GUIDES_HTML)
#-----------------------------------------------------------------------------
)
# Recurse it bbtkWebSite dir
- SUBDIRS(bbtkWebSite)
+ ADD_SUBDIRECTORY(bbtkWebSite)
IF(UNIX)
- SUBDIRS(linux)
- SUBDIRS(gnome)
+ ADD_SUBDIRECTORY(linux)
+ ADD_SUBDIRECTORY(gnome)
ENDIF(UNIX)
-SUBDIRS(cpack)
+ADD_SUBDIRECTORY(cpack)
)
# rpmbuild
-SUBDIRS(rpmbuild)
+ADD_SUBDIRECTORY(rpmbuild)
#-----------------------------------------------------------------------------
# Recurse in EditorGraphicBBS to build the needed libs
-SUBDIRS(EditorGraphicBBS)
+ADD_SUBDIRECTORY(EditorGraphicBBS)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Recurse in ThirdParty to build the needed libs
-#SUBDIRS(ThirdParty)
+#ADD_SUBDIRECTORY(ThirdParty)
#-----------------------------------------------------------------------------
-SUBDIRS(bbsKernelEditorGraphic)
-SUBDIRS(bbsVtkGUIEditorGraphic)
+ADD_SUBDIRECTORY(bbsKernelEditorGraphic)
+ADD_SUBDIRECTORY(bbsVtkGUIEditorGraphic)
if(USE_WXWIDGETS)
-SUBDIRS(bbsWxGUIEditorGraphic)
+ADD_SUBDIRECTORY(bbsWxGUIEditorGraphic)
endif()
\ No newline at end of file
#-----------------------------------------------------------------------------
-SUBDIRS(std)
-SUBDIRS(wx)
-SUBDIRS(itk)
-SUBDIRS(vtk)
-SUBDIRS(toolsbbtk)
-SUBDIRS(wxvtk)
-SUBDIRS(itkvtk)
-SUBDIRS(demo)
-SUBDIRS(appli)
+ADD_SUBDIRECTORY(std)
+ADD_SUBDIRECTORY(wx)
+ADD_SUBDIRECTORY(itk)
+ADD_SUBDIRECTORY(vtk)
+ADD_SUBDIRECTORY(toolsbbtk)
+ADD_SUBDIRECTORY(wxvtk)
+ADD_SUBDIRECTORY(itkvtk)
+ADD_SUBDIRECTORY(demo)
+ADD_SUBDIRECTORY(appli)
-SUBDIRS(gdcmvtk)
+ADD_SUBDIRECTORY(gdcmvtk)
IF(BBTK_USE_KWWIDGETS)
- SUBDIRS(kw)
+ ADD_SUBDIRECTORY(kw)
ENDIF(BBTK_USE_KWWIDGETS)
IF(BBTK_USE_QT)
- SUBDIRS(qt)
+ ADD_SUBDIRECTORY(qt)
ENDIF(BBTK_USE_QT)
#-----------------------------------------------------------------------------
Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.cxx,v $
Language: C++
- Date: $Date: 2010/06/01 13:48:14 $
- Version: $Revision: 1.34 $
+ Date: $Date: 2010/08/18 12:36:45 $
+ Version: $Revision: 1.35 $
=========================================================================*/
/* ---------------------------------------------------------------------
};
//================================================================
- //vtkCxxRevisionMacro(ImagePlanes::VtkCallbackType, "$Revision: 1.34 $");
+ //vtkCxxRevisionMacro(ImagePlanes::VtkCallbackType, "$Revision: 1.35 $");
//================================================================
bbSetInputInteractor(0);
//bbSetOutputImage3Pts(planeWidget3Pts->GetResliceOutput());
- picker->UnRegister(NULL);
+ if(picker != 0)
+ picker->UnRegister(NULL);
mVtkCallback = VtkCallbackType::New();
mVtkCallback->SetBlackBox(this);
planeWidgetX->AddObserver(vtkCommand::InteractionEvent,mVtkCallback);
planeWidgetY->AddObserver(vtkCommand::InteractionEvent,mVtkCallback);
- planeWidgetZ->AddObserver(vtkCommand::InteractionEvent,mVtkCallback);
+ planeWidgetZ->AddObserver(vtkCommand::InteractionEvent,mVtkCallback);
+
}
//---------------------------------------------------------------------
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
-SUBDIRS(SampleWidgetsBase)
-SUBDIRS(SampleOutputObserver)
-SUBDIRS(SampleInsertWxBlackBoxInOwnFrame)
-SUBDIRS(SampleInterpreter)
+ADD_SUBDIRECTORY(SampleWidgetsBase)
+ADD_SUBDIRECTORY(SampleOutputObserver)
+ADD_SUBDIRECTORY(SampleInsertWxBlackBoxInOwnFrame)
+ADD_SUBDIRECTORY(SampleInterpreter)