From 2aad4ea488fa7bf60864e6f9ee49e5f5247861d7 Mon Sep 17 00:00:00 2001 From: trillos Date: Thu, 24 Sep 2009 09:23:59 +0000 Subject: [PATCH] Added to library TransformLib. Added CalculateVector boxes. --- CMakeLists.txt | 111 ++ PackRecalage/CMakeLists.txt | 158 ++ PackRecalage/Configure.cmake | 35 + PackRecalage/PackageConfig.cmake.in | 27 + PackRecalage/README.txt | 52 + PackRecalage/UsePackage.cmake.in | 4 + PackRecalage/bbs/CMakeLists.txt | 4 + PackRecalage/bbs/appli/ExampleRecalage.bbs | 76 + PackRecalage/bbs/appli/README.txt | 1 + PackRecalage/bbs/appli/ViewerMerge2D.bbs | 130 ++ .../bbs/appli/ViewerMerge2DInteractive.bbs | 137 ++ PackRecalage/bbs/appli/ViewerMerge3D.bbs | 111 ++ .../bbs/appli/ViewerMerge3D_MorePoints.bbs | 111 ++ PackRecalage/bbs/boxes/README.txt | 1 + PackRecalage/data/CMakeLists.txt | 4 + PackRecalage/doc/CMakeLists.txt | 5 + PackRecalage/doc/bbdoc/CMakeLists.txt | 2 + PackRecalage/doc/bbdoc/header.html.in | 12 + PackRecalage/doc/doxygen/CMakeLists.txt | 1 + PackRecalage/doc/doxygen/DoxyMainPage.txt.in | 14 + PackRecalage/doc/doxygen/Doxyfile.txt.in | 764 ++++++++++ PackRecalage/src/CMakeLists.txt | 5 + .../src/bbPackRecalageCalculateVectorBox.cxx | 56 + .../src/bbPackRecalageCalculateVectorBox.h | 59 + .../src/bbPackRecalageReSlicerBox.cxx | 72 + PackRecalage/src/bbPackRecalageReSlicerBox.h | 50 + .../src/bbPackRecalageTransform2DBox.cxx | 58 + .../src/bbPackRecalageTransform2DBox.h | 62 + appli/CMakeLists.txt | 3 + appli/template_appli/CMakeLists.txt | 51 + cmake/UserBuildAllOption.cmake | 30 + cmake/UserBuildDoxygenDoc.cmake | 71 + cmake/UserBuildHtmlDocFromLatex.cmake | 29 + cmake/UserBuildLatexDoc.cmake | 63 + cmake/UserConfig.cmake | 23 + cmake/UserDefineOptions.cmake | 39 + cmake/UserMacros.cmake | 37 + cmake/UserRootCMakeLists.cmake | 6 + cmake/UserSetDeducedPaths.cmake | 62 + doc/CMakeLists.txt | 78 + doc/README.txt | 5 + doc/README_HowToUpload.txt | 5 + doc/UserDocumentation/CMakeLists.txt | 7 + doc/UserDocumentation/UserDocumentation.tex | 49 + doc/UserDoxygen/CMakeLists.txt | 30 + doc/UserDoxygen/CodingStyle.html | 360 +++++ doc/UserDoxygen/DoxyMainPage.txt.in | 19 + doc/UserDoxygen/Doxyfile.txt.in | 1358 +++++++++++++++++ doc/config.tex | 224 +++ doc/help_contents.html.in | 28 + doc/index-no-frame.html.in | 14 + doc/index.html.in | 15 + doc/template_WebSite/CMakeLists.txt | 72 + doc/template_WebSite/README.txt | 4 + doc/template_WebSite/home.html | 39 + doc/template_WebSite/install.html | 870 +++++++++++ doc/template_WebSite/menu.html | 42 + lib/CMakeLists.txt | 86 ++ lib/creaSystem.h | 26 + lib/creaSystem.h.in | 26 + lib/sourceTransformer.cxx | 100 ++ lib/sourceTransformer.h | 30 + lib/sourceVectorMath.cxx | 6 + lib/sourceVectorMath.h | 29 + lib/template_lib/creaSystem.h | 26 + lib/template_lib/creaSystem.h.in | 26 + 66 files changed, 6110 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 PackRecalage/CMakeLists.txt create mode 100644 PackRecalage/Configure.cmake create mode 100644 PackRecalage/PackageConfig.cmake.in create mode 100644 PackRecalage/README.txt create mode 100644 PackRecalage/UsePackage.cmake.in create mode 100644 PackRecalage/bbs/CMakeLists.txt create mode 100644 PackRecalage/bbs/appli/ExampleRecalage.bbs create mode 100644 PackRecalage/bbs/appli/README.txt create mode 100644 PackRecalage/bbs/appli/ViewerMerge2D.bbs create mode 100644 PackRecalage/bbs/appli/ViewerMerge2DInteractive.bbs create mode 100644 PackRecalage/bbs/appli/ViewerMerge3D.bbs create mode 100644 PackRecalage/bbs/appli/ViewerMerge3D_MorePoints.bbs create mode 100644 PackRecalage/bbs/boxes/README.txt create mode 100644 PackRecalage/data/CMakeLists.txt create mode 100644 PackRecalage/doc/CMakeLists.txt create mode 100644 PackRecalage/doc/bbdoc/CMakeLists.txt create mode 100644 PackRecalage/doc/bbdoc/header.html.in create mode 100644 PackRecalage/doc/doxygen/CMakeLists.txt create mode 100644 PackRecalage/doc/doxygen/DoxyMainPage.txt.in create mode 100644 PackRecalage/doc/doxygen/Doxyfile.txt.in create mode 100644 PackRecalage/src/CMakeLists.txt create mode 100644 PackRecalage/src/bbPackRecalageCalculateVectorBox.cxx create mode 100644 PackRecalage/src/bbPackRecalageCalculateVectorBox.h create mode 100644 PackRecalage/src/bbPackRecalageReSlicerBox.cxx create mode 100644 PackRecalage/src/bbPackRecalageReSlicerBox.h create mode 100644 PackRecalage/src/bbPackRecalageTransform2DBox.cxx create mode 100644 PackRecalage/src/bbPackRecalageTransform2DBox.h create mode 100644 appli/CMakeLists.txt create mode 100644 appli/template_appli/CMakeLists.txt create mode 100644 cmake/UserBuildAllOption.cmake create mode 100644 cmake/UserBuildDoxygenDoc.cmake create mode 100644 cmake/UserBuildHtmlDocFromLatex.cmake create mode 100644 cmake/UserBuildLatexDoc.cmake create mode 100644 cmake/UserConfig.cmake create mode 100644 cmake/UserDefineOptions.cmake create mode 100644 cmake/UserMacros.cmake create mode 100644 cmake/UserRootCMakeLists.cmake create mode 100644 cmake/UserSetDeducedPaths.cmake create mode 100644 doc/CMakeLists.txt create mode 100644 doc/README.txt create mode 100644 doc/README_HowToUpload.txt create mode 100644 doc/UserDocumentation/CMakeLists.txt create mode 100644 doc/UserDocumentation/UserDocumentation.tex create mode 100644 doc/UserDoxygen/CMakeLists.txt create mode 100644 doc/UserDoxygen/CodingStyle.html create mode 100644 doc/UserDoxygen/DoxyMainPage.txt.in create mode 100644 doc/UserDoxygen/Doxyfile.txt.in create mode 100644 doc/config.tex create mode 100644 doc/help_contents.html.in create mode 100644 doc/index-no-frame.html.in create mode 100644 doc/index.html.in create mode 100644 doc/template_WebSite/CMakeLists.txt create mode 100644 doc/template_WebSite/README.txt create mode 100644 doc/template_WebSite/home.html create mode 100644 doc/template_WebSite/install.html create mode 100644 doc/template_WebSite/menu.html create mode 100644 lib/CMakeLists.txt create mode 100644 lib/creaSystem.h create mode 100644 lib/creaSystem.h.in create mode 100644 lib/sourceTransformer.cxx create mode 100644 lib/sourceTransformer.h create mode 100644 lib/sourceVectorMath.cxx create mode 100644 lib/sourceVectorMath.h create mode 100644 lib/template_lib/creaSystem.h create mode 100644 lib/template_lib/creaSystem.h.in diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..5727ba0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,111 @@ +# --------------------------------- +# +# Unless you are an experimented cmake user, +# have a look at : +# http://www.creatis.insa-lyon.fr/creatools/GettingStarted_creaTools +# before starting. +# +# --------------------------------- + +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) + +################################### +PROJECT(CreaRecalage) +################################### + +#================================== +# The project version +SET(PROJECT_MAJOR_VERSION 1) +SET(PROJECT_MINOR_VERSION 0) +SET(PROJECT_BUILD_VERSION 0) +#================================== + +#================================== +# Find crea (mandatory, to use macros) +SET(CREA_VERBOSE_CMAKE TRUE) +FIND_PACKAGE(crea REQUIRED) +IF (crea_FOUND) + INCLUDE(${crea_USE_FILE}) +ENDIF(crea_FOUND) +#================================== + +#================================== +# Do not allow to build inside the source tree +CREA_PREVENT_IN_SOURCE_BUILD() +#================================== + +#================================== +# Libraries/tools used + +# Note : Set USE_CREA to ON +# if you need to LINK against crea +# (and not only use its macros) +SET(USE_CREA OFF) + +SET(USE_GDCM OFF) +SET(USE_GDCM_VTK OFF) +SET(USE_GDCM2 OFF) +SET(USE_WXWIDGETS OFF) +SET(USE_KWWIDGETS OFF) +SET(USE_VTK ON) +SET(USE_ITK OFF) +SET(USE_BOOST ON) + +# Note : Set USE_DOXYGEN to ON +# if you think you will ask, some day, +# for Doxygen generation +SET(USE_DOXYGEN OFF) + +# Note : Set USE_LATEX to ON, USE_TTH to ON +# if you think you will ask, some day, +# for doc generation using your own latex documents +SET(USE_LATEX OFF) +SET(USE_TTH OFF) + +CREA_FIND_AND_USE_LIBRARIES() +#================================== + +#================================== +# Where to put executables and libs +SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) +SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}) +MARK_AS_ADVANCED( + CMAKE_BACKWARDS_COMPATIBILITY + EXECUTABLE_OUTPUT_PATH + LIBRARY_OUTPUT_PATH + ) + +#================================== + + SET(LIBNAME $(CreaRecalage)) + INCLUDE_DIRECTORIES( + ${PROJECT_BINARY_DIR} + + # // if the previous one is not enough : (JPRx) + # Add here the directories holding the .h you need + + # ${PROJECT_SOURCE_DIR}/lib/_YOUR_OWN_LIBRARY_SOURCE_DIRECTORY_ + + ) +#================================== + + +#---------------------------------------------------------------------------- +INCLUDE(${PROJECT_SOURCE_DIR}/cmake/UserRootCMakeLists.cmake) + +#================================== +# Where to generate documentation +# (desperate try; JPR) + +SET(BBTK_DOC_BUILD_PATH + ${PROJECT_BINARY_DIR}/doc + ) +#================================== + +# Subdirs +SUBDIRS(lib) +SUBDIRS(appli) +SUBDIRS(doc) +SUBDIRS(PackRecalage) +#================================== +#================================== diff --git a/PackRecalage/CMakeLists.txt b/PackRecalage/CMakeLists.txt new file mode 100644 index 0000000..aef9f5f --- /dev/null +++ b/PackRecalage/CMakeLists.txt @@ -0,0 +1,158 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) + +#=========================================================================== +# CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE +#=========================================================================== + +#=========================================================================== +# THE NAME OF THE BBTK PACKAGE +SET(BBTK_PACKAGE_NAME PackRecalage) +#=========================================================================== + + + +#=========================================================================== +# IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT +# PROJECT(bb${BBTK_PACKAGE_NAME}) +#=========================================================================== + +#=========================================================================== +# PACKAGE AUTHOR +# !!! NO COMMA ALLOWED !!! +SET(${BBTK_PACKAGE_NAME}_AUTHOR "jn.trillos44@uniandes.edu.co") +#=========================================================================== + +#=========================================================================== +# PACKAGE DESCRIPTION +SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "Interactive Recalage") +#=========================================================================== + +#=========================================================================== +# PACKAGE VERSION NUMBER +SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1) +SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0) +SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0) +#=========================================================================== + + +#=========================================================================== +# UNCOMMENT EACH LIBRARY NEEDED (WILL BE FOUND AND USED AUTOMATICALLY) +SET(${BBTK_PACKAGE_NAME}_USE_VTK ON) +# SET(${BBTK_PACKAGE_NAME}_USE_ITK ON) +# SET(${BBTK_PACKAGE_NAME}_USE_GDCM ON) +# SET(${BBTK_PACKAGE_NAME}_USE_GDCM_VTK ON) +# SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON) +# SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON) +# SET(${BBTK_PACKAGE_NAME}_USE_KWWIDGETS ON) +#=========================================================================== + +#=========================================================================== +# LIST HERE THE OTHER bbtk PACKAGES NEEDED +# (WILL BE FOUND AND USED AUTOMATICALLY) +SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES + # std + # wx + # itk + # vtk + # ... + ) +#=========================================================================== + +#=========================================================================== +# THE SOURCES OF THE PACKAGE +# EITHER UNCOMMENT NEXT LINE TO COMPILE ALL .cxx OF THE src DIRECTORY : +SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_CXX ON) +# ... OR LIST THE FILES TO COMPILE MANUALLY : +#SET(${BBTK_PACKAGE_NAME}_SOURCES +# LIST HERE THE FILES TO COMPILE TO BUILD THE LIB +# E.G. TO COMPILE "toto.cxx" ADD "toto" (NO EXTENSION) +# THE PATH MUST BE RELATIVE TO THE src FOLDER +# ) +#=========================================================================== + +#=========================================================================== +# THE xml SOURCES OF THE PACKAGE +# EITHER UNCOMMENT NEXT LINE TO bbfy ALL .xml OF THE src DIRECTORY : +SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_XML ON) +# ... OR LIST THE FILES TO COMPILE MANUALLY : +#SET(${BBTK_PACKAGE_NAME}_XML_SOURCES +# LIST HERE THE FILES TO bbfy TO BUILD THE LIB +# E.G. TO bbfy "toto.xml" ADD "toto" (NO EXTENSION) +# THE PATH MUST BE RELATIVE TO THE src FOLDER +# ) +#=========================================================================== + +#=========================================================================== +# THE SCRIPT-DEFINED BOXES OF THE PACKAGE (bbs) +# EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/boxes DIRECTORY : +SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES ON) +# ... OR LIST THE FILES TO INCLUDE MANUALLY : +# SET(${BBTK_PACKAGE_NAME}_BBS_BOXES +# LIST HERE THE bbs FILES TO INCLUDE +# E.G. TO INCLUDE "boxes/bbtoto.bbs" ADD "boxes/bbtoto" (NO EXTENSION) +# !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !! +#) +#=========================================================================== + +#=========================================================================== +# THE SCRIPT-DEFINED APPLICATIONS OF THE PACKAGE (bbs) +# EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/appli DIRECTORY : +SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI ON) +# ... OR LIST THE FILES TO INCLUDE MANUALLY : +# SET(${BBTK_PACKAGE_NAME}_BBS_APPLI +# LIST HERE THE bbs FILES TO INCLUDE +# E.G. TO INCLUDE "appli/testToto.bbs" ADD "appli/testToto" (NO EXTENSION) +# !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !! +#) +#=========================================================================== + +#=========================================================================== +SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS + # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES + # EXCEPT : + # - src + # - bbtk dirs + # - automatically handled libraries or packages : wx, vtk... (see above) + # - the dirs automatically set by other libraries found by FIND_PACKAGE + ..\lib + ) +#=========================================================================== + +#=========================================================================== +SET(${BBTK_PACKAGE_NAME}_LIBS + # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST + # EXCEPT : the same libs than for INCLUDE_DIRS + TransformLib + ) +#=========================================================================== + + +#=========================================================================== +# IF NEEDED : UNCOMMENT NEXT LINE +# AND LIST ADDITIONNAL DIRECTORIES +# IN WHICH TO LOOK FOR LIBRARIES TO LINK AGAINST +# LINK_DIRECTORIES() +#=========================================================================== + +#=========================================================================== +# SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE +SET(FIND_PACKAGE_VERBOSE TRUE) +#=========================================================================== + +#=========================================================================== +# END OF USER SECTION +#=========================================================================== + + + + + +#=========================================================================== +# Include configuration script +INCLUDE(Configure.cmake) +#=========================================================================== + +#=========================================================================== +# EOF +#=========================================================================== + diff --git a/PackRecalage/Configure.cmake b/PackRecalage/Configure.cmake new file mode 100644 index 0000000..dc44b3b --- /dev/null +++ b/PackRecalage/Configure.cmake @@ -0,0 +1,35 @@ +#=========================================================================== +# DOES THE USER WANT TO BUILD THE PACKAGE ? +OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME} + "Build the bbtk package ${BBTK_PACKAGE_NAME} ?" OFF) +#=========================================================================== + +IF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}) + #=========================================================================== + # THE USER HAS CHOSEN TO BUILD THE PACKAGE + #=========================================================================== + + #=========================================================================== + # If the package is not a "core" bbtk package (included into the toolkit) + # then we have to find and use bbtk + IF(NOT BBTK_CORE_PACKAGE) + FIND_PACKAGE(BBTK REQUIRED) + INCLUDE(${BBTK_USE_FILE}) + ENDIF(NOT BBTK_CORE_PACKAGE) + #=========================================================================== + + #=========================================================================== + # Include package configuration cmake script from bbtk cmake dir + INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage.cmake) + #=========================================================================== + +ELSE(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}) + + #=========================================================================== + # Else if it is a core package we have to reset some things... + IF(BBTK_CORE_PACKAGE) + INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_BuildOff.cmake) + ENDIF(BBTK_CORE_PACKAGE) + #=========================================================================== + +ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}) diff --git a/PackRecalage/PackageConfig.cmake.in b/PackRecalage/PackageConfig.cmake.in new file mode 100644 index 0000000..0ade94b --- /dev/null +++ b/PackRecalage/PackageConfig.cmake.in @@ -0,0 +1,27 @@ +#======================================================================== +# BBTK package configuration +# ** DO NOT REMOVE ** +SET(BBTK_PACKAGE_NAME @BBTK_PACKAGE_NAME@) +SET(@BBTK_PACKAGE_NAME@_USE_VTK @BBTK_PACKAGE_USE_VTK@) +SET(@BBTK_PACKAGE_NAME@_USE_ITK @BBTK_PACKAGE_USE_ITK@) +SET(@BBTK_PACKAGE_NAME@_USE_GDCM @BBTK_PACKAGE_USE_GDCM@) +SET(@BBTK_PACKAGE_NAME@_USE_GSMIS @BBTK_PACKAGE_USE_GSMIS@) +SET(@BBTK_PACKAGE_NAME@_USE_WXWIDGETS @BBTK_PACKAGE_USE_WXWIDGETS@) +SET(@BBTK_PACKAGE_NAME@_USE_PACKAGES @BBTK_PACKAGE_USE_PACKAGES@) +SET(@BBTK_PACKAGE_NAME@_AUTHOR "@BBTK_PACKAGE_AUTHOR@") +SET(@BBTK_PACKAGE_NAME@_DESCRIPTION "@BBTK_PACKAGE_DESCRIPTION@") +SET(@BBTK_PACKAGE_NAME@_MAJOR_VERSION @BBTK_PACKAGE_MAJOR_VERSION@) +SET(@BBTK_PACKAGE_NAME@_MINOR_VERSION @BBTK_PACKAGE_MINOR_VERSION@) +SET(@BBTK_PACKAGE_NAME@_BUILD_VERSION @BBTK_PACKAGE_BUILD_VERSION@) +SET(@BBTK_PACKAGE_NAME@_INCLUDE_DIRS @BBTK_PACKAGE_INCLUDE_DIRS@) +SET(@BBTK_PACKAGE_NAME@_LIBS @BBTK_PACKAGE_LIBS@) +# A BBTK PACKAGE NEEDS BBTK +FIND_PACKAGE(BBTK REQUIRED) +# BBTK Package configuration file inclusion +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_PackageConfig.cmake) +# End of BBTK package configuration +#======================================================================== + +#======================================================================== +# INSERT YOUR CUSTOM CONFIG HERE +#======================================================================== diff --git a/PackRecalage/README.txt b/PackRecalage/README.txt new file mode 100644 index 0000000..96e622f --- /dev/null +++ b/PackRecalage/README.txt @@ -0,0 +1,52 @@ +This is a void bbtk package structure. + +You should have this file tree : + +. +|-- CMakeLists.txt +|-- Configure.cmake +|-- PackageConfig.cmake.in +|-- README.txt +|-- UsePackage.cmake.in +|-- bbs +| |-- CMakeLists.txt +| |-- appli +| `-- boxes +|-- data +| `-- CMakeLists.txt +|-- doc +| |-- CMakeLists.txt +| |-- bbdoc +| | |-- CMakeLists.txt +| | `-- header.html.in +| `-- doxygen +| |-- CMakeLists.txt +| |-- DoxyMainPage.txt.in +| `-- Doxyfile.txt.in +`-- src + `-- CMakeLists.txt + +To use it : + +* Edit the root CMakeLists.txt file to customize your package build settings + (instructions inside the file) + +* Put your c++/xml boxes sources in 'src' + Use the convention : If the name of your package is PACK and the name of your box is BOX then name the source files bbPACKBOX.{h|cxx|xml} + +* Put your script-defined boxes in 'bbs/boxes'. + Use the convention : If the name of your box is 'Box' then call the file 'bbBox.bbs' + +* Put your script-defined applications in 'bbs/appli'. + +* Put your data in 'data' + +* You can customize the header of your package html doc by editing the file 'doc/bbdoc/header.html.in'. You must put html code in this file (or edit it with an html editor). You can include images or links to other html pages. The images and pages must be put in the folder 'doc/bbdoc' and will be properly installed. The same way, you can link to these images or pages in your boxes descriptions without giving any path. If you create subdirs for your material then you have to install the materials yourself by editing the CMakeLists.txt and links must use path with are relative to 'doc/bbdoc'. + +* You can customize the main page of your doxygen doc by editing the file 'doc/doxygen/DoxyMainPage.txt.in'. + +* Advanced settings : you can add custom cmake settings for your package installation process by CMakeCreateFindPackage in the files PackageConfig.cmake.in and UsePackage.cmake.in (see CMakeCreateFindPackage doc). + +THAT'S ALL FOLKS ! + + diff --git a/PackRecalage/UsePackage.cmake.in b/PackRecalage/UsePackage.cmake.in new file mode 100644 index 0000000..2ecb206 --- /dev/null +++ b/PackRecalage/UsePackage.cmake.in @@ -0,0 +1,4 @@ +# DO NOT REMOVE : +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_UsePackage.cmake) + +# INSERT YOUR CUSTOM USE HERE diff --git a/PackRecalage/bbs/CMakeLists.txt b/PackRecalage/bbs/CMakeLists.txt new file mode 100644 index 0000000..2c0eb7c --- /dev/null +++ b/PackRecalage/bbs/CMakeLists.txt @@ -0,0 +1,4 @@ + +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_bbs.cmake) + + diff --git a/PackRecalage/bbs/appli/ExampleRecalage.bbs b/PackRecalage/bbs/appli/ExampleRecalage.bbs new file mode 100644 index 0000000..c9cc57c --- /dev/null +++ b/PackRecalage/bbs/appli/ExampleRecalage.bbs @@ -0,0 +1,76 @@ +description "Example of posbile Recalage implementation" +author "jn.trillos44@uniandes.edu.co" +category "demo" + +load vtk +include wxvtk +load std +load itk +include vtk +include wx +load itkvtk +load creaMaracasVisu + +//File selection and file reader for the first image + +new FileSelector openFileDialog + set openFileDialog.Wildcard "(*.mhd)|*.mhd" +new MetaImageReader reader + connect openFileDialog.Out reader.In + +//File selection and file reader for the second image + +new FileSelector openFileDialog2 + set openFileDialog2.Wildcard "(*.mhd)|*.mhd" +new MetaImageReader reader2 + connect openFileDialog2.Out reader2.In + +//Viewer NV and ShowPoints for the first image + +new ViewerNV viewer + connect reader.Out viewer.In + set viewer.nTypeView "5 1 2 0" + +new ShowNPoints showNpoints + connect reader.Out showNpoints.Image + connect viewer.Renderer1 showNpoints.Renderer + connect viewer.Point showNpoints.In + connect viewer.BoxChange showNpoints.BoxExecute + set showNpoints.Radio 10 + +//Viewer NV and ShowPoints for the second image + +new ViewerNV viewer2 + connect reader2.Out viewer2.In + set viewer2.nTypeView "5 1 2 0" + +new ShowNPoints showNpoints2 + connect reader2.Out showNpoints2.Image + connect viewer2.Renderer1 showNpoints2.Renderer + connect viewer2.Point showNpoints2.In + connect viewer2.BoxChange showNpoints2.BoxExecute + set showNpoints2.Radio 10 + +//Tab for the first image + +new LayoutSplit tab1 + set tab1.Orientation H + connect showNpoints.Widget tab1.Widget1 + connect viewer.Widget tab1.Widget2 + +//Tab for the second image + +new LayoutSplit tab2 + set tab2.Orientation H + connect showNpoints2.Widget tab2.Widget1 + connect viewer2.Widget tab2.Widget2 + +//Main window + +new LayoutTab main +set main.Orientation H +connect tab1.Widget main.Widget1 +connect tab2.Widget main.Widget2 + +exec main + diff --git a/PackRecalage/bbs/appli/README.txt b/PackRecalage/bbs/appli/README.txt new file mode 100644 index 0000000..cd535ec --- /dev/null +++ b/PackRecalage/bbs/appli/README.txt @@ -0,0 +1 @@ +bbs files ... diff --git a/PackRecalage/bbs/appli/ViewerMerge2D.bbs b/PackRecalage/bbs/appli/ViewerMerge2D.bbs new file mode 100644 index 0000000..9ad659b --- /dev/null +++ b/PackRecalage/bbs/appli/ViewerMerge2D.bbs @@ -0,0 +1,130 @@ +load wx +load std +load vtk +load wxvtk +load creaMaracasVisu + +load PackRecalage + +include vtk/boxes/bbLoadHola +new LoadHola image + +#Viewer containing image 1 + +new LayoutLine v1Layout +new ViewerNV viewer1 +connect image.Out viewer1.In +set viewer1.nTypeView "0" +connect viewer1.Widget v1Layout.Widget1 + + +#Viewer containing image 2 + +new LayoutLine v2Layout +new ViewerNV viewer2 +connect image.Out viewer2.In +set viewer2.nTypeView "0" +connect viewer2.Widget v2Layout.Widget1 + +#LayoutSplit were the images will be + +new LayoutSplit initialImages +set initialImages.Proportion "50" +set initialImages.Orientation H +connect v1Layout.Widget initialImages.Widget1 +connect v2Layout.Widget initialImages.Widget2 + +#Layout line that will contain the buttons + +new LayoutLine buttonsLayout + set buttonsLayout.Orientation V + +#Slider were the angle will be entered + +new Slider slider + set slider.Title "Angle" + set slider.In 0 + set slider.Min 0 + set slider.Max 360 + set slider.ReactiveOnTrack "1" + connect slider.Widget buttonsLayout.Widget1 + + + +#Slider were the xScale will be entered + +new Slider sliderX + set sliderX.Title "% Scale in X" + set sliderX.In 100 + set sliderX.Min 10 + set sliderX.Max 500 + set sliderX.ReactiveOnTrack "1" + connect sliderX.Widget buttonsLayout.Widget2 + + + +#Slider were the yScale will be entered + +new Slider sliderY + set sliderY.Title "% Scale in Y" + set sliderY.In 100 + set sliderY.Min 10 + set sliderY.Max 500 + set sliderY.ReactiveOnTrack "1" + connect sliderY.Widget buttonsLayout.Widget3 + + +#Box were the transformation will be made + +new Transform2DBox transform + connect viewer2.Point transform.CenterPoint + connect slider.Out transform.Angle + connect sliderX.Out transform.ScaleX + connect sliderY.Out transform.ScaleY + + + +new ReSlicerBox reslice1 + connect viewer1.Point reslice1.Origin + connect transform.Out reslice1.Transform + connect image.Out reslice1.In + +new SliceImage slice1 + connect reslice1.Out slice1.In + set slice1.Z "1" + + +#new ViewerNV viewer3 + #connect reslice1.Out viewer3.In + #set viewer3.nTypeView "6" + #set viewer3.WinWidth "600" + +new Viewer2D viewer3 + connect reslice1.Out viewer3.In + set viewer3.Orientation "2" + set viewer3.Slice "1" + +#Boton that will set the points and angle + +new CommandButton botonfinal + set botonfinal.Label "Set Information" + connect botonfinal.Widget buttonsLayout.Widget4 + connect botonfinal.BoxChange viewer3.BoxExecute + +#Layout were the images and the buttones will be displayed + +new LayoutSplit window1 + set window1.WinWidth "600" + set window1.Proportion "80" + set window1.Orientation V + connect initialImages.Widget window1.Widget1 + connect buttonsLayout.Widget window1.Widget2 + +new LayoutSplit main + set main.WinWidth "1200" + set main.Proportion "100" + set main.Orientation H + connect window1.Widget main.Widget1 + connect viewer3.Widget main.Widget2 + +exec main \ No newline at end of file diff --git a/PackRecalage/bbs/appli/ViewerMerge2DInteractive.bbs b/PackRecalage/bbs/appli/ViewerMerge2DInteractive.bbs new file mode 100644 index 0000000..4134150 --- /dev/null +++ b/PackRecalage/bbs/appli/ViewerMerge2DInteractive.bbs @@ -0,0 +1,137 @@ +load wx +load std +load vtk +load wxvtk +load creaMaracasVisu + +load PackRecalage + +include vtk/boxes/bbLoadHola +new LoadHola image + +#Viewer containing image 1 + +new LayoutLine v1Layout +new ViewerNV viewer1 +connect image.Out viewer1.In +set viewer1.nTypeView "0" +connect viewer1.Widget v1Layout.Widget1 + + +#Viewer containing image 2 + +new LayoutLine v2Layout +new ViewerNV viewer2 +connect image.Out viewer2.In +set viewer2.nTypeView "0" +connect viewer2.Widget v2Layout.Widget1 + +#LayoutSplit were the images will be + +new LayoutSplit initialImages +set initialImages.Proportion "50" +set initialImages.Orientation H +connect v1Layout.Widget initialImages.Widget1 +connect v2Layout.Widget initialImages.Widget2 + +#Layout line that will contain the buttons + +new LayoutLine buttonsLayout + set buttonsLayout.Orientation V + +#Slider were the angle will be entered + +new Slider slider + set slider.Title "Angle" + set slider.In 0 + set slider.Min 0 + set slider.Max 360 + set slider.ReactiveOnTrack "1" + connect slider.Widget buttonsLayout.Widget1 + + + +#Slider were the xScale will be entered + +new Slider sliderX + set sliderX.Title "% Scale in X" + set sliderX.In 100 + set sliderX.Min 10 + set sliderX.Max 500 + set sliderX.ReactiveOnTrack "1" + connect sliderX.Widget buttonsLayout.Widget2 + + + +#Slider were the yScale will be entered + +new Slider sliderY + set sliderY.Title "% Scale in Y" + set sliderY.In 100 + set sliderY.Min 10 + set sliderY.Max 500 + set sliderY.ReactiveOnTrack "1" + connect sliderY.Widget buttonsLayout.Widget3 + + +#Box were the transformation will be made + +new Transform2DBox transform + connect viewer2.Point transform.CenterPoint + connect slider.Out transform.Angle + connect sliderX.Out transform.ScaleX + connect sliderY.Out transform.ScaleY + + + +new ReSlicerBox reslice1 + connect viewer1.Point reslice1.Origin + connect transform.Out reslice1.Transform + connect image.Out reslice1.In + +new SliceImage slice1 + connect reslice1.Out slice1.In + set slice1.Z "1" + + +#new ViewerNV viewer3 + #connect reslice1.Out viewer3.In + #set viewer3.nTypeView "6" + #set viewer3.WinWidth "600" + +new Viewer2D viewer3 + connect reslice1.Out viewer3.In + set viewer3.Slice "1" + +#Multiple inputs for managing the interaction + +new MultipleInputs mult + connect slider.BoxChange mult.In1 + connect sliderX.BoxChange mult.In2 + connect sliderY.BoxChange mult.In3 + connect viewer1.BoxChange mult.In4 + connect viewer2.BoxChange mult.In5 + connect mult.BoxChange viewer3.BoxExecute + +#new CommandButton botonfinal + #set botonfinal.Label "Set Information" + #connect botonfinal.Widget buttonsLayout.Widget4 + #connect botonfinal.BoxChange viewer3.BoxExecute + +#Layout were the images and the buttones will be displayed + +new LayoutSplit window1 + set window1.WinWidth "600" + set window1.Proportion "80" + set window1.Orientation V + connect initialImages.Widget window1.Widget1 + connect buttonsLayout.Widget window1.Widget2 + +new LayoutSplit main + set main.WinWidth "1200" + set main.Proportion "100" + set main.Orientation H + connect window1.Widget main.Widget1 + connect viewer3.Widget main.Widget2 + +exec main \ No newline at end of file diff --git a/PackRecalage/bbs/appli/ViewerMerge3D.bbs b/PackRecalage/bbs/appli/ViewerMerge3D.bbs new file mode 100644 index 0000000..52cb9fe --- /dev/null +++ b/PackRecalage/bbs/appli/ViewerMerge3D.bbs @@ -0,0 +1,111 @@ +load wx +load std +load vtk +load wxvtk +load creaMaracasVisu +load PackTransform2D +load PackReSlicer +//load PackVisuImages + +include vtk/boxes/bbLoadHola + +new LoadHola image + +#Viewer containing image 1 +new LayoutLine v1Layout +new ViewerNV viewer1 + connect image.Out viewer1.In + set viewer1.nTypeView "5 0 1 2" + connect viewer1.Widget v1Layout.Widget1 + +#Viewer containing image 2 +new LayoutLine v2Layout +new ViewerNV viewer2 + connect image.Out viewer2.In + set viewer1.nTypeView "5 0 1 2" + connect viewer2.Widget v2Layout.Widget1 + +#LayoutSplit were the images will be +new LayoutSplit initialImages + set initialImages.Proportion "50" + set initialImages.Orientation H + connect v1Layout.Widget initialImages.Widget1 + connect v2Layout.Widget initialImages.Widget2 + +#Layout line that will contain the buttons +new LayoutLine buttonsLayout + + +#Slider were the x angle will be entered +new Slider angleX + set angleX.Title "Angle in X" + set angleX.In 0 + set angleX.Min 0 + set angleX.Max 360 + set angleX.ReactiveOnTrack "1" + connect angleX.Widget buttonsLayout.Widget1 + +#Slider were the Y angle will be entered +new Slider angleY + set angleY.Title "Angle in Y" + set angleY.In 0 + set angleY.Min 0 + set angleY.Max 360 + set angleY.ReactiveOnTrack "1" + connect angleY.Widget buttonsLayout.Widget2 + +#Slider were the Z angle will be entered +new Slider angleZ + set angleZ.Title "Angle in Z" + set angleZ.In 0 + set angleZ.Min 0 + set angleZ.Max 360 + set angleZ.ReactiveOnTrack "1" + connect angleZ.Widget buttonsLayout.Widget3 + +#Slider were the xScale will be entered +new Slider sliderX + set sliderX.Title "% Scale in X" + set sliderX.In 0 + set sliderX.Min 0 + set sliderX.Max 500 + set sliderX.ReactiveOnTrack "1" + connect sliderX.Widget buttonsLayout.Widget4 + +#Slider were the yScale will be entered +new Slider sliderY + set sliderY.Title "% Scale in Y" + set sliderY.In 0 + set sliderY.Min 0 + set sliderY.Max 500 + set sliderY.ReactiveOnTrack "1" + connect sliderY.Widget buttonsLayout.Widget5 + +#Slider were the zScale will be entered +new Slider sliderZ + set sliderZ.Title "% Scale in Y" + set sliderZ.In 0 + set sliderZ.Min 0 + set sliderZ.Max 500 + set sliderZ.ReactiveOnTrack "1" + connect sliderZ.Widget buttonsLayout.Widget6 + +new ViewerNV viewer3 + connect image.Out viewer3.In + set viewer1.nTypeView "5 0 1 2" + +#Boton that will set the points and angle +new CommandButton botonfinal + connect botonfinal.Widget buttonsLayout.Widget7 + connect botonfinal.BoxChange viewer3.BoxExecute + +#Layout were the images and the buttones will be displayed +new LayoutSplit main + set main.WinWidth "1200" + set main.Proportion "80" + set main.Orientation H + connect initialImages.Widget main.Widget1 + connect buttonsLayout.Widget main.Widget2 + #connect finalViewer.Widget main.Widget2 + +exec main \ No newline at end of file diff --git a/PackRecalage/bbs/appli/ViewerMerge3D_MorePoints.bbs b/PackRecalage/bbs/appli/ViewerMerge3D_MorePoints.bbs new file mode 100644 index 0000000..52cb9fe --- /dev/null +++ b/PackRecalage/bbs/appli/ViewerMerge3D_MorePoints.bbs @@ -0,0 +1,111 @@ +load wx +load std +load vtk +load wxvtk +load creaMaracasVisu +load PackTransform2D +load PackReSlicer +//load PackVisuImages + +include vtk/boxes/bbLoadHola + +new LoadHola image + +#Viewer containing image 1 +new LayoutLine v1Layout +new ViewerNV viewer1 + connect image.Out viewer1.In + set viewer1.nTypeView "5 0 1 2" + connect viewer1.Widget v1Layout.Widget1 + +#Viewer containing image 2 +new LayoutLine v2Layout +new ViewerNV viewer2 + connect image.Out viewer2.In + set viewer1.nTypeView "5 0 1 2" + connect viewer2.Widget v2Layout.Widget1 + +#LayoutSplit were the images will be +new LayoutSplit initialImages + set initialImages.Proportion "50" + set initialImages.Orientation H + connect v1Layout.Widget initialImages.Widget1 + connect v2Layout.Widget initialImages.Widget2 + +#Layout line that will contain the buttons +new LayoutLine buttonsLayout + + +#Slider were the x angle will be entered +new Slider angleX + set angleX.Title "Angle in X" + set angleX.In 0 + set angleX.Min 0 + set angleX.Max 360 + set angleX.ReactiveOnTrack "1" + connect angleX.Widget buttonsLayout.Widget1 + +#Slider were the Y angle will be entered +new Slider angleY + set angleY.Title "Angle in Y" + set angleY.In 0 + set angleY.Min 0 + set angleY.Max 360 + set angleY.ReactiveOnTrack "1" + connect angleY.Widget buttonsLayout.Widget2 + +#Slider were the Z angle will be entered +new Slider angleZ + set angleZ.Title "Angle in Z" + set angleZ.In 0 + set angleZ.Min 0 + set angleZ.Max 360 + set angleZ.ReactiveOnTrack "1" + connect angleZ.Widget buttonsLayout.Widget3 + +#Slider were the xScale will be entered +new Slider sliderX + set sliderX.Title "% Scale in X" + set sliderX.In 0 + set sliderX.Min 0 + set sliderX.Max 500 + set sliderX.ReactiveOnTrack "1" + connect sliderX.Widget buttonsLayout.Widget4 + +#Slider were the yScale will be entered +new Slider sliderY + set sliderY.Title "% Scale in Y" + set sliderY.In 0 + set sliderY.Min 0 + set sliderY.Max 500 + set sliderY.ReactiveOnTrack "1" + connect sliderY.Widget buttonsLayout.Widget5 + +#Slider were the zScale will be entered +new Slider sliderZ + set sliderZ.Title "% Scale in Y" + set sliderZ.In 0 + set sliderZ.Min 0 + set sliderZ.Max 500 + set sliderZ.ReactiveOnTrack "1" + connect sliderZ.Widget buttonsLayout.Widget6 + +new ViewerNV viewer3 + connect image.Out viewer3.In + set viewer1.nTypeView "5 0 1 2" + +#Boton that will set the points and angle +new CommandButton botonfinal + connect botonfinal.Widget buttonsLayout.Widget7 + connect botonfinal.BoxChange viewer3.BoxExecute + +#Layout were the images and the buttones will be displayed +new LayoutSplit main + set main.WinWidth "1200" + set main.Proportion "80" + set main.Orientation H + connect initialImages.Widget main.Widget1 + connect buttonsLayout.Widget main.Widget2 + #connect finalViewer.Widget main.Widget2 + +exec main \ No newline at end of file diff --git a/PackRecalage/bbs/boxes/README.txt b/PackRecalage/bbs/boxes/README.txt new file mode 100644 index 0000000..cd535ec --- /dev/null +++ b/PackRecalage/bbs/boxes/README.txt @@ -0,0 +1 @@ +bbs files ... diff --git a/PackRecalage/data/CMakeLists.txt b/PackRecalage/data/CMakeLists.txt new file mode 100644 index 0000000..eb2556d --- /dev/null +++ b/PackRecalage/data/CMakeLists.txt @@ -0,0 +1,4 @@ +#=========================================================================== +# Include package data configuration cmake script from bbtk dir +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_data.cmake) +#=========================================================================== diff --git a/PackRecalage/doc/CMakeLists.txt b/PackRecalage/doc/CMakeLists.txt new file mode 100644 index 0000000..033496e --- /dev/null +++ b/PackRecalage/doc/CMakeLists.txt @@ -0,0 +1,5 @@ +#=========================================================================== +# Include package doc configuration cmake script +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_doc.cmake) +#=========================================================================== + diff --git a/PackRecalage/doc/bbdoc/CMakeLists.txt b/PackRecalage/doc/bbdoc/CMakeLists.txt new file mode 100644 index 0000000..86ca574 --- /dev/null +++ b/PackRecalage/doc/bbdoc/CMakeLists.txt @@ -0,0 +1,2 @@ +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_doc_bbdoc.cmake) + diff --git a/PackRecalage/doc/bbdoc/header.html.in b/PackRecalage/doc/bbdoc/header.html.in new file mode 100644 index 0000000..28c72c2 --- /dev/null +++ b/PackRecalage/doc/bbdoc/header.html.in @@ -0,0 +1,12 @@ + +

bbtk package @BBTK_PACKAGE_NAME@

+ +

+Version @BBTK_PACKAGE_MAJOR_VERSION@.@BBTK_PACKAGE_MINOR_VERSION@.@BBTK_PACKAGE_BUILD_VERSION@ - +by @BBTK_PACKAGE_AUTHOR@ + +

+@BBTK_PACKAGE_DESCRIPTION@ + +

+ Doxygen documentation of the source code diff --git a/PackRecalage/doc/doxygen/CMakeLists.txt b/PackRecalage/doc/doxygen/CMakeLists.txt new file mode 100644 index 0000000..0194111 --- /dev/null +++ b/PackRecalage/doc/doxygen/CMakeLists.txt @@ -0,0 +1 @@ +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_doc_doxygen.cmake) diff --git a/PackRecalage/doc/doxygen/DoxyMainPage.txt.in b/PackRecalage/doc/doxygen/DoxyMainPage.txt.in new file mode 100644 index 0000000..9909a5c --- /dev/null +++ b/PackRecalage/doc/doxygen/DoxyMainPage.txt.in @@ -0,0 +1,14 @@ +/** + * \mainpage bbtk package @BBTK_PACKAGE_NAME@ + +\htmlonly + +

Version +@BBTK_PACKAGE_MAJOR_VERSION@.@BBTK_PACKAGE_MINOR_VERSION@.@BBTK_PACKAGE_BUILD_VERSION@ - +by @BBTK_PACKAGE_AUTHOR@ +

+@BBTK_PACKAGE_DESCRIPTION@ + +\endhtmlonly + + */ diff --git a/PackRecalage/doc/doxygen/Doxyfile.txt.in b/PackRecalage/doc/doxygen/Doxyfile.txt.in new file mode 100644 index 0000000..6b4211a --- /dev/null +++ b/PackRecalage/doc/doxygen/Doxyfile.txt.in @@ -0,0 +1,764 @@ +# Doxyfile 1.2.14 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# General configuration options +#--------------------------------------------------------------------------- + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. +PROJECT_NAME = @DOXYGEN_PROJECT_NAME@ + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. +PROJECT_NUMBER = @PROJECT_VERSION@ + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. +OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT@ + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Brazilian, Chinese, Croatian, Czech, Danish, Dutch, Finnish, French, +# German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Polish, +# Portuguese, Romanian, Russian, Slovak, Slovene, Spanish and Swedish. +OUTPUT_LANGUAGE = English + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. +EXTRACT_PRIVATE = YES + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. +EXTRACT_LOCAL_CLASSES = YES + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these class will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. +HIDE_UNDOC_CLASSES = NO + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. +REPEAT_BRIEF = YES + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all inherited +# members of a class in the documentation of that class as if those members were +# ordinary class members. Constructors, destructors and assignment operators of +# the base classes will not be shown. +INLINE_INHERITED_MEMB = YES + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. It is allowed to use relative paths in the argument list. +STRIP_FROM_PATH = + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. +INTERNAL_DOCS = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. +STRIP_CODE_COMMENTS = YES + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower case letters. If set to YES upper case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# users are adviced to set this option to NO. +CASE_SENSE_NAMES = YES + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. +SHORT_NAMES = NO + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. +HIDE_SCOPE_NAMES = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. +VERBATIM_HEADERS = YES + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put list of the files that are included by a file in the documentation +# of that file. +SHOW_INCLUDE_FILES = YES + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like the Qt-style comments (thus requiring an +# explict @brief command for a brief description. +JAVADOC_AUTOBRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# reimplements. +INHERIT_DOCS = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. +SORT_MEMBER_DOCS = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. +DISTRIBUTE_GROUP_DOC = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. +TAB_SIZE = 8 + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. +GENERATE_BUGLIST = YES + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. +ALIASES = + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consist of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. +MAX_INITIALIZER_LINES = 30 + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. +# For instance some of the names that are used will be different. The list +# of all members will be omitted, etc. +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. +SHOW_USED_FILES = YES + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, then doxygen will generate warnings +# for error documented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. +WARN_IF_DOC_ERROR = YES + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. +WARN_LOGFILE = @DOXYGEN_LOGFILE@ + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. +INPUT = @DOXYGEN_INPUT@ + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp +# *.h++ *.idl *.odl +FILE_PATTERNS = *.h *.cxx *.txx + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +EXCLUDE = @DOXYGEN_EXCLUDE@ + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or directories +# that are symbolic links (a Unix filesystem feature) are excluded from the input. +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. +EXCLUDE_PATTERNS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. +EXAMPLE_PATTERNS = *.cxx + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +INPUT_FILTER = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse. +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. +INLINE_SOURCES = YES + +# If the REFERENCED_BY_RELATION tag is set to YES (the default) +# then for each documented function all documented +# functions referencing it will be listed. +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES (the default) +# then for each documented function all documented entities +# called/used by that function will be listed. +REFERENCES_RELATION = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) +COLS_IN_ALPHA_INDEX = 3 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. +HTML_OUTPUT = @DOXYGEN_HTML_OUTPUT@ + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. +HTML_ALIGN_MEMBERS = YES + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compressed HTML help file (.chm) +# of the generated HTML documentation. +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the Html help documentation and to the tree view. +TOC_EXPAND = NO + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. +ENUM_VALUES_PER_LINE = 4 + +# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be +# generated containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript and frames is required (for instance Mozilla, Netscape 4.0+, +# or Internet explorer 4.0+). Note that for large projects the tree generation +# can take a very long time. In such cases it is better to disable this feature. +# Windows users are probably better off using the HTML help feature. +GENERATE_TREEVIEW = YES + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. +TREEVIEW_WIDTH = 250 + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. +LATEX_OUTPUT = latex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. +LATEX_BATCHMODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimised for Word 97 and may not look very pretty with +# other RTF readers or editors. +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assigments. You only have to provide +# replacements, missing definitions are set to their default value. +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. +GENERATE_XML = NO + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_PREDEFINED tags. +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. +PREDEFINED = @DOXYGEN_DOC_PREDEFINED@ + + +# If the MACRO_EXPANSION and EXPAND_PREDEF_ONLY tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line and do not end with a semicolon. Such function macros are typically +# used for boiler-plate code, and will confuse the parser if not removed. +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::addtions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES tag can be used to specify one or more tagfiles. +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in Html, RTF and LaTeX) for classes with base or +# super classes. Setting the tag to NO turns the diagrams off. Note that this +# option is superceded by the HAVE_DOT option below. This is only a fallback. It is +# recommended to install and use dot, since it yield more powerful graphs. +CLASS_DIAGRAMS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) +HAVE_DOT = @DOXYGEN_HAVE_DOT@ + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. +COLLABORATION_GRAPH = YES + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. +TEMPLATE_RELATIONS = YES + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. +HIDE_UNDOC_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. +INCLUDED_BY_GRAPH = YES + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. +GRAPHICAL_HIERARCHY = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are gif, jpg, and png +# If left blank gif will be used. +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found on the path. +DOT_PATH = "@DOXYGEN_DOT_PATH@" + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). +DOTFILE_DIRS = + +# The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. +MAX_DOT_GRAPH_WIDTH = 1024 + +# The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. +MAX_DOT_GRAPH_HEIGHT = 1024 + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermedate dot files that are used to generate +# the various graphs. +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Configuration::addtions related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. +SEARCHENGINE = NO diff --git a/PackRecalage/src/CMakeLists.txt b/PackRecalage/src/CMakeLists.txt new file mode 100644 index 0000000..e2d2a11 --- /dev/null +++ b/PackRecalage/src/CMakeLists.txt @@ -0,0 +1,5 @@ +#--------------------------------------------------------------------------- +# Include src configuration cmake script +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_src.cmake) +#--------------------------------------------------------------------------- + diff --git a/PackRecalage/src/bbPackRecalageCalculateVectorBox.cxx b/PackRecalage/src/bbPackRecalageCalculateVectorBox.cxx new file mode 100644 index 0000000..288710e --- /dev/null +++ b/PackRecalage/src/bbPackRecalageCalculateVectorBox.cxx @@ -0,0 +1,56 @@ +#include "bbPackRecalageCalculateVectorBox.h" +#include "bbPackRecalagePackage.h" +namespace bbPackRecalage +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,CalculateVectorBox) +BBTK_BLACK_BOX_IMPLEMENTATION(CalculateVectorBox,bbtk::AtomicBlackBox); +void CalculateVectorBox::Process() +{ + +// THE MAIN PROCESSING METHOD BODY +// Here we simply set the input 'In' value to the output 'Out' +// And print out the output value +// INPUT/OUTPUT ACCESSORS ARE OF THE FORM : +// void bbSet{Input|Output}NAME(const TYPE&) +// const TYPE& bbGet{Input|Output}NAME() const +// Where : +// * NAME is the name of the input/output +// (the one provided in the attribute 'name' of the tag 'input') +// * TYPE is the C++ type of the input/output +// (the one provided in the attribute 'type' of the tag 'input') + //bbSetOutputOut( bbGetInputIn() ); + //std::cout << "Output value = " <); + BBTK_DECLARE_INPUT(PointsX2,std::vector); + BBTK_DECLARE_INPUT(PointsY1,std::vector); + BBTK_DECLARE_INPUT(PointsY2,std::vector); + BBTK_DECLARE_INPUT(PointsZ1,std::vector); + BBTK_DECLARE_INPUT(PointsZ2,std::vector); + BBTK_DECLARE_INPUT(Labels1,std::vector); + BBTK_DECLARE_INPUT(Labels2,std::vector); + BBTK_DECLARE_OUTPUT(OutX,int); + BBTK_DECLARE_OUTPUT(OutY,int); + BBTK_DECLARE_OUTPUT(OutZ,int); + BBTK_DECLARE_OUTPUT(OutScaleX,int); + BBTK_DECLARE_OUTPUT(OutScaleY,int); + BBTK_DECLARE_OUTPUT(OutScaleZ,int); + BBTK_DECLARE_OUTPUT(OutAngle,double); + BBTK_PROCESS(Process); + void Process(); +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(CalculateVectorBox,bbtk::AtomicBlackBox); +BBTK_NAME("CalculateVectorBox"); +BBTK_AUTHOR("jn.trillos44@uniandes.edu.co"); +BBTK_DESCRIPTION("Box for calculating the cross and point multiplications of 2 vectors"); +BBTK_CATEGORY("__CATEGORY__"); +BBTK_INPUT(CalculateVectorBox,PointsX1,"List of points in X for the first vector",std::vector,""); +BBTK_INPUT(CalculateVectorBox,PointsX2,"List of points in X for the second vector",std::vector,""); +BBTK_INPUT(CalculateVectorBox,PointsY1,"List of points in Y for the first vector",std::vector,""); +BBTK_INPUT(CalculateVectorBox,PointsY2,"List of points in Y for the second vector",std::vector,""); +BBTK_INPUT(CalculateVectorBox,PointsZ1,"List of points in Z for the first vector",std::vector,""); +BBTK_INPUT(CalculateVectorBox,PointsZ2,"List of points in Z for the second vector",std::vector,""); +BBTK_INPUT(CalculateVectorBox,Labels1,"Labels of the points for the first vector",std::vector,""); +BBTK_INPUT(CalculateVectorBox,Labels2,"Labels of the points for the second vector",std::vector,""); +BBTK_OUTPUT(CalculateVectorBox,OutX,"Point in X for the cross multiplication",int,""); +BBTK_OUTPUT(CalculateVectorBox,OutY,"Point in Y for the cross multiplication",int,""); +BBTK_OUTPUT(CalculateVectorBox,OutZ,"Point in Z for the cross multiplication",int,""); +BBTK_OUTPUT(CalculateVectorBox,OutScaleX,"Difference in scale for X for the cross multiplication",int,""); +BBTK_OUTPUT(CalculateVectorBox,OutScaleY,"Difference in scale for Y for the cross multiplication",int,""); +BBTK_OUTPUT(CalculateVectorBox,OutScaleZ,"Difference in scale for Z for the cross multiplication",int,""); +BBTK_OUTPUT(CalculateVectorBox,OutAngle,"Angle that represents the dot multiplication",double,""); +BBTK_END_DESCRIBE_BLACK_BOX(CalculateVectorBox); +} +// EO namespace bbPackRecalage + +#endif // __bbPackRecalageCalculateVectorBox_h_INCLUDED__ + diff --git a/PackRecalage/src/bbPackRecalageReSlicerBox.cxx b/PackRecalage/src/bbPackRecalageReSlicerBox.cxx new file mode 100644 index 0000000..71cb3fa --- /dev/null +++ b/PackRecalage/src/bbPackRecalageReSlicerBox.cxx @@ -0,0 +1,72 @@ +#include "bbPackRecalageReSlicerBox.h" +#include "bbPackRecalagePackage.h" + +namespace bbPackRecalage +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,ReSlicerBox) +BBTK_BLACK_BOX_IMPLEMENTATION(ReSlicerBox,bbtk::AtomicBlackBox); +void ReSlicerBox::Process() +{ + + if(bbGetInputOrigin()[0] != NULL) + { + image = vtkImageChangeInformation::New(); + image->SetInput( bbGetInputIn() ); + image->SetOutputSpacing( 1,1,1 ); + + slicer =vtkImageReslice::New(); + slicer->SetInput( image->GetOutput() ); + slicer->SetResliceTransform(bbGetInputTransform()); + slicer->SetOutputOrigin( 0 , 0 , 0 ); + slicer->SetOutputOrigin( -(bbGetInputOrigin()[0]) , -(bbGetInputOrigin()[1]) , -(bbGetInputOrigin()[2]) ); + slicer->Update(); + + imageResult = vtkImageChangeInformation::New(); + imageResult->SetInput( slicer->GetOutput() ); + double spc[3]; + bbGetInputIn()->GetSpacing(spc); + imageResult->SetOutputSpacing( spc ); + imageResult->SetOutputOrigin( 0,0,0 ); + + bbSetOutputOut( imageResult->GetOutput() ); + } + else + { + bbSetOutputOut( bbGetInputIn() ); + } + +} +void ReSlicerBox::bbUserSetDefaultValues() +{ + + std::vector nuevo(3,0); + nuevo.push_back(0); + bbSetInputOrigin(nuevo); + bbSetInputIn(NULL); + bbSetInputTransform(vtkIdentityTransform::New()); + bbSetOutputOut(NULL); + +} +void ReSlicerBox::bbUserInitializeProcessing() +{ + +// THE INITIALIZATION METHOD BODY : +// Here does nothing +// but this is where you should allocate the internal/output pointers +// if any + image = vtkImageChangeInformation::New(); + slicer =vtkImageReslice::New(); + imageResult = vtkImageChangeInformation::New(); +} +void ReSlicerBox::bbUserFinalizeProcessing() +{ + +// THE FINALIZATION METHOD BODY : +// Here does nothing +// but this is where you should desallocate the internal/output pointers +// if any + +} +} +// EO namespace bbPackRecalage \ No newline at end of file diff --git a/PackRecalage/src/bbPackRecalageReSlicerBox.h b/PackRecalage/src/bbPackRecalageReSlicerBox.h new file mode 100644 index 0000000..e0f7f8e --- /dev/null +++ b/PackRecalage/src/bbPackRecalageReSlicerBox.h @@ -0,0 +1,50 @@ +#ifndef __bbPackRecalageReSlicerBox_h_INCLUDED__ +#define __bbPackRecalageReSlicerBox_h_INCLUDED__ +#include "bbPackRecalage_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" + +#include "vtkImageReslice.h" +#include "vtkLinearTransform.h" +#include "vtkImageData.h" + +#include "vtkIdentityTransform.h" +#include "vtkMatrix4x4.h" +#include + +namespace bbPackRecalage +{ + +class bbPackRecalage_EXPORT ReSlicerBox + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(ReSlicerBox,bbtk::AtomicBlackBox); + BBTK_DECLARE_INPUT(In,vtkImageData *); + BBTK_DECLARE_INPUT(Origin,std::vector); + BBTK_DECLARE_INPUT(Transform,vtkLinearTransform *); + BBTK_DECLARE_OUTPUT(Out,vtkImageData *); + BBTK_PROCESS(Process); + void Process(); + + vtkImageChangeInformation* image; + vtkImageChangeInformation* imageResult; + vtkImageReslice* slicer; + +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReSlicerBox,bbtk::AtomicBlackBox); +BBTK_NAME("ReSlicerBox"); +BBTK_AUTHOR("_authors_"); +BBTK_DESCRIPTION("_description_"); +BBTK_CATEGORY("__CATEGORY__"); +BBTK_INPUT(ReSlicerBox,In,"Image input",vtkImageData *,""); +BBTK_INPUT(ReSlicerBox,Origin,"Image Origin(x,y,z)",std::vector,""); +BBTK_INPUT(ReSlicerBox,Transform,"Transform input",vtkLinearTransform *,""); +BBTK_OUTPUT(ReSlicerBox,Out,"Image output",vtkImageData *,""); +BBTK_END_DESCRIBE_BLACK_BOX(ReSlicerBox); +} +// EO namespace bbPackRecalage + +#endif // __bbPackRecalageReSlicerBox_h_INCLUDED__ + diff --git a/PackRecalage/src/bbPackRecalageTransform2DBox.cxx b/PackRecalage/src/bbPackRecalageTransform2DBox.cxx new file mode 100644 index 0000000..788bca6 --- /dev/null +++ b/PackRecalage/src/bbPackRecalageTransform2DBox.cxx @@ -0,0 +1,58 @@ +#include "bbPackRecalageTransform2DBox.h" +#include "bbPackRecalagePackage.h" +namespace bbPackRecalage +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,Transform2DBox) +BBTK_BLACK_BOX_IMPLEMENTATION(Transform2DBox,bbtk::AtomicBlackBox); +void Transform2DBox::Process() +{ + if(bbGetInputCenterPoint()[0] != NULL) + { + // The inputs are set in the library transformer + transformer->SetCenterPoint( bbGetInputCenterPoint() ); + transformer->SetAngle( bbGetInputAngle() ); + transformer->SetScaleX( bbGetInputScaleX() ); + transformer->SetScaleY( bbGetInputScaleY() ); + transformer->SetScaleZ( bbGetInputScaleZ() ); + // The calculation of the transformations are made + transformer->Run(); + // We get the results of transformer and set it as result of this box + bbSetOutputOut( transformer->GetResult() ); + } + else + { + bbSetOutputOut( NULL ); + } + +} +void Transform2DBox::bbUserSetDefaultValues() +{ + //We initialize the points with an empty vector, the angle in 0 and the scales in 1 + std::vector nuevo(3,0); + nuevo.push_back(0); + bbSetInputCenterPoint(nuevo); + bbSetInputAngle(0); + bbSetInputScaleX(100); + bbSetInputScaleY(100); + bbSetInputScaleZ(100); + bbSetOutputOut(NULL); + +} +void Transform2DBox::bbUserInitializeProcessing() +{ + //We initialize the transformer + transformer=new Transformer(); + + +} +void Transform2DBox::bbUserFinalizeProcessing() +{ + //We delete the transformer + delete transformer; + +} +} +// EO namespace bbPackRecalage + + diff --git a/PackRecalage/src/bbPackRecalageTransform2DBox.h b/PackRecalage/src/bbPackRecalageTransform2DBox.h new file mode 100644 index 0000000..14d7faa --- /dev/null +++ b/PackRecalage/src/bbPackRecalageTransform2DBox.h @@ -0,0 +1,62 @@ +#ifndef __bbPackRecalageTransform2DBox_h_INCLUDED__ +#define __bbPackRecalageTransform2DBox_h_INCLUDED__ +#include "bbPackRecalage_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" + +#include "vtkLinearTransform.h" +#include "sourceTransformer.h" + +namespace bbPackRecalage +{ + +class bbPackRecalage_EXPORT Transform2DBox + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(Transform2DBox,bbtk::AtomicBlackBox); + /*Point(x,y) -> Rotation Center*/ + BBTK_DECLARE_INPUT(CenterPoint,std::vector); + + + /*Rotation angle*/ + BBTK_DECLARE_INPUT(Angle,double); + + + /*Scalation to be done int the x axis*/ + BBTK_DECLARE_INPUT(ScaleX,double); + + + /*Scalation to be done int the y axis*/ + BBTK_DECLARE_INPUT(ScaleY,double); + + /*Scalation to be done int the z axis*/ + BBTK_DECLARE_INPUT(ScaleZ,double); + + /*Resultant vtkTransform*/ + BBTK_DECLARE_OUTPUT(Out, vtkLinearTransform*); + + BBTK_PROCESS(Process); + void Process(); + + /*Class in charge of making the transformations*/ + Transformer *transformer; +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(Transform2DBox,bbtk::AtomicBlackBox); +BBTK_NAME("Transform2DBox"); +BBTK_AUTHOR("va-perez@uniandes.edu.co"); +BBTK_DESCRIPTION("Given 2 points and an angle, it calculates the vtkTransform result after aplying the transformations, using the first point as base of the transformation"); +BBTK_CATEGORY("filter"); +BBTK_INPUT(Transform2DBox,CenterPoint,"Point (x,y,z) -> Rotation Center",std::vector,""); +BBTK_INPUT(Transform2DBox,Angle,"Rotation Angle",double,""); +BBTK_INPUT(Transform2DBox,ScaleX,"Scale in X",double,""); +BBTK_INPUT(Transform2DBox,ScaleY,"Scale in Y",double,""); +BBTK_INPUT(Transform2DBox,ScaleZ,"Scale in Z",double,""); +BBTK_OUTPUT(Transform2DBox,Out,"First output",vtkLinearTransform*,""); +BBTK_END_DESCRIBE_BLACK_BOX(Transform2DBox); +} +// EO namespace bbPackRecalage + +#endif // __bbPackRecalageTransform2DBox_h_INCLUDED__ + diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt new file mode 100644 index 0000000..1f5bdfc --- /dev/null +++ b/appli/CMakeLists.txt @@ -0,0 +1,3 @@ +# Add a SUBDIRS command for each of your applications +# SUBDIRS(MyApp1) +# SUBDIRS(MyApp2) diff --git a/appli/template_appli/CMakeLists.txt b/appli/template_appli/CMakeLists.txt new file mode 100644 index 0000000..33ee086 --- /dev/null +++ b/appli/template_appli/CMakeLists.txt @@ -0,0 +1,51 @@ +#---------------------------------------------------------------------------- +# SET THE NAME OF YOUR EXECUTABLE +# Replace 'MyExe' by the name you want to give your executable. +# (a good plicy is to give the executable the same name that the directory) + +######################### +SET ( EXE_NAME MyExe ) +######################### + +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# EXECUTABLE SOURCES (TO BE COMPILED) +# EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE: + +FILE(GLOB ${EXE_NAME}_SOURCES *.cxx *.cpp *.cc) + +# OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION) +# SET ( ${EXE_NAME}_SOURCES +# +# ) +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# DEPENDENCIES (LIBRARIES TO LINK WITH) +SET ( ${EXE_NAME}_LINK_LIBRARIES + # ${crea_LIBRARIES} + # ${WXWIDGETS_LIBRARIES} + # ${KWWidgets_LIBRARIES} + # ${VTK_LIBRARIES} + # ${ITK_LIBRARIES} + # ${GDCM_LIBRARIES} + # ${BOOST_LIBRARIES} + + # Add here those agmonst the various (?) PROJECT LIBRARIES + # you need for the current executable + # (If you created only one Library, don't forget it !...) + + ) +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# CREATES AND INSTALLS THE EXE +# Set to ON if your appli has a GUI (to build as a Win32 app on windows) +SET(${EXE_NAME}_HAS_GUI OFF) +# Set to ON if your appli has a GUI but you also want a msdos console on windows +SET(${EXE_NAME}_CONSOLE OFF) +CREA_ADD_EXECUTABLE( ${EXE_NAME} ) +#---------------------------------------------------------------------------- + + diff --git a/cmake/UserBuildAllOption.cmake b/cmake/UserBuildAllOption.cmake new file mode 100644 index 0000000..5df73d1 --- /dev/null +++ b/cmake/UserBuildAllOption.cmake @@ -0,0 +1,30 @@ +#----------------------------------------------------------------------------- +# If --BUILD_ALL is set to ON then all options +# for which the macro SWITCH_ON_IF_BUILD_ALL have been used are set to ON +# The -- prepended to the options ensure that it will appear as the +# first option when running ccmake/CMakeSetup +#IF (BBTK_CORE_PACKAGE) + OPTION(--BUILD_ALL "Build all ?" OFF) + #OPTION(--SET_BUILD_ALL_OFF "Build all ?" OFF) + #MARK_AS_ADVANCED(--SET_BUILD_ALL_OFF) + + MACRO(SWITCH_ON_IF_BUILD_ALL VAR) + #OPTION(--${VAR}_SET_BUILD_ALL_OFF "Build all ?" OFF) + #MARK_AS_ADVANCED(--${VAR}_SET_BUILD_ALL_OFF) + IF (--BUILD_ALL) + # IF (--${VAR}_SET_BUILD_ALL_OFF) + # MESSAGE(ERROR "${VAR} -> Build All OFF") + # SET(--BUILD_ALL OFF CACHE BOOL "Build all ?" FORCE) + # SET(--${VAR}_SET_BUILD_ALL_OFF OFF CACHE BOOL "" FORCE) + # ELSE (--${VAR}_SET_BUILD_ALL_OFF) + SET(${VAR} ON CACHE BOOL "Forced to ON by --BUILD_ALL" FORCE) + # SET(--${VAR}_SET_BUILD_ALL_OFF ON CACHE BOOL "" FORCE) + # MESSAGE(ERROR "Build All -> ${VAR}") + # ENDIF (--${VAR}_SET_BUILD_ALL_OFF) + ENDIF(--BUILD_ALL) + ENDMACRO(SWITCH_ON_IF_BUILD_ALL) +#ELSE (BBTK_CORE_PACKAGE) + # MACRO(SWITCH_ON_IF_BUILD_ALL VAR) + # ENDMACRO(SWITCH_ON_IF_BUILD_ALL) +#ENDIF (BBTK_CORE_PACKAGE) +#----------------------------------------------------------------------------- diff --git a/cmake/UserBuildDoxygenDoc.cmake b/cmake/UserBuildDoxygenDoc.cmake new file mode 100644 index 0000000..38f4733 --- /dev/null +++ b/cmake/UserBuildDoxygenDoc.cmake @@ -0,0 +1,71 @@ + + +MACRO(USER_BUILD_DOXYGEN_DOC NAME INPUT DOC_RELATIVE_INSTALL_PATH PREDEFINED) + + #-------------------------------------------------------------------------- + SET(USE_DOXYGEN ON CACHE BOOL "" FORCE) + + # Name + SET(DOXYGEN_PROJECT_NAME "${NAME}") + + # Inputs + STRING(REGEX REPLACE ";" " " DOXYGEN_INPUT "${INPUT}") + + # Output dirs + SET(DOXYGEN_HTML_OUTPUT ".") + SET(DOXYGEN_OUTPUT ${${PROJECT_NAME}_DOXYGEN_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}) + IF(NOT IS_DIRECTORY ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}) + FILE(MAKE_DIRECTORY ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}) + ENDIF(NOT IS_DIRECTORY ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}) + + # Doc exclude + SET(DOXYGEN_EXCLUDE "") + STRING(REGEX REPLACE ";" " " DOXYGEN_EXCLUDE "${DOXYGEN_EXCLUDE}") + + # Log file name + SET(DOXYGEN_LOGFILE "${CMAKE_CURRENT_BINARY_DIR}/doxygen.log") + + # Predefined symbols + STRING(REGEX REPLACE ";" " " DOXYGEN_DOC_PREDEFINED "${PREDEFINED}") + + #--------------------------------------------------------------------------- + # DOT verification + IF(DOT) + GET_FILENAME_COMPONENT(DOXYGEN_DOT_PATH ${DOT} PATH) + SET(DOXYGEN_HAVE_DOT "YES") + ELSE(DOT) + SET(DOXYGEN_DOT_PATH "") + SET(DOXYGEN_HAVE_DOT "NO") + ENDIF(DOT) + + #--------------------------------------------------------------------------- + # Create file and project + CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.txt.in + ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.txt + @ONLY IMMEDIATE + ) + + + ADD_CUSTOM_COMMAND( + OUTPUT ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/index.html + COMMAND + ${DOXYGEN} + ARGS + ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.txt + # DEPENDS bbtk bbi + ) + + ADD_CUSTOM_TARGET(doxygen_${NAME} ALL + DEPENDS ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/index.html + ) + + INSTALL( + DIRECTORY + ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT} + DESTINATION + ${BBTK_DOXYGEN_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH} + ) + #-------------------------------------------------------------------------- + +ENDMACRO(USER_BUILD_DOXYGEN_DOC) diff --git a/cmake/UserBuildHtmlDocFromLatex.cmake b/cmake/UserBuildHtmlDocFromLatex.cmake new file mode 100644 index 0000000..5e79304 --- /dev/null +++ b/cmake/UserBuildHtmlDocFromLatex.cmake @@ -0,0 +1,29 @@ + + +MACRO(USER_BUILD_HTML_DOC_FROM_LATEX TEX_FILE OUTPUT_REL_PATH) + # Need tth + SET(USE_TTH ON CACHE BOOL "" FORCE) + # Construct absolute build path + SET(BUILD_PATH ${${PROJECT_NAME}_DOC_BUILD_PATH}/${OUTPUT_REL_PATH}) + #------------------------------------------------------------------------- + + ADD_CUSTOM_COMMAND( + OUTPUT ${BUILD_PATH}/${TEX_FILE}.html + COMMAND + # tth + ${TTH_EXECUTABLE} + ARGS + -e2 ${BUILD_PATH}/${TEX_FILE}.tex 2>tth.log + # DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${TEX_FILE}.pdf + ) + ADD_CUSTOM_TARGET(${TEX_FILE}.html ALL + DEPENDS ${BUILD_PATH}/${TEX_FILE}.html + ) + # Install + INSTALL( + FILES ${BUILD_PATH}/${TEX_FILE}.html + DESTINATION ${BBTK_DOC_INSTALL_PATH}/${OUTPUT_REL_PATH} + ) + #------------------------------------------------------------------------- + +ENDMACRO(USER_BUILD_HTML_DOC_FROM_LATEX) diff --git a/cmake/UserBuildLatexDoc.cmake b/cmake/UserBuildLatexDoc.cmake new file mode 100644 index 0000000..b70ac84 --- /dev/null +++ b/cmake/UserBuildLatexDoc.cmake @@ -0,0 +1,63 @@ + + +MACRO(USER_BUILD_LATEX_DOC TEX_FILE OUTPUT_REL_PATH) + # Need LaTeX + SET(USE_LATEX ON CACHE BOOL "" FORCE) + # Construct absolute build path + SET(BUILD_PATH ${${PROJECT_NAME}_DOC_BUILD_PATH}/${OUTPUT_REL_PATH}) + #MESSAGE(STATUS "Tex file : ${TEX_FILE}") + #--------------------------------------------------------------------------- + CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/${TEX_FILE}.tex + ${BUILD_PATH}/${TEX_FILE}.tex + COPYONLY + ) + CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/../config.tex + ${BUILD_PATH}/config.tex + @ONLY + ) + CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/../config.tex + ${CMAKE_CURRENT_BINARY_DIR}/config.tex + @ONLY + ) + #--------------------------------------------------------------------------- + FILE(TO_NATIVE_PATH ${BUILD_PATH} THE_BUILD_PATH) + + # Have to run latex twice to get references, toc, etc. + ADD_CUSTOM_COMMAND( + OUTPUT ${BUILD_PATH}/${TEX_FILE}.aux + COMMAND + # latex + cd ${THE_BUILD_PATH} && ${LATEX_COMPILER} + ARGS + -interaction=batchmode ${BUILD_PATH}/${TEX_FILE} -output-directory=${BUILD_PATH}/ + + DEPENDS + ${CMAKE_CURRENT_SOURCE_DIR}/${TEX_FILE}.tex + ${CMAKE_CURRENT_SOURCE_DIR}/../config.tex + ) + ADD_CUSTOM_COMMAND( + OUTPUT ${BUILD_PATH}/${TEX_FILE}.pdf + COMMAND + # latex + cd ${THE_BUILD_PATH} && ${LATEX_COMPILER} + ARGS + -interaction=batchmode ${BUILD_PATH}/${TEX_FILE} -output-directory=${BUILD_PATH}/ + + DEPENDS ${BUILD_PATH}/${TEX_FILE}.aux + ) + + # pdf target + ADD_CUSTOM_TARGET(${TEX_FILE}.pdf ALL + DEPENDS ${BUILD_PATH}/${TEX_FILE}.pdf) + + # Install + INSTALL( + FILES ${BUILD_PATH}/${TEX_FILE}.pdf + DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}/${OUTPUT_REL_PATH} + ) + + +ENDMACRO(USER_BUILD_LATEX_DOC) diff --git a/cmake/UserConfig.cmake b/cmake/UserConfig.cmake new file mode 100644 index 0000000..4245d10 --- /dev/null +++ b/cmake/UserConfig.cmake @@ -0,0 +1,23 @@ + + +#----------------------------------------------------------------------------- +# The vars BBTK_DOC_REL_PATH and BBTK_BBS_REL_PATH +# store documentation and scripts **RELATIVE** paths +# from build tree root or install tree root +# (different on win/lin) +IF(WIN32) + # A trick to install in root install dir (problem when empty path given) + SET(${PROJECT_NAME}_SHARE_REL_PATH "bin/..") + SET(${PROJECT_NAME}_DOC_REL_PATH doc) +ELSE(WIN32) + SET(${PROJECT_NAME}_SHARE_REL_PATH share/bbtk) + SET(${PROJECT_NAME}_DOC_REL_PATH share/bbtk/doc) +ENDIF(WIN32) + +MESSAGE(STATUS "* SHARE_REL_PATH =${${PROJECT_NAME}_SHARE_REL_PATH}") +MESSAGE(STATUS "* DOC_REL_PATH =${${PROJECT_NAME}_DOC_REL_PATH}") +MESSAGE(STATUS "* BBS_REL_PATH =${${PROJECT_NAME}_BBS_REL_PATH}") +MESSAGE(STATUS "* DATA_REL_PATH =${${PROJECT_NAME}_DATA_REL_PATH}") +MESSAGE(STATUS "===============================================") + +#----------------------------------------------------------------------------- diff --git a/cmake/UserDefineOptions.cmake b/cmake/UserDefineOptions.cmake new file mode 100644 index 0000000..65a1446 --- /dev/null +++ b/cmake/UserDefineOptions.cmake @@ -0,0 +1,39 @@ +#----------------------------------------------------------------------------- +# messages compilation options +OPTION ( BUILD_${PROJECT_NAME}_DOC "Build documentation for ${PROJECT_NAME}." OFF) +SWITCH_ON_IF_BUILD_ALL(BUILD_${PROJECT_NAME}_DOC) +#----------------------------------------------------------------------------- +IF(BUILD_${PROJECT_NAME}_DOC) + + OPTION(BUILD_${PROJECT_NAME}_DOC_PACKAGE + "Build ${PROJECT_NAME} packages documentation (bbi+dot)." ON) + OPTION(BUILD_${PROJECT_NAME}_DOC_DOXYGEN + "Build doxygen documentation (doxygen)." ON) + OPTION(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF + "Build ${PROJECT_NAME} Guides', PDF format (latex)." ON) + OPTION(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML + "Build ${PROJECT_NAME} Guides', HTML format (latex+tth)." ON) + +ELSE(BUILD_${PROJECT_NAME}_DOC) + + IF(BUILD_${PROJECT_NAME}_DOC_PACKAGE) + SET(BUILD_${PROJECT_NAME}_DOC_PACKAGE OFF CACHE BOOL + "Build ${PROJECT_NAME} packages documentation (bbdoc+dot)." FORCE) + ENDIF(BUILD_${PROJECT_NAME}_DOC_PACKAGE) + IF(BUILD_${PROJECT_NAME}_DOC_DOXYGEN) + SET(BUILD_${PROJECT_NAME}_DOC_DOXYGEN OFF CACHE BOOL + "Build doxygen documentation. (doxygen)" FORCE) + ENDIF(BUILD_${PROJECT_NAME}_DOC_DOXYGEN) + + IF(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF) + SET(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OFF CACHE BOOL + "Build ${PROJECT_NAME} Guides', PDF format (latex)." FORCE) + ENDIF(BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF) + + IF(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) + SET(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML OFF CACHE BOOL + "Build ${PROJECT_NAME} Guides', HTML format (latex tth)." FORCE) + ENDIF(BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) + +ENDIF(BUILD_${PROJECT_NAME}_DOC) +#----------------------------------------------------------------------------- diff --git a/cmake/UserMacros.cmake b/cmake/UserMacros.cmake new file mode 100644 index 0000000..0f33860 --- /dev/null +++ b/cmake/UserMacros.cmake @@ -0,0 +1,37 @@ +#======================================================================== +# MACRO WHICH COPIES ALL IMAGES (png, jpg, gif) +# FROM SOURCE TREE TO DOC BUILD TREE +# AND INSTALL THEM IN BBTK DOC TREE +MACRO(USER_DOC_INSTALL_IMAGES DOC_RELATIVE_INSTALL_PATH) + MESSAGE(STATUS "* Copying png,jpg,tif images in ${BBTK_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}") + FILE(GLOB PNG_IMAGES "*.png") + FILE(GLOB JPG_IMAGES "*.jpg") + FILE(GLOB TIF_IMAGES "*.tif") + SET(IMAGES + ${PNG_IMAGES} + ${JPG_IMAGES} + ${TIF_IMAGES} + ) +# MESSAGE(ERROR ${IMAGES} ) + FOREACH(image ${IMAGES}) + GET_FILENAME_COMPONENT(filename "${image}" NAME) + CONFIGURE_FILE( + ${image} + ${${PROJECT_NAME}_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename} + COPYONLY + ) + + # IF (WIN32) +# CONFIGURE_FILE( +# ${image} +# ${CMAKE_CURRENT_BINARY_DIR}/${filename} +# COPYONLY +# ) +# ENDIF(WIN32) + # MESSAGE(ERROR "${image} (${filename}) in : ${PROJECT_BINARY_DIR}/${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}") + ENDFOREACH(image) + INSTALL( + FILES ${IMAGES} + DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH} + ) +ENDMACRO(USER_DOC_INSTALL_IMAGES) \ No newline at end of file diff --git a/cmake/UserRootCMakeLists.cmake b/cmake/UserRootCMakeLists.cmake new file mode 100644 index 0000000..d4ee59b --- /dev/null +++ b/cmake/UserRootCMakeLists.cmake @@ -0,0 +1,6 @@ + +INCLUDE(cmake/UserMacros.cmake) +INCLUDE(cmake/UserConfig.cmake) +INCLUDE(cmake/UserSetDeducedPaths.cmake) +INCLUDE(cmake/UserBuildAllOption.cmake) +INCLUDE(cmake/UserDefineOptions.cmake) \ No newline at end of file diff --git a/cmake/UserSetDeducedPaths.cmake b/cmake/UserSetDeducedPaths.cmake new file mode 100644 index 0000000..cf993cb --- /dev/null +++ b/cmake/UserSetDeducedPaths.cmake @@ -0,0 +1,62 @@ +MESSAGE(STATUS "===============================================") +MESSAGE(STATUS "Setting up deduced pathes:") +# Black box docs relative path +SET(${PROJECT_NAME}_BBDOC_REL_PATH ${${PROJECT_NAME}_DOC_REL_PATH}/bbdoc) +# Doxygen docs relative path +SET(${PROJECT_NAME}_DOXYGEN_REL_PATH ${${PROJECT_NAME}_DOC_REL_PATH}/doxygen) + +MESSAGE(STATUS "* BBTK_BBDOC_REL_PATH =${BBTK_BBDOC_REL_PATH}") +MESSAGE(STATUS "* BBTK_DOXYGEN_REL_PATH =${BBTK_DOXYGEN_REL_PATH}") + +# Now compute BUILD TREE **ABSOLUTE PATHS** +SET(${PROJECT_NAME}_DOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DOC_REL_PATH}) +SET(${PROJECT_NAME}_BBDOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_BBDOC_REL_PATH}) +SET(${PROJECT_NAME}_DOXYGEN_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DOXYGEN_REL_PATH}) +SET(${PROJECT_NAME}_BBS_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_BBS_REL_PATH}) +SET(${PROJECT_NAME}_DATA_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DATA_REL_PATH}) + +#SET(BBTK_DOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOC_REL_PATH}) +#SET(BBTK_BBDOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBDOC_REL_PATH}) +#SET(BBTK_DOXYGEN_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOXYGEN_REL_PATH}) +#SET(BBTK_BBS_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBS_REL_PATH}) +#SET(BBTK_DATA_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DATA_REL_PATH}) + +# LG 22/10/08 : REMOVED THE **ABSOLUTE INSTALL PATH** +# was buggy when packaging +# consequences : +# 1) generated packages are NOT relocatables +# 2) they must be installed at the same prefix than bbtk +SET(${PROJECT_NAME}_DOC_INSTALL_PATH ${${PROJECT_NAME}_DOC_REL_PATH}) +SET(${PROJECT_NAME}_BBDOC_INSTALL_PATH ${${PROJECT_NAME}_BBDOC_REL_PATH}) +SET(${PROJECT_NAME}_DOXYGEN_INSTALL_PATH ${${PROJECT_NAME}_DOXYGEN_REL_PATH}) +SET(${PROJECT_NAME}_BBS_INSTALL_PATH ${${PROJECT_NAME}_BBS_REL_PATH}) +SET(${PROJECT_NAME}_DATA_INSTALL_PATH ${${PROJECT_NAME}_DATA_REL_PATH}) + + + + +# Create build directories if necessary +CREA_MKDIR(${${PROJECT_NAME}_DOC_BUILD_PATH}) +CREA_MKDIR(${${PROJECT_NAME}_BBDOC_BUILD_PATH}) +CREA_MKDIR(${${PROJECT_NAME}_DOXYGEN_BUILD_PATH}) +CREA_MKDIR(${${PROJECT_NAME}_BBS_BUILD_PATH}) +CREA_MKDIR(${${PROJECT_NAME}_DATA_BUILD_PATH}) + +#----------------------------------------------------------------------------- +SET (EXECUTABLE_OUTPUT_PATH + ${PROJECT_BINARY_DIR}/${EXECUTABLE_OUTPUT_REL_PATH}) +SET (LIBRARY_OUTPUT_PATH + ${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH}) +#----------------------------------------------------------------------------- +MESSAGE(STATUS "* EXECUTABLE_OUTPUT_PATH=${EXECUTABLE_OUTPUT_PATH}") +MESSAGE(STATUS "* LIBRARY_OUTPUT_PATH =${LIBRARY_OUTPUT_PATH}") + +#----------------------------------------------------------------------------- +# Today CMakeCreateFindPackage is copied in BBTK_CMAKE_DIR +# When installed as a separate project will have to find it with FIND_PACKAGE +SET(CMakeCreateFindPackage_DIR ${${PROJECT_NAME}_CMAKE_DIR}) +#----------------------------------------------------------------------------- + + +MESSAGE(STATUS "===============================================") + diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..2f9447e --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,78 @@ + + +#----------------------------------------------------------------------------- +IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN) + INCLUDE(../cmake/UserBuildDoxygenDoc.cmake) + SUBDIRS(UserDoxygen) +ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN) +#----------------------------------------------------------------------------- + +#----------------------------------------------------------------------------- +IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF) + INCLUDE(../cmake/UserBuildLatexDoc.cmake) +ELSE(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) + MACRO(USER_BUILD_LATEX_DOC TEX_FILE) + ENDMACRO(USER_BUILD_LATEX_DOC) +ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF) +#----------------------------------------------------------------------------- + + +#----------------------------------------------------------------------------- +IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) + INCLUDE(../cmake/UserBuildHtmlDocFromLatex.cmake) +ELSE(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) + MACRO(USER_BUILD_HTML_DOC_FROM_LATEX SOURCE) + ENDMACRO(USER_BUILD_HTML_DOC_FROM_LATEX) +ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) +#----------------------------------------------------------------------------- + + +#----------------------------------------------------------------------------- +IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) + SUBDIRS(UserDocumentation) +ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) +#----------------------------------------------------------------------------- +# Web site +IF(BUILD_${PROJECT_NAME}_DOC) + # Configure main page index.html for build tree + CONFIGURE_FILE( + index.html.in + ${${PROJECT_NAME}_DOC_BUILD_PATH}/index.html + @ONLY + ) + # Install it + INSTALL( + FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/index.html + DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH} + ) + # Configure main page index-no-frame.html for build tree + CONFIGURE_FILE( + index-no-frame.html.in + ${${PROJECT_NAME}_DOC_BUILD_PATH}/index-no-frame.html + @ONLY + ) + # Install it + INSTALL( + FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/index-no-frame.html + DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH} + ) + # Configure help_contents.html for build tree + CONFIGURE_FILE( + help_contents.html.in + ${${PROJECT_NAME}_DOC_BUILD_PATH}/help_contents.html + @ONLY + ) + # Install it + INSTALL( + FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/help_contents.html + DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH} + ) + + # Recurse it bbtkWebSite dir + SUBDIRS(template_WebSite) + + + +ENDIF(BUILD_${PROJECT_NAME}_DOC) +#----------------------------------------------------------------------------- + diff --git a/doc/README.txt b/doc/README.txt new file mode 100644 index 0000000..011ac7b --- /dev/null +++ b/doc/README.txt @@ -0,0 +1,5 @@ +* config.tex : input file for all latex guides (user's, package dev's ...) +* help_contents.html.in : home page of bbStudio help +* index.html.in : home page of online doc (frame) +* index-no-frame.html.in : home page of online doc (without frame) + diff --git a/doc/README_HowToUpload.txt b/doc/README_HowToUpload.txt new file mode 100644 index 0000000..a6bf91c --- /dev/null +++ b/doc/README_HowToUpload.txt @@ -0,0 +1,5 @@ +After builing ALL : + +cd in the build tree +cd share/doc +rsync -rtvO . tux:/var/www/html/software/creatools/bbtk/v0_9_0/ --perms --chmod=Dg+s,ug+w diff --git a/doc/UserDocumentation/CMakeLists.txt b/doc/UserDocumentation/CMakeLists.txt new file mode 100644 index 0000000..f12e4d1 --- /dev/null +++ b/doc/UserDocumentation/CMakeLists.txt @@ -0,0 +1,7 @@ +MESSAGE(STATUS "") +MESSAGE(STATUS "=======================================") +MESSAGE(STATUS "Configuring bbtk Package Developers' Guide build ") +USER_DOC_INSTALL_IMAGES(UserDocumentation) +USER_BUILD_LATEX_DOC(UserDocumentation UserDocumentation) +USER_BUILD_HTML_DOC_FROM_LATEX(UserDocumentation UserDocumentation) +MESSAGE(STATUS "=======================================") diff --git a/doc/UserDocumentation/UserDocumentation.tex b/doc/UserDocumentation/UserDocumentation.tex new file mode 100644 index 0000000..9510553 --- /dev/null +++ b/doc/UserDocumentation/UserDocumentation.tex @@ -0,0 +1,49 @@ + +% ========================================== +\documentclass[11pt,final,a4paper]{article} +\input{config.tex} +\begin{document} +\bbtkGuide[Package Developers' Guide] +\newpage +% ========================================== + + + + +% ========================================== +\section{Introduction} +% ========================================== + +Introduction + +\begin{enumerate} +\item \textbf{Subject 1 } +This is described in section \ref{Section1}. + +\item \textbf{Describe your new box.} +You can do it either : +\begin{itemize} +\item In \CPP code. You will have to write the class for +your box, mostly using \bbtk macros. +\item In \xml code. +When configuring your project with \cmake, +the utility \bbfy will then generate the corresponding \CPP code. +\end{itemize} + +This is described in section \ref{CreateBlackBox}. + +\end{enumerate} + +% ========================================== +\section{Subject 1} +\label{Section1} +% ========================================== + +% ========================================== +\subsection{SubSection 1} +% ========================================== +Description of the SubSection + + +\end{document} + diff --git a/doc/UserDoxygen/CMakeLists.txt b/doc/UserDoxygen/CMakeLists.txt new file mode 100644 index 0000000..9fab474 --- /dev/null +++ b/doc/UserDoxygen/CMakeLists.txt @@ -0,0 +1,30 @@ +MESSAGE(STATUS "") +MESSAGE(STATUS "=======================================") +MESSAGE(STATUS "Configuring user doxygen doc") + +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/CodingStyle.html + ${CMAKE_CURRENT_BINARY_DIR}/CodingStyle.html + IMMEDIATE + ) +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/DoxyMainPage.txt.in + ${CMAKE_CURRENT_BINARY_DIR}/DoxyMainPage.txt + @ONLY IMMEDIATE + ) + +SET(INPUT + ${CMAKE_CURRENT_BINARY_DIR}/DoxyMainPage.txt + ${PROJECT_SOURCE_DIR}/lib + ${PROJECT_SOURCE_DIR}/appli + ) + +INCLUDE(../../cmake/UserBuildDoxygenDoc.cmake) +USER_BUILD_DOXYGEN_DOC( + "${PROJECT_NAME}" + "${INPUT}" + "${PROJECT_NAME}" + "${DOXYGEN_DOC_PREDEFINED}" + ) + +MESSAGE(STATUS "=======================================") diff --git a/doc/UserDoxygen/CodingStyle.html b/doc/UserDoxygen/CodingStyle.html new file mode 100644 index 0000000..57758d7 --- /dev/null +++ b/doc/UserDoxygen/CodingStyle.html @@ -0,0 +1,360 @@ + + + bbtk Developpers + + + + +

bbtk coding style (and other religious/agnostic beliefs)

+
+ +
* Introduction:
+   The following coding style intends to ease the work of developpers
+   themselves but also of users who will study, maintain, fix, and extend
+   the code. Any bread crumbs that you can drop in the way of explanatory
+   names and comments will go a long way towards helping other readers and
+   developers.
+   Keep in mind that to a large extent the structure of code directly
+   expresses its implementation.
+                                                                                
+* Language:
+ - C++ (for the kernel) and Python (for the wrappers).
+ - all the names (variables, members, methods, functions) and comments
+   should be based on English. Documentation, guides, web site and other
+   informations should be in English.
+   Make sure you use correct (basic) English and complete, grammatically
+   correct sentences for comments and documentation.
+                                                                                
+* General layout:
+ - Each line of code should take no more than 79 characters. Break the code
+   across multiple lines as necessary.
+ - Methods and functions should keep a reasonable number of lines when
+   possible (a typical editor displays 50 lines). Avoid code duplication.
+   Always prefer creating a new method or function to duplication.
+   A high indentation level generally suggests the need for a new
+   method or function.
+ - All the code should be properly indented. The appropriate indentation
+   level is TWO spaces for each level of indentation. DO NOT USE TABS.
+   Set up your editor to insert spaces. Using tabs may look good in your
+   editor but will wreak havoc in others, or in external tools (e.g. side
+   by side diffs).
+ - The declaration of variables within classes, methods, and functions
+   should be one declaration per line. Provide them with default values
+   and don't rely on compilers for default initialization.
+                                                                                
+* Naming conventions:
+ - Generalities:
+   In general, names are constructed by using case change to indicate
+   separate words, as in ImageDataSize (standing for "image data size").
+   Underscores are not used. Variable names are choosen carefully with the
+   intention to convey the meaning behind the code. Names are generally
+   spelled out; use of abbreviations is discouraged.
+   [Note: abbreviation are allowable when in common use, and should be in
+    uppercase as in LUT or RGBA.]
+   While this does result in long names, it self-documents the code.
+ - Naming Files:
+   Files should have the same name as the class, with a "bbtk" prepended.
+   Header files are named .h, while implementation files are named either
+   .cxx or .txx, depending on whether they are implementations of templated
+   classes. For example, the class bbtk::BlackBox is declared and defined
+   in the files bbtkBlackBox.h and bbtkBlackBox.cxx.
+ - Naming Class Data Members, Methods, and Functions:
+   Class data members (aka Attributes) are named beginning with a lower case 'm'
+   (m as 'member'!) followed by capital letter as in mGroupPixel, in order not
+   be confused with methods names.
+   Global functions and class methods, either static or class members, are
+   named beginning with a capital letter, as in GetImageDataSize().
+ - Naming Local Variables:
+   Local variables begin in lowercase. There is more flexibility in the
+   naming of local variables although they still should convey some
+   semantics.
+ - Naming function parameters:
+   Function parameters begin in lowercase. There is more flexibility in the
+   naming of function parameters although they still should convey some
+   semantics.
+                                                                                 
+* Classes:
+ - Don't use the inline keyword when defining an inline function
+   within a class definition.
+   (Any method defined within a .h file is ipso facto considered as 'inline'.
+   Dont write useless stuff!)
+ - As stated in the "Naming conventions" section, class data members
+   named beginning with a lower case 'm' followed by capital letter 
+   as in mGroupPixel.
+   But the parameter names of method should be named with a lowercase
+   letter (in order to distinguish at a glance data members, from parameters
+   and also to avoid potential collisions with data members):
+      void A::SetGroupPixel( int groupPixel )
+      {
+         mGroupPixel = groupPixel;
+      }
+ - Don't use trailing ';' in inline function definition.
+   use :
+   void A::SetGroupPixel( int groupPixel ){mGroupPixel = groupPixel;}
+     NOT
+   void A::SetGroupPixel( int groupPixel ){mGroupPixel = groupPixel;};
+ - Do not repeat the 'virtual' keyword when overriding virtual base methods
+   in declaration of subclasses:
+     class A
+     {
+        virtual void foo(...);
+     };
+     class B : public bbtk::A
+     {
+        void foo(...);          // and NOT: virtual void foo(...);
+     };
+     
+    (when the keyword 'virtual' is used at the parent level, it's propagated 
+     for all the child classes)
+
+ - In declaration of subclasses, always preprend the class name with 'bbtk::'
+   in order not to confuse Umbrello ( OpenSource UML diagram generator)
+     class A
+     {
+        ...
+     };
+     class B : public bbtk::A // and NOT: class B: public A
+     {
+        ...   
+     };    
+ - The public, protected, private declarations should be at the
+   same indent level as the class. Use :
+     class A
+     {
+     public:
+        void bar(...);
+     protected:
+        void foo(...);	
+     private:
+        void pff(...);
+     };
+     
+ - The Data members should be declared at the end of the class declaration :
+     class A
+     {
+     public:
+        void bar(...);
+     protected:
+        void foo(...);
+     private:
+        void pff(...);
+
+     // --- Data members
+     
+     public:
+        int mPublicCounter;
+     protected:
+        int mProtectedCounter;
+     private:
+        int mPrivateCounter;     
+     }; 
+ 
+ - Method and functions devoided of arguments should not use the void
+   notation. Use :
+     SomeType Header::GetPixelData()
+   and not
+     SomeType Header::GetPixelData(void)
+                                                                                
+* Use of braces:
+ - Braces must be used to delimit the scope of an if, for, while, switch, or
+   other control structure. Braces are placed on a line by themselves, and
+   at the same indentation level as the control structure to which they
+   belong:
+      for (i=0; * i<3; i++)
+      {
+         ...
+      }
+   and NOT :
+      for (i=0; * i<3; i++) {
+         ...
+      }   
+   or when using an if:
+      if ( condition )
+      {
+         ...
+      }
+      else if ( other condition )
+      {
+         ...
+      }
+      else
+      {
+        ....
+      }
+    and NOT :
+      if ( condition ) {
+         ...
+      } else if ( other condition ) {
+         ...
+      } else {
+         ....
+      }    
+   You can choose to use braces on a line with a code block when
+   the block consists of a single line:
+      if ( condition ) { foo=1; }
+      else if ( condition2 ) { foo=3; }
+      else { return; }
+   or
+      for (i=0; i<3; ++i) {x[i]=0.0;}
+   Methods and functions should follow the same usage of braces:
+      void File::ParsePixelData()
+      {
+         ...
+      }
+
+* Special layout:
+ - Avoid code mixed with comments on a single line. Instead, prepend the
+   logical blocks of code with the concerned comments.
+ - Use parentheses around conditions e.g. with an if statement:
+      if ( someLocalVariable == 2 ) { ... }
+ - Add spaces around parentheses, or braces. Use
+      if ( someLocalVariable == 2 ) { mClassMember += 1; }
+   and not
+      if (someLocalVariable == 2) {mClassMember += 1;}
+ - Add spaces around each side of the assignement operator, and
+   around binary operators used in boolean expression. Use
+      someLocalVariable = mClassMember * 2;
+      if ( someLocalVariable == 2 || mClassMember == 2 ) ...
+   and not
+      someLocalVariable=mClassMember*2;
+      if ( someLocalVariable==2||mClassMember==2 ) ...
+                                                                                
+* Miscelaneous:
+ - Don't use underscores. Don't use tabs. Don't use control characters
+   like ^M. Anyhow, cvs is configured to reject such commits.
+ - Comments should be in C++ style ("// ...", two slashes, per line). Don't
+   use C style comments ("/* ... */").
+ - The last line of a file should terminate with "\n".
+ - Returned arguments of methods and functions should not be wrapped with
+   parentheses. Use
+      return iter->second;
+   but do not use
+      return ( iter->second );
+                                                                                
+* Debugging and Verbose modes:
+   Never use std::cout. Instead use the bbtkMessage, bbtkDebugMessage, bbtkWarning or bbtkError macros and their variants. Example:
+      #include "bbtkMessageManager.h"
+      ...
+      {
+         bbtkDebugMessageInc("MyClass",9,"Local function name: entering.");
+         ...
+         bbtkDecTab("MyClass",9);
+      }
+    will send the message to std::cout when the Debug messages are compiled 
+    and the Message Level for the category of messages "MyClass" is greater than 9.
+                                                                                
+* Documentation:
+   The Doxygen open-source system is used to generate on-line documentation.
+   Doxygen requires the embedding of simple comments in the code which is in
+   turn extracted and formatted into documentation. See :
+      http://www.stack.nl/~dimitri/doxygen/
+   for more information about Doxygen.
+ - Documenting a class:
+   Classes should be documented using the class and brief doxygen commands,
+   followed by the detailed class description:
+      /**
+       * \class Header
+       * \brief Header acts as container of Dicom elements of an image.
+       *
+       * Detailed description of the class is provided here
+       * ...
+       */
+   The key here is that the comment starts with /**, each subsequent line has
+   an aligned *, and the comment block terminates with a */.
+ - Documenting class members and inline methods:
+   All the members and the inline methods should be documented within
+   the class declaration ( .h file) as shown in the following example:
+      class Header
+      {
+         /// True when parsing was successfull. False otherwise.
+         bool mReadable = false;
+                                                                                
+         /// \brief The number of lines of the image as interpreted from
+         ///        the various elements encountered at header parsing.
+         int mNumberOfLines = -1;
+                                                                                
+         /// Predicate implemented as accessor around \ref mReadable.
+         bool IsReadable() { return mReadable; }
+      };
+ - Documenting a Method:
+   Methods should be documented using the following comment block style
+   as shown in the following example:
+                                                                                
+      /**
+       * \brief  Within the Dicom Elements (parsed with the public and private
+       *         dictionaries), look for the element value representation of
+       *         a given tag.
+       * @param  group  Group number of the searched tag.
+       * @param  elem Element number of the searched tag.
+       * @return Corresponding element value representation when it exists,
+       *         and the string "bbtk::Unfound" otherwise.
+       */
+      std::string Document::GetEntryByNumber(guint16 group, guint16 elem)
+      {
+         ...
+      }
+                                                                                
+* External includes and C style:
+ - Only the C++ standard library and the STL includes should be used.
+   When including don't use the .h extension (use #include 
+   instead of #include ).
+   Note: include the stl header AFTER the bbtk ones (otherwise pragma
+         warnings won't work).
+ - Don't use the C standard library. Don't include stdio.h, ctype.h...
+   Don't use printf(), sprinf(), FILE*...
+ - Don't use the NULL notation (neither as macro, nor as const int NULL=0).
+   A pointer that doesn't refer to an object should simply be defined as
+      DataPointer *myDataPointer = 0;
+                                                                                
+* Basic types:
+ - Assume T is a given type. When declaring or defining with the
+   "pointer to T" notation, the * character must be adjacent to
+   the variable and not the type. That is use
+      T *foo = 0;
+   and not
+      T* foo = 0;
+   nor
+      T * foo = 0;
+ - Assume T is a given type. When declaring or defining with the
+   "reference to T" notation, the & character must be adjacent to
+   the variable and not the type. That is use :
+      T &foo = 0;
+   and not
+      T& foo = 0;
+
+   (Doxygen will not have any longer to correct)
+
+ - Always define a typedef for a new type and be consistent in usage.
+   Use :
+      typedef Header *HeaderPointer;
+      HeaderPointer myHeaderPointer;
+      
+ - One notorious counter example for non using C style inclusion concerns
+   exact-width integers (since there seem to be no equivalent for C++).
+   When using exact-width integers use the typedef names defined by
+   the Basic ISO C99: 7.18 Integer types i.e.
+      int8_t     int16_t     int32_t     int64_t (signed integers)
+   and
+      uint8_t    uint16_t    uint32_t    uint64_t (unsigned integers).
+   Conversion table is then:
+    unsigned char       -> uint8_t;
+    unsigned short      -> uint16_t;
+    unsigned int        -> uint32_t;
+    unsigned long       -> uint32_t;
+    unsigned long long  -> uint64_t;
+    (signed) char       -> int8_t;
+    short               -> int16_t;
+    int                 -> int32_t;
+    long                -> int32_t;
+    long long           -> int64_t;
+   Hence do not use declarations like "unsigned int".
+   With g++, accessing those typedef is achieved by the following
+      #include < stdint.h >
+
+ + + +
+ + diff --git a/doc/UserDoxygen/DoxyMainPage.txt.in b/doc/UserDoxygen/DoxyMainPage.txt.in new file mode 100644 index 0000000..94c4c71 --- /dev/null +++ b/doc/UserDoxygen/DoxyMainPage.txt.in @@ -0,0 +1,19 @@ +/** + * \mainpage bbtk documentation + +\htmlonly + +"A black box is any system in which only the input and output characteristics are of interest - without regard to its internal mechanism or structure" (from wikipedia ) + +
  • + Coding Style +
  • + +\endhtmlonly + + + + + + + */ diff --git a/doc/UserDoxygen/Doxyfile.txt.in b/doc/UserDoxygen/Doxyfile.txt.in new file mode 100644 index 0000000..44afa2a --- /dev/null +++ b/doc/UserDoxygen/Doxyfile.txt.in @@ -0,0 +1,1358 @@ +# Doxyfile 1.5.5 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = @DOXYGEN_PROJECT_NAME@ + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = @PROJECT_VERSION@ + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT@ + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek, +# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish, +# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish, +# and Ukrainian. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = YES + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the DETAILS_AT_TOP tag is set to YES then Doxygen +# will output the detailed description near the top, like JavaDoc. +# If set to NO, the detailed description appears after the member +# documentation. + +DETAILS_AT_TOP = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = YES + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = @DOXYGEN_LOGFILE@ + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = @DOXYGEN_INPUT@ + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.h \ + *.cxx \ + *.txx + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = @DOXYGEN_EXCLUDE@ + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = *.cxx + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = YES + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES (the default) +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES (the default) +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. Otherwise they will link to the documentstion. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 3 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = @DOXYGEN_HTML_OUTPUT@ + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be +# generated containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, +# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are +# probably better off using the HTML help feature. + +GENERATE_TREEVIEW = YES + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. This is useful +# if you want to understand what is going on. On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = @DOXYGEN_DOC_PREDEFINED@ + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = @DOXYGEN_HAVE_DOT@ + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = YES + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = YES + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = "@DOXYGEN_DOT_PATH@" + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MAX_DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is enabled by default, which results in a transparent +# background. Warning: Depending on the platform used, enabling this option +# may lead to badly anti-aliased labels on the edges of a graph (i.e. they +# become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. + +SEARCHENGINE = NO diff --git a/doc/config.tex b/doc/config.tex new file mode 100644 index 0000000..6bbd5bf --- /dev/null +++ b/doc/config.tex @@ -0,0 +1,224 @@ +% ========================================== +\newif\ifpdf +\ifx\pdfoutput\undefined \pdffalse % we are not running PDFLaTeX +\else +\pdfoutput=1 \pdftrue % we are running PDFLaTeX +\fi +% ========================================== +\usepackage[a4paper,textwidth=14cm]{geometry} +\usepackage[latin1]{inputenc} +\usepackage{varioref} +\usepackage{url} +\usepackage{multicol} +\usepackage{colortbl} +%\usepackage[active]{srcltx} +\usepackage{color} +\usepackage[english]{babel} +%\usepackage{picins} +%\usepackage{fancyhdr} +%\usepackage{picins} +\usepackage{xspace} +% ========================================== +%%% Math +\usepackage{amsmath,amsfonts,amssymb} +\usepackage{bm} +\usepackage{theorem} +\usepackage{stmaryrd} + +% ========================================== +%%% Graphics +\usepackage{graphics} +\ifpdf +\usepackage[pdftex]{graphicx} +\else +\usepackage[ps2pdf]{graphicx} +\fi +\graphicspath{{figs/}} + +% ========================================== +% bib +\usepackage{natbib} +%\bibliographystyle{abbrvnat} +\bibliographystyle{plainnat} + +%\bibliographystyle{plain} + +% http://merkel.zoneo.net/Latex/natbib.php?lang=fr + +% ========================================== +%% PDF configuration +% http://www.p-joeckel.de/pdflatex/) +% http://ringlord.com/publications/latex-pdf-howto/ + +%%%% Options of pdflatex +\ifpdf +\DeclareGraphicsExtensions{.pdf,.jpg,.mps,.png,.eps} +\usepackage[pdftex, % + bookmarks = true,% % Signets + bookmarksnumbered = true,% % Signets numérotés + pdfpagemode = None,% % Signets/vignettes fermé à l'ouverture + pdfstartview = FitH,% % La page prend toute la largeur + pdfpagelayout = SinglePage,% Vue par page + colorlinks = true,% % Liens en couleur + urlcolor = magenta,% % Couleur des liens externes + pdfborder = {0 0 0}% % Style de bordure : ici, pas de bordure + ]{hyperref}% % Utilisation de HyperTeX +%\usepackage[pdftex,bookmarks,pagebackref]{hyperref} +\pdfadjustspacing=1 + +%%%% Options for latex + dvips -Ppdf + ps2pdf +\else +\DeclareGraphicsExtensions{.eps,.ps} +\usepackage[ps2pdf,bookmarks,pagebackref]{hyperref} +\fi + +%%%% Commun options +\hypersetup{ + linktocpage,% + %%------------- Color Links ------------------------------ + colorlinks=true,% + linkcolor=myred,% + citecolor=mydarkblue,% + urlcolor=myblue,% + menucolor=red,% + %%------------- Doc Info --------------------------------- + pdftitle={The Black Box Toolkit},% + pdfauthor={},% + %%------------ Doc View ----------------------------------} + pdfhighlight=/P,% + bookmarksopen=false,% + plainpages=false, + pdfpagemode=None} + +\hyperbaseurl{http://www.creatis.insa-lyon.fr/creatools/bbtk} + +\definecolor{myblue}{rgb}{0,0,0.7} +\definecolor{myred}{rgb}{0.7,0,0} +\definecolor{mygreen}{rgb}{0,0.7,0} +\definecolor{mydarkblue}{rgb}{0,0,0.5} + +% ========================================== +\def\bbtkVersion{@BBTK_VERSION@} +\def\bbtkVersionDate{@BBTK_VERSION_DATE@} +\def\todo{\scriptsize\fbox{\bf TODO !!}\normalsize} +\def\x{\bm{x}} +\def\BBTK{{\xspace}The {\bf Black Box Toolkit} } +\def\bbtk{{\xspace}$\texttt{bbtk}$ } +\def\bbi{{\xspace}$\texttt{bbi}$ } +\def\bbStudio{{\xspace}$\texttt{bbStudio}$ } +\def\bbfy{{\xspace}$\texttt{bbfy}$ } +\def\bbdoc{{\xspace}$\texttt{bbdoc}$ } +\def\bbCreatePackage{{\xspace}$\texttt{bbCreatePackage}$ } +\def\bbPackageBrowser{{\xspace}$\texttt{bbPackageBrowser}$ } +\def\bbCreateBlackBox{{\xspace}$\texttt{bbCreateBlackBox}$ } +\def\bbs{{\xspace}$\texttt{bbs}$ } +\def\bbc{{\xspace}$\texttt{bbc}$ } +\def\bbRegeneratePackageDoc{{\xspace}$\texttt{bbRegeneratePackageDoc}$ } +\def\bbRegenerateBoxesLists{{\xspace}$\texttt{bbRegenerateBoxesLists}$ } +\def\bbPlugPackage{{\xspace}$\texttt{bbPlugPackage}$ } + +\def\bb{{\xspace}$\texttt{bb}$ } +%\def\bbp{{\xspace}$\texttt{bbp}$\xspace} + +\def\cmake{{\xspace}$\texttt{cmake}$ } + +\def\C{{\xspace}$\texttt{C}$ } +\def\CPP{{\xspace}$\texttt{C++}$ } + +\def\xml{{\xspace}$\texttt{xml}$ } + +\def\itk{{\xspace}$\texttt{itk}$ } +\def\vtk{{\xspace}$\texttt{vtk}$ } +\def\gdcm{{\xspace}$\texttt{gdcm}$ } +\def\gsmis{{\xspace}$\texttt{gsmis}$ } +\def\wx{{\xspace}$\texttt{wxWidgets}$ } + +\def\lin{{\xspace}\textit{Linux} } +\def\win{{\xspace}\textit{Windows} } + +% the same macros with no space at the end + +\def\BBTKns{{\xspace}The {\bf Black Box Toolkit}} +\def\bbtkns{{\xspace}$\texttt{bbtk}$} +\def\bbins{{\xspace}$\texttt{bbi}$} +\def\bbfyns{{\xspace}$\texttt{bbfy}$} +\def\bbdocns{{\xspace}$\texttt{bbdoc}$} +\def\bbStudions{{\xspace}$\texttt{bbStudio}$} +\def\bbCreatePackagens{{\xspace}$\texttt{bbCreatePackage}$} +\def\bbPackageBrowserns{{\xspace}$\texttt{bbPackageBrowser}$} +\def\bbCreateBlackBoxns{{\xspace}$\texttt{bbCreateBlackBox}$} +\def\bbsns{{\xspace}$\texttt{bbs}$} +\def\bbns{{\xspace}$\texttt{bb}$} +\def\bbcns{{\xspace}$\texttt{bbc}$} +%\def\bbp{{\xspace}$\texttt{bbp}$\xspace} +\def\bbRegeneratePackageDocns{{\xspace}$\texttt{bbRegeneratePackageDoc}$} +\def\bbRegenerateBoxesListsns{{\xspace}$\texttt{bbRegenerateBoxesLists}$} +\def\bbPlugPackagens{{\xspace}$\texttt{bbPlugPackage}$} + + +\def\cmakens{{\xspace}$\texttt{cmake}$} + +\def\Cns{{\xspace}$\texttt{C}$} +\def\CPPns{{\xspace}$\texttt{C++}$} + +\def\xmlns{{\xspace}$\texttt{xml}$} + +\def\itkns{{\xspace}$\texttt{itk}$} +\def\vtkns{{\xspace}$\texttt{vtk}$} +\def\gdcmns{{\xspace}$\texttt{gdcm}$} +\def\gsmisns{{\xspace}$\texttt{gsmis}$} +\def\wxns{{\xspace}$\texttt{wxWidgets}$} + +\def\linns{{\xspace}\textit{Linux}} +\def\winns{{\xspace}\textit{Windows}} + + +\def\bbtkGuide [#1]{ +\begin{center} +{\Large \BBTK} +\vspace{1cm} + +{\Huge #1} +\vspace{1cm} + +\bbtk version \bbtkVersion \hspace{2mm}(\bbtkVersionDate) +\vspace{0.5cm} + +Generated on : \today +\vspace{0.5cm} + +Eduardo D\'avila, Laurent Guigues, Jean-Pierre Roux +\vspace{0.3cm} + +CREATIS-LRMN, Centre de Recherche en Imagerie M\'edicale \\ +CNRS UMR 5220, INSERM U620, INSA Lyon, Universit\'e Claude-Bernard Lyon 1 + +http://www.creatis.insa-lyon.fr/creatools/bbtk +\end{center} +\tableofcontents +\listoftables +\listoffigures +} + +% ========================================== +%%% mode: latex +%%% TeX-master: "bbtkUsersGuide" +%%% End: + +\newcounter{Ctrfile} +%% env +\newenvironment{file}[1] +{ +\bigskip\hrule\smallskip +\stepcounter{Ctrfile} +\textbf{File #1} +%\hspace{0.2cm}\arabic{Ctrfile}\hfill \textbf{#1} +\smallskip\hrule\medskip +%\algocaption{#1} +} +{ +\hrule\smallskip +\hfill\textbf{End of file} +\smallskip\hrule +\bigskip +} diff --git a/doc/help_contents.html.in b/doc/help_contents.html.in new file mode 100644 index 0000000..0fe9af0 --- /dev/null +++ b/doc/help_contents.html.in @@ -0,0 +1,28 @@ + + + + Help Contents - bbtk @BBTK_VERSION@ + + + +

    Help Contents

    + +Demos
    +Examples + +

    Guides

    + +User's Guide
    +Package Developer's Guide
    +bbtk library doxygen doc
    + +

    Boxes

    + +Alphabetical list
    +List by package
    +List by category
    +List of adaptors
    + + + + diff --git a/doc/index-no-frame.html.in b/doc/index-no-frame.html.in new file mode 100644 index 0000000..f8b5a7d --- /dev/null +++ b/doc/index-no-frame.html.in @@ -0,0 +1,14 @@ + + + + + + +Redirection + + + + +

    Redirection

    + + diff --git a/doc/index.html.in b/doc/index.html.in new file mode 100644 index 0000000..f6341df --- /dev/null +++ b/doc/index.html.in @@ -0,0 +1,15 @@ + + + +User Project + + + + + + + +<body bgcolor="#FFFFFF" text="#000000"> +</body> + + diff --git a/doc/template_WebSite/CMakeLists.txt b/doc/template_WebSite/CMakeLists.txt new file mode 100644 index 0000000..942d018 --- /dev/null +++ b/doc/template_WebSite/CMakeLists.txt @@ -0,0 +1,72 @@ +MESSAGE(STATUS "") +MESSAGE(STATUS "=======================================") +MESSAGE(STATUS "Configuring User html doc") + +# Configure & install images +USER_DOC_INSTALL_IMAGES(template_WebSite) + +# Configure html pages for build tree and install +FILE(GLOB HTML_PAGES "." "*.html") +FOREACH(page ${HTML_PAGES}) + GET_FILENAME_COMPONENT(filename "${page}" NAME) + CONFIGURE_FILE( + ${page} + ${BBTK_DOC_BUILD_PATH}/template_WebSite/${filename} + @ONLY + ) + # Install + INSTALL( + FILES ${BBTK_DOC_BUILD_PATH}/template_WebSite/${filename} + DESTINATION ${BBTK_DOC_INSTALL_PATH}/template_WebSite + ) +ENDFOREACH(page) + + +#=================================================================== +# Regenerate package doc / boxes lists +# Must be made manually as: +# 1) Is useless for installers (it is to be run after install) +# 2) Can be done manually for a build tree (e.g. in bbStudio) +IF(FALSE) + +SET(INDEX_OUTPUT index-alpha.html) + +IF (WIN32) + + SET(USE_DOT TRUE) + MAKE_DLL_PATH() + + ADD_CUSTOM_COMMAND( + OUTPUT ${INDEX_OUTPUT} + COMMAND + set Path=${DLL_PATH} && cd ${BBTK_BIN_PATH} && bbRegeneratePackageDoc -a -q && bbRegenerateBoxesLists -q + + DEPENDS ${BBTK_PACKAGES_DEPS} + ) + +ELSE (WIN32) + + # MESSAGE(STATUS "PACKAGE_DEPS=${BBTK_PACKAGES_DEPS}") + + SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}") + # MESSAGE(LD_LIBRARY_PATH=${LD_LIBRARY_PATH}) + + ADD_CUSTOM_COMMAND( + OUTPUT ${INDEX_OUTPUT} + COMMAND + + cd ${BBTK_BIN_PATH} && export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} && ./bbRegeneratePackageDoc -a -q && ./bbRegenerateBoxesLists -q + + DEPENDS ${BBTK_PACKAGES_DEPS} bbRegeneratePackageDoc bbRegenerateBoxesLists + ) + +ENDIF (WIN32) + +ADD_CUSTOM_TARGET( + bbdoc ALL + DEPENDS ${INDEX_OUTPUT} + ) + +ENDIF(FALSE) + +MESSAGE(STATUS "=======================================") diff --git a/doc/template_WebSite/README.txt b/doc/template_WebSite/README.txt new file mode 100644 index 0000000..a947fbe --- /dev/null +++ b/doc/template_WebSite/README.txt @@ -0,0 +1,4 @@ +* menu.html : the menu used by ../index.html.in and ../index-no-frame +* home.html : the home page used by ../index.html.in and ../index-no-frame +* install.html : install instructions +* download.html : download instructions (obsolete) diff --git a/doc/template_WebSite/home.html b/doc/template_WebSite/home.html new file mode 100644 index 0000000..ba190b9 --- /dev/null +++ b/doc/template_WebSite/home.html @@ -0,0 +1,39 @@ + + + + + Home + + +
    + +User Project documentation
    +

    + +
    Follow this link User Install Instructions
    +
    +Read the users' guide if you +want to learn how to use bbtk development environnement (bbStudio) and +how to write black box scripts.
    +
    +Read the package +developers' guide to learn how to create your own black boxes and +packages.
    +
    +Developers might also be interested in doxygen documentation of the +source code of bbtk library.
    +
    +The boxes lists contain the boxes of bbtk core packages (std,wx,vtk...) +for current version.
    +
    +All this documentation is also available from bbStudio.
    +
    +
    +
    + + diff --git a/doc/template_WebSite/install.html b/doc/template_WebSite/install.html new file mode 100644 index 0000000..9b5f41b --- /dev/null +++ b/doc/template_WebSite/install.html @@ -0,0 +1,870 @@ + + + + + BBTK @BBTK_VERSION@ Install + + +
    BBTK @BBTK_VERSION@ +(@BBTK_VERSION_DATE@) build instructions
    + +
    +

    Linux

    +

    Requirements

    +
      +
    • cmake >= 2.4.6
    • +
    • crea >= 0.2.0
      +
    • +
    • wxWidgets  >=   +2.6.3 
    • +
    • optional :
      +
    • +
        +
      • LaTeX +to generate the pdf guides
        +
      • +
      • tth to generate the html +guides
        +
      • +
      • itk to compile packages itk, +itkvtk
      • +
      • vtk to compile package vtk, +wxvtk
      • +
      • doxygen to build the sources +documentation
      • +
      • graphviz/dot to generate the +packages doc with pipeline graphs
        +
      • +
          +
        +
      +
    + +

    Known working configurations

    +  +- gcc:
    +        4.3.0 (Fedora Core 9)
    +
            +4.2.0 (OpenSuse 10.3)
    +
            +4.1.2 20070925 (Red Hat 4.1.2-33)
    +
            4.1.2 +20070626 (Red Hat 4.1.2-13)
    +
      +      4.1.1 20070105 (Red Hat 4.1.1-51)
    +
        +    4.0.2 20051125 (Red Hat 4.0.2-8)
    +
        +- cmake:
    +
        +    2.4-patch 6
    +
       +- wxGTK-devel:
    +
            +2.8.6
    +
            +2.6.3
    +
       +- InsightToolkit:
    +
        +    3.4
    +
        +    3.2
    +
        +    2.8.1-5
    +
       +- vtk:
    +
        +    5.0.3-1
    +

    Install from sources

    +    Uncompress the +archive or checkout the source from the cvs repository
    +    In the parent folder of the bbtk sources type :
    +    > mkdir bbtkbin; cd bbtkbin
    +    > ccmake ../bbtk
    +    Check the desired +options. See CMake build options for a description.
    +
    +
    ==> +IMPORTANT NOTE :
    +
    +
        +Type 'c' many +times until no area is flagged with a '*' and three times more +then type 'g', to generate.
    +    > make
    +    > sudo make install
    +   Enjoy !
    +
    +
    +

    Uninstall
    +

    +    You can run bbtk-uninstall.sh +as root.
    +    WARNING :
    +       This is a brute force **UNSAFE** +uninstaller which removes all files and folders starting with 'bb' in :
    +        INSTALL-PREFIX/bin
    +        INSTALL-PREFIX/lib
    +        INSTALL-PREFIX/include
    +        INSTALL-PREFIX/share/bbtk
    +    However it lists the files found and prompts you +before proceeding...
    +
    +
    +
    +

    Windows

    + +

    Requirements

    +

    Mandatory

    +
      +
    • .net V7 to +compile the kernel and the packages
      +
    • +
    • CMake +2.4 patch 6 to +generate the project file for .net
    • +
    • wxWidgets-2.8.5  +to +build graphical interface boxes
    • +
    +

    Optional

    +
      +
    • VTK +5.0.3 source  to build vtk boxes 
    • +
    • InsightToolkit-3.4.0 +to build itk boxes
    • +
    • Miktex +(TeX compiler +and TeX-Pdf +translation tool) to build documentations
    • +
    • TTH (TeX +to HTML translation +tool) to build html documentations
    • +
    • Doxygen +to build the +code documentations
    • +
    • Graphviz +to generate the +graphs in doxygen doc and black box pipelines graphs  +
      +
    • +
    + +

    Known working configurations

    +
      +
    • .net V7
      +
    • +
    • cmake
    • +
        +
      • 2.4 +patch 6
      • +
      +
    • wxWidgets
    • +
        +
      • 2.8.5
      • +
      +
    • InsightToolkit
    • +
        +
      • 3.4.0
      • +
      +
    • vtk
    • +
        +
      • 5.0.3          +
        +
      • +
      +
    + +

    Steps
    +

    + + +
      +
        +
      • Uncompress +the sources in yourSourceDirectory +or checkout the source from the cvs 
      • +
      • Create +the build folder yourSourceDirectory\bin
      • +
      • Drag and drop the file yourSourceDirectory\CMakeLists.txt on the CMakeSetup icon
      • + +
      • To build with WxWidgets : the .ddl +must be accessible; either their names are in system PATH variable, +either copy +them in the current bin directory (bin/Debug or bin/Release, depending +whether you compiled in Debug or Release mode)
      • +
      • To build with VTK : the .ddl must be accessible; either their +names are in system PATH variable, either copy +them in the current bin directory (bin/Debug or bin/Release, depending +whether you compiled in Debug or Release mode)
      • +
      • To +build with ITKthe .ddl must be accessible; either their +names are in system PATH variable, either copy +them in the current bin directory (bin/Debug or bin/Release, depending +whether you compiled in Debug or Release mode)
      • +
      • Open +the solution created by cmake : ourSourceDirectory\bin\BBTK.sln and build +the entire solution.
      • +
          +
        • If +you get dll error messages close the message(s) and after it's +done, rebuild the complete solution.
        • +
        • If +you get package intallation messages for missing and required +files like fileName.sty, +install them all.
        • +
        • The packages correspond to +on-line complements that the MikTex program +needs to build the BBTK documentation.
        • +
        +
      +
    +Enjoy !
    +
    +
    +
    +

    CMake build options

    +The options in grey only appear if +the last non grey option is set to +ON (e.g. itk_IMAGE_DIM_2 and the following ones in grey only appear if +BUILD_BBTK_PACKAGE_itk is ON).
    +The variables in dark grey and italics are NOT options but are +automatically set by cmake according to the options selected. In +particular the variables 'USE_something' +indicate the dependencies on external libraries or utilities.
    +
    Advanced options are not +shown +here...
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Option
    +
    Explaination
    +
    Default
    --BUILD_ALL
    +
    Set to ON to build all the components of the toolkit
    +
    OFF
    +
    BBTK_COMPILE_DEBUG_MESSAGESCompile debug messages in bbtk ?
    +
    OFF
    +
    BBTK_COMPILE_ERROR_MESSAGESCompile error messages in bbtk ?
    +
    ON
    +
    BBTK_COMPILE_MESSAGESCompile normal messages in bbtk ?
    +
    ON
    +
    BBTK_COMPILE_WARNING_MESSAGESCompile warning messages in bbtk +?
    +
    ON
    +
    BBTK_USE_SHIPPED_BOOST
    +
    Use the boost C++ library +provided with bbtk ?
    +If not set you need to have boost installed
    +
    ON
    +
    BBTK_USE_WXWIDGETS
    +
    Build with the wxWidgets library +?
    +
    ON
    +
    BUILD_APPLICATIONS
    +
    Build bbtk applications : development studio (bbStudio), +interpreter +(bbi), xml to C++ code (bbfy), etc. ?
    +
    ON
    +
    BUILD_BBS_APPLI_BINARIES
    +
    Build executables for all bbs applications of all packages ?
    +If set will compile all bbs of folder appli of all packages, using bbc
    +
    OFF
    +
    BUILD_BBTK_DOC
    +
    Build bbtk documentations ?
    +
    OFF
    +
    BUILD_BBTK_DOC_DOXYGEN
    +
    Build +doxygen documentation for bbtk kernel?
    +Requires doxygen
    +
    ON
    +
    BUILD_BBTK_DOC_GUIDES_HTML
    +
    Build +html versions of the guides ?
    +Requires latex, pdftex, tth
    +
    ON
    +
    BUILD_BBTK_DOC_GUIDES_PDF
    +
    Build +pdf versions of the guides ?
    +Requires latex, pdftex
    +
    ON
    +
    BUILD_BBTK_DOC_PACKAGE
    +
    Build +packages html documentations ?
    +
    ON
    +
    BUILD_BBTK_PACKAGE_demo
    +
    Build the package 'demo' ?
    +Requires : itk, vtk
    +
    OFF
    +
    BUILD_BBTK_PACKAGE_itk
    +
    Build the package 'itk' ?
    +Requires : itk
    +
    OFF
    +
     BUILD_BBTK_PACKAGE_itkvtk
    +
    Build the package 'itkvtk ?
    +Requires : itk, vtk
    +
    OFF
    BUILD_BBTK_PACKAGE_std
    +
    Build the package 'std' ?ON
    BUILD_BBTK_PACKAGE_toolsbbtk
    +
    Build the package 'toolsbbtk' ?ON
    +
    BUILD_BBTK_PACKAGE_vtk
    +
    Build the package 'vtk' ?
    +Requires : vtk
    +
    ON
    +
    BUILD_BBTK_PACKAGE_wx
    +
    Build the package 'wx' ?
    +Requires : wxWidgets
    +
    ON
    +
    BUILD_BBTK_PACKAGE_wxvtk
    +
    Build the package 'wxvtk' ?
    +Requires : wxWidgets, vtk
    +
    ON
    +
       +itk_IMAGE_DIM_2
    +
    Compile +itk images of dimension 2 ?
    +
    ON
    +
       +itk_IMAGE_DIM_3Compile +itk images of dimension 3 ?
    +
    ON
    +
       +itk_IMAGE_DIM_4 Compile +itk images of dimension 4 ?
    +
    ON
    +
       +itk_IMAGE_TYPE_CHAR
    +
    Compile +itk images of type char ?
    +
    ON
    +
       +itk_IMAGE_TYPE_DOUBLECompile +itk images of type double ?
    +
    ON
    +
       +itk_IMAGE_TYPE_FLOAT
    +
    Compile +itk images of type float ?
    +
    ON
    +
       +itk_IMAGE_TYPE_INT
    +
    Compile +itk images of type int ?
    +
    ON
    +
       +itk_IMAGE_TYPE_SHORT
    +
    Compile +itk images of type short ?
    +
    ON
    +
       +itk_IMAGE_TYPE_UCHAR
    +
    Compile +itk images of type unsigned char ?
    +
    ON
    +
       +itk_IMAGE_TYPE_UINT
    +
    Compile +itk images of type unsigned int ?
    +
    ON
    +
       +itk_IMAGE_TYPE_USHORT
    +
    Compile +itk images of type unsigned  short ?
    +
    ON
    +
    BUILD_BBTK_PACKAGE_demoBuild the package 'demo' ?
    +Requires : ALL the other +packages
    +
    OFF
    +
    BUILD_BBTK_PACKAGE_itkvtk
    +
    Build the package 'itkvtk' ?
    +Requires : itk, vtk
    +
    OFF
    +
    BUILD_BBTK_PACKAGE_std
    +
    Build the package 'std ? OFF
    +
    BUILD_BBTK_PACKAGE_toolsbbtkBuild the package 'toolsbbtk' ?OFF
    +
    BUILD_BBTK_PACKAGE_vtk
    +
    Build the package 'vtk' ?
    +Requires : vtk
    +
    OFF
    +
    BUILD_BBTK_PACKAGE_wx
    +
    Build the package 'wx' ?
    +Requires : wxWidgets
    +
    OFF
    +
    BUILD_BBTK_PACKAGE_wxvtk
    +
    Build the package 'wxvtk' ?
    +Requires : wxWidgets, vtk
    +
    OFF
    +
    CMAKE_BUILD_TYPE
    +
    Set to "Debug" or "Release"
    +
    -
    +
    CMAKE_INSTALL_PREFIX
    +
    Set the install folder
    +
    /usr/local
    +
    EXECUTABLE_OUTPUT_PATH
    +
    Single output directory for +building all the executables
    +
    -
    +
    LIBRARY_OUTPUT_PATHSingle output directory for +building all the libraries-
    +
    USE_BOOST
    +
    Automatically +set to ON when boost C++ library is needed with the choices made
    +
    -
    +
    USE_DOXYGEN
    +
    Automatically +set to ON when doxygen is needed with the choices made-
    +
    USE_ITK
    +
    Automatically +set to ON when ITK library is needed with the choices made-
    +
    USE_LATEX
    +
    Automatically +set to ON when LaTeX is needed with the choices made-
    +
    USE_TTH
    +
    Automatically +set to ON when tth is needed with the choices made-
    +
    USE_VTK
    +
    Automatically +set to ON when VTK library is needed with the choices made-
    +
    USE_WXWIDGETS
    +
    Automatically +set to ON when wxWidgets library is needed with the choices made-
    +
    +
    + + diff --git a/doc/template_WebSite/menu.html b/doc/template_WebSite/menu.html new file mode 100644 index 0000000..cc2028e --- /dev/null +++ b/doc/template_WebSite/menu.html @@ -0,0 +1,42 @@ + + + + USER DOCUMENTATION + + + + +Home
    +Build instructions

    +
    Guides and documentation +
    + User's +Guide (pdf) +
    + Package Developer's Guide +
    + +
      +
    +
    Boxes
    +
    +Alphabetical +list
    +List by +package
    +List by +category
    +List of +adaptors
    +
    +
    +
    +
    +  + + diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 0000000..03bc324 --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,86 @@ +#---------------------------------------------------------------------------- +# SET THE NAME OF YOUR LIBRARY +# (Replace 'MyLib' by your own library name) + +############################# +SET ( LIBRARY_NAME TransformLib ) +############################# + +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# CREATES A USER OPTION IN CMAKE +OPTION ( BUILD_${LIBRARY_NAME} "Build ${LIBRARY_NAME} library ?" ON) +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +IF ( BUILD_${LIBRARY_NAME} ) +#---------------------------------------------------------------------------- + + #---------------------------------------------------------------------------- + # BUILD LIBRARY + #---------------------------------------------------------------------------- + + #---------------------------------------------------------------------------- + # LIBRARY HEADERS (TO BE INSTALLED) + # EITHER LIST ALL .h, *.txx IN CURRENT DIR USING NEXT LINE: + + FILE(GLOB ${LIBRARY_NAME}_HEADERS "*.h" "*.txx") + + # OR MANUALLY LIST YOUR HEADERS WITH NEXT COMMAND + # SET ( ${LIBRARY_NAME}_HEADERS + # + # ) + #---------------------------------------------------------------------------- + + #---------------------------------------------------------------------------- + # LIBRARY SOURCES (TO BE COMPILED) + # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE: + + FILE(GLOB ${LIBRARY_NAME}_SOURCES *.cxx *.cpp *.cc) + + # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION) + # SET ( ${LIBRARY_NAME}_SOURCES + # + # ) + #---------------------------------------------------------------------------- + + #---------------------------------------------------------------------------- + # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH) + # + # Uncomment the Libraries you need + # + SET ( ${LIBRARY_NAME}_LINK_LIBRARIES + # ${crea_LIBRARIES} + # ${WXWIDGETS_LIBRARIES} + # ${KWWidgets_LIBRARIES} + ${VTK_LIBRARIES} + # ${ITK_LIBRARIES} + # ${GDCM_LIBRARIES} + # ${BOOST_LIBRARIES} + + # If this library must link against other libraries + # Add here any extra Library you need + + ) + #---------------------------------------------------------------------------- + + #---------------------------------------------------------------------------- + # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL + + # The default is to create a Dynamic Library. + # if you need to create a static library + # comment out the following line : + + CREA_ADD_LIBRARY( ${LIBRARY_NAME} ) + + # and uncomment the 2 lines hereafter: + + # ADD_LIBRARY(${LIBRARY_NAME} STATIC ${${LIBRARY_NAME}_SOURCES}) + # TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} ) + + # + #---------------------------------------------------------------------------- + + #--------------------------------------------------------------------------- +ENDIF ( BUILD_${LIBRARY_NAME} ) diff --git a/lib/creaSystem.h b/lib/creaSystem.h new file mode 100644 index 0000000..d91ccee --- /dev/null +++ b/lib/creaSystem.h @@ -0,0 +1,26 @@ + +#ifndef _$PROJECT_NAME$SYSTEM_H_ +#define _$PROJECT_NAME$SYSTEM_H_ + + +// Windoze related troubles (as usual) + +//----------------------------------------------------------------------------- + +#if defined(_WIN32) + #ifdef $PROJECT_NAME$_EXPORT_SYMBOLS + #define $PROJECT_NAME$_EXPORT __declspec( dllexport ) +#else + #define $PROJECT_NAME$_EXPORT __declspec( dllimport ) + #endif + #define $PROJECT_NAME$_CDECL __cdecl +#else + #define $PROJECT_NAME$_EXPORT + #define $PROJECT_NAME$_CDECL +#endif // defined(_WIN32) + +#ifdef __BORLANDC__ + #include +#endif + +#endif diff --git a/lib/creaSystem.h.in b/lib/creaSystem.h.in new file mode 100644 index 0000000..d91ccee --- /dev/null +++ b/lib/creaSystem.h.in @@ -0,0 +1,26 @@ + +#ifndef _$PROJECT_NAME$SYSTEM_H_ +#define _$PROJECT_NAME$SYSTEM_H_ + + +// Windoze related troubles (as usual) + +//----------------------------------------------------------------------------- + +#if defined(_WIN32) + #ifdef $PROJECT_NAME$_EXPORT_SYMBOLS + #define $PROJECT_NAME$_EXPORT __declspec( dllexport ) +#else + #define $PROJECT_NAME$_EXPORT __declspec( dllimport ) + #endif + #define $PROJECT_NAME$_CDECL __cdecl +#else + #define $PROJECT_NAME$_EXPORT + #define $PROJECT_NAME$_CDECL +#endif // defined(_WIN32) + +#ifdef __BORLANDC__ + #include +#endif + +#endif diff --git a/lib/sourceTransformer.cxx b/lib/sourceTransformer.cxx new file mode 100644 index 0000000..8bcdcd2 --- /dev/null +++ b/lib/sourceTransformer.cxx @@ -0,0 +1,100 @@ + +#include "sourceTransformer.h" +#include "vtkMatrix4x4.h" + +/* + CONSTRUCTOR: Initializes the two points with empty vectors, the angle in 0. +*/ +Transformer::Transformer() +{ + std::vector empty (3,0); + _angle= 0; + _centerPoint=empty; + _scaleX=1; + _scaleY=1; + //If the transform already exists, we delete it before we create a new transform + //and set the matrix with the identity matrix + _transform= vtkTransform::New(); + vtkMatrix4x4 *_matrix = vtkMatrix4x4::New(); + _matrix->Identity(); + _transform->SetMatrix(_matrix); + +} + +/* + DESTRUCTOR +*/ +Transformer::~Transformer() +{ + //We delete the existing transform + if (_transform != NULL ) { _transform->Delete(); } +} + +/* + SETS A NEW TRANSFORM +*/ +void Transformer::SetTransform(vtkTransform *transform) +{ + _transform=transform; +} + +/* + SETS CENTER POINT +*/ +void Transformer::SetCenterPoint(std::vector point) +{ + _centerPoint=point; +} + +/* + SETS THE ANGLE +*/ +void Transformer::SetAngle(double angle) +{ + _angle=angle; +} + +/* + SETS THE X SCALE +*/ +void Transformer::SetScaleX(double scaleX) +{ + _scaleX=scaleX/100.0; +} + +/* + SETS THE Y SCALE +*/ +void Transformer::SetScaleY(double scaleY) +{ + _scaleY=scaleY/100.0; +} + +/* + SETS THE Y SCALE + */ +void Transformer::SetScaleZ(double scaleZ) +{ + _scaleZ=scaleZ/100.0; +} + + + +/* + GETS THE RESULTANT TRANSFORM +*/ +vtkTransform *Transformer::GetResult() +{ + return _transform; +} + +/* + MAKES THE TRANSFORMATIONS +*/ +void Transformer::Run() +{ + _transform->Translate(_centerPoint[0], _centerPoint[1], _centerPoint[2]); + _transform->Scale(_scaleX, _scaleY,_scaleZ); + _transform->RotateWXYZ(_angle, 0, 0, 1); + _transform->Update(); +} diff --git a/lib/sourceTransformer.h b/lib/sourceTransformer.h new file mode 100644 index 0000000..7af6494 --- /dev/null +++ b/lib/sourceTransformer.h @@ -0,0 +1,30 @@ + +#ifndef _$PROJECT_NAME$SOURCE01_H_ +#define _$PROJECT_NAME$SOURCE01_H_ + +#include "vtkTransform.h" +#include + +class Transformer{ +public: + Transformer(); + ~Transformer(); + void SetTransform(vtkTransform *transform); + void SetCenterPoint(std::vector point); + void SetAngle(double angle); + void SetScaleX(double scaleX); + void SetScaleY(double scaleY); + void SetScaleZ(double scaleZ); + void Run(); + vtkTransform *GetResult(); +private: + std::vector _centerPoint; + double _angle; + double _scaleX; + double _scaleY; + double _scaleZ; + //vtkImageData *_image; + vtkTransform *_transform; +}; + +#endif diff --git a/lib/sourceVectorMath.cxx b/lib/sourceVectorMath.cxx new file mode 100644 index 0000000..37eb419 --- /dev/null +++ b/lib/sourceVectorMath.cxx @@ -0,0 +1,6 @@ +#include "sourceVectorMath.h" + +VectorMath::VectorMath() +{ + +} \ No newline at end of file diff --git a/lib/sourceVectorMath.h b/lib/sourceVectorMath.h new file mode 100644 index 0000000..96f8f06 --- /dev/null +++ b/lib/sourceVectorMath.h @@ -0,0 +1,29 @@ +#ifndef _$PROJECT_NAME$SOURCE01_H_ +#define _$PROJECT_NAME$SOURCE01_H_ + +#include "vtkMath.h" +#include + +class VectorMath{ +public: + VectorMath(); + ~VectorMath(); + /*void SetTransform(vtkTransform *transform); + void SetCenterPoint(std::vector point); + void SetAngle(double angle); + void SetScaleX(double scaleX); + void SetScaleY(double scaleY); + void SetScaleZ(double scaleZ); + void Run(); + vtkTransform *GetResult(); +private: + std::vector _centerPoint; + double _angle; + double _scaleX; + double _scaleY; + double _scaleZ; + //vtkImageData *_image; + vtkTransform *_transform;*/ +}; + +#endif \ No newline at end of file diff --git a/lib/template_lib/creaSystem.h b/lib/template_lib/creaSystem.h new file mode 100644 index 0000000..d91ccee --- /dev/null +++ b/lib/template_lib/creaSystem.h @@ -0,0 +1,26 @@ + +#ifndef _$PROJECT_NAME$SYSTEM_H_ +#define _$PROJECT_NAME$SYSTEM_H_ + + +// Windoze related troubles (as usual) + +//----------------------------------------------------------------------------- + +#if defined(_WIN32) + #ifdef $PROJECT_NAME$_EXPORT_SYMBOLS + #define $PROJECT_NAME$_EXPORT __declspec( dllexport ) +#else + #define $PROJECT_NAME$_EXPORT __declspec( dllimport ) + #endif + #define $PROJECT_NAME$_CDECL __cdecl +#else + #define $PROJECT_NAME$_EXPORT + #define $PROJECT_NAME$_CDECL +#endif // defined(_WIN32) + +#ifdef __BORLANDC__ + #include +#endif + +#endif diff --git a/lib/template_lib/creaSystem.h.in b/lib/template_lib/creaSystem.h.in new file mode 100644 index 0000000..d91ccee --- /dev/null +++ b/lib/template_lib/creaSystem.h.in @@ -0,0 +1,26 @@ + +#ifndef _$PROJECT_NAME$SYSTEM_H_ +#define _$PROJECT_NAME$SYSTEM_H_ + + +// Windoze related troubles (as usual) + +//----------------------------------------------------------------------------- + +#if defined(_WIN32) + #ifdef $PROJECT_NAME$_EXPORT_SYMBOLS + #define $PROJECT_NAME$_EXPORT __declspec( dllexport ) +#else + #define $PROJECT_NAME$_EXPORT __declspec( dllimport ) + #endif + #define $PROJECT_NAME$_CDECL __cdecl +#else + #define $PROJECT_NAME$_EXPORT + #define $PROJECT_NAME$_CDECL +#endif // defined(_WIN32) + +#ifdef __BORLANDC__ + #include +#endif + +#endif -- 2.47.1