From: Eduardo Davila Date: Mon, 4 Apr 2011 15:12:39 +0000 (+0000) Subject: no message X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6a1cb1e499e632bf795ce75a88dd0340f79a37bd;p=creaMiniTools.git no message --- 6a1cb1e499e632bf795ce75a88dd0340f79a37bd diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..ba06192 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,145 @@ +# --------------------------------- +# +# Unless you are an experimented cmake user, +# have a look at : +# http://www.creatis.insa-lyon.fr/site/fr/CreatoosGettingStarted-v2.0.X +# before starting. +# +# Generated with creaNewProject, version of : 18/03/2010 +# --------------------------------- + +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) + +#MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY ) + +# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003") +IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4) + CMAKE_POLICY(SET CMP0003 NEW) + CMAKE_POLICY(SET CMP0005 NEW) + CMAKE_POLICY(SET CMP0011 NEW) +ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4) + + +################################### +PROJECT( creaMiniTools ) +################################### + +#================================== +# The project version +SET(PROJECT_MAJOR_VERSION 1) +SET(PROJECT_MINOR_VERSION 0) +SET(PROJECT_BUILD_VERSION 0) + +SET(PROJECT_VERSION "${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_BUILD_VERSION}") +SET(PROJECT_VERSION_DATE "11/02/2010") +#ADD_DEFINITIONS( -DPROJECT_VERSION=${PROJECT_VERSION} ) +#ADD_DEFINITIONS( -DPROJECT_VERSION_DATE=${PROJECT_VERSION_DATE} ) + +#================================== +SET(CREA_VERBOSE_CMAKE TRUE) +#================================== +# Find crea (mandatory, to use macros) +FIND_PACKAGE(crea REQUIRED) +IF (crea_FOUND) + INCLUDE(${crea_USE_FILE}) +ENDIF(crea_FOUND) +#================================== + +# USER! : Add here as many 'FIND_PACKAGE' blocks as *your* aplication requires +#FIND_PACKAGE(xxx REQUIRED) +#IF (xxx_FOUND) +# INCLUDE(${xxx_USE_FILE}) +#ENDIF(xxx_FOUND) + +#================================== +# Do not allow to build inside the source tree +CREA_PREVENT_IN_SOURCE_BUILD() +#================================== + +#================================== +# Libraries/tools used + +# USER! : 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 OFF) +SET(USE_ITK OFF) +SET(USE_BOOST OFF) + +# USER! : Note : Set USE_DOXYGEN to ON +# if you think you will ask, some day, +# for Doxygen generation +#EED 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 +#EED SET(USE_LATEX OFF) +#EED 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 + ) +#================================== + +IF(WIN32) + INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32) + LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32) +ENDIF(WIN32) + +#================================== + +#================================== + + SET(LIBNAME $(creaMiniTools)) + + INCLUDE_DIRECTORIES( + ${PROJECT_BINARY_DIR} + ) + + # USER! : Add here the directories holding the .h you need + # INCLUDE_DIRECTORIES(appli/_YOUR_OWN_APPLI_SOURCE_DIRECTORY_) + # INCLUDE_DIRECTORIES(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 + ) +#================================== + # USER! : Hands off! +# ADD_SUBDIRECTORY +ADD_SUBDIRECTORY(lib) +ADD_SUBDIRECTORY(appli) +ADD_SUBDIRECTORY(doc) +ADD_SUBDIRECTORY(data) +ADD_SUBDIRECTORY(install) + +ADD_SUBDIRECTORY(bbtk_package_creaMiniTools) + + +#================================== diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..fe87c25 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,514 @@ +CeCILL-B FREE SOFTWARE LICENSE AGREEMENT + + + Notice + +This Agreement is a Free Software license agreement that is the result +of discussions between its authors in order to ensure compliance with +the two main principles guiding its drafting: + + * firstly, compliance with the principles governing the distribution + of Free Software: access to source code, broad rights granted to + users, + * secondly, the election of a governing law, French law, with which + it is conformant, both as regards the law of torts and + intellectual property law, and the protection that it offers to + both authors and holders of the economic rights over software. + +The authors of the CeCILL-B (for Ce[a] C[nrs] I[nria] L[ogiciel] L[ibre]) +license are: + +Commissariat à l'Energie Atomique - CEA, a public scientific, technical +and industrial research establishment, having its principal place of +business at 25 rue Leblanc, immeuble Le Ponant D, 75015 Paris, France. + +Centre National de la Recherche Scientifique - CNRS, a public scientific +and technological establishment, having its principal place of business +at 3 rue Michel-Ange, 75794 Paris cedex 16, France. + +Institut National de Recherche en Informatique et en Automatique - +INRIA, a public scientific and technological establishment, having its +principal place of business at Domaine de Voluceau, Rocquencourt, BP +105, 78153 Le Chesnay cedex, France. + + + Preamble + +This Agreement is an open source software license intended to give users +significant freedom to modify and redistribute the software licensed +hereunder. + +The exercising of this freedom is conditional upon a strong obligation +of giving credits for everybody that distributes a software +incorporating a software ruled by the current license so as all +contributions to be properly identified and acknowledged. + +In consideration of access to the source code and the rights to copy, +modify and redistribute granted by the license, users are provided only +with a limited warranty and the software's author, the holder of the +economic rights, and the successive licensors only have limited liability. + +In this respect, the risks associated with loading, using, modifying +and/or developing or reproducing the software by the user are brought to +the user's attention, given its Free Software status, which may make it +complicated to use, with the result that its use is reserved for +developers and experienced professionals having in-depth computer +knowledge. Users are therefore encouraged to load and test the +suitability of the software as regards their requirements in conditions +enabling the security of their systems and/or data to be ensured and, +more generally, to use and operate it in the same conditions of +security. This Agreement may be freely reproduced and published, +provided it is not altered, and that no provisions are either added or +removed herefrom. + +This Agreement may apply to any or all software for which the holder of +the economic rights decides to submit the use thereof to its provisions. + + + Article 1 - DEFINITIONS + +For the purpose of this Agreement, when the following expressions +commence with a capital letter, they shall have the following meaning: + +Agreement: means this license agreement, and its possible subsequent +versions and annexes. + +Software: means the software in its Object Code and/or Source Code form +and, where applicable, its documentation, "as is" when the Licensee +accepts the Agreement. + +Initial Software: means the Software in its Source Code and possibly its +Object Code form and, where applicable, its documentation, "as is" when +it is first distributed under the terms and conditions of the Agreement. + +Modified Software: means the Software modified by at least one +Contribution. + +Source Code: means all the Software's instructions and program lines to +which access is required so as to modify the Software. + +Object Code: means the binary files originating from the compilation of +the Source Code. + +Holder: means the holder(s) of the economic rights over the Initial +Software. + +Licensee: means the Software user(s) having accepted the Agreement. + +Contributor: means a Licensee having made at least one Contribution. + +Licensor: means the Holder, or any other individual or legal entity, who +distributes the Software under the Agreement. + +Contribution: means any or all modifications, corrections, translations, +adaptations and/or new functions integrated into the Software by any or +all Contributors, as well as any or all Internal Modules. + +Module: means a set of sources files including their documentation that +enables supplementary functions or services in addition to those offered +by the Software. + +External Module: means any or all Modules, not derived from the +Software, so that this Module and the Software run in separate address +spaces, with one calling the other when they are run. + +Internal Module: means any or all Module, connected to the Software so +that they both execute in the same address space. + +Parties: mean both the Licensee and the Licensor. + +These expressions may be used both in singular and plural form. + + + Article 2 - PURPOSE + +The purpose of the Agreement is the grant by the Licensor to the +Licensee of a non-exclusive, transferable and worldwide license for the +Software as set forth in Article 5 hereinafter for the whole term of the +protection granted by the rights over said Software. + + + Article 3 - ACCEPTANCE + +3.1 The Licensee shall be deemed as having accepted the terms and +conditions of this Agreement upon the occurrence of the first of the +following events: + + * (i) loading the Software by any or all means, notably, by + downloading from a remote server, or by loading from a physical + medium; + * (ii) the first time the Licensee exercises any of the rights + granted hereunder. + +3.2 One copy of the Agreement, containing a notice relating to the +characteristics of the Software, to the limited warranty, and to the +fact that its use is restricted to experienced users has been provided +to the Licensee prior to its acceptance as set forth in Article 3.1 +hereinabove, and the Licensee hereby acknowledges that it has read and +understood it. + + + Article 4 - EFFECTIVE DATE AND TERM + + + 4.1 EFFECTIVE DATE + +The Agreement shall become effective on the date when it is accepted by +the Licensee as set forth in Article 3.1. + + + 4.2 TERM + +The Agreement shall remain in force for the entire legal term of +protection of the economic rights over the Software. + + + Article 5 - SCOPE OF RIGHTS GRANTED + +The Licensor hereby grants to the Licensee, who accepts, the following +rights over the Software for any or all use, and for the term of the +Agreement, on the basis of the terms and conditions set forth hereinafter. + +Besides, if the Licensor owns or comes to own one or more patents +protecting all or part of the functions of the Software or of its +components, the Licensor undertakes not to enforce the rights granted by +these patents against successive Licensees using, exploiting or +modifying the Software. If these patents are transferred, the Licensor +undertakes to have the transferees subscribe to the obligations set +forth in this paragraph. + + + 5.1 RIGHT OF USE + +The Licensee is authorized to use the Software, without any limitation +as to its fields of application, with it being hereinafter specified +that this comprises: + + 1. permanent or temporary reproduction of all or part of the Software + by any or all means and in any or all form. + + 2. loading, displaying, running, or storing the Software on any or + all medium. + + 3. entitlement to observe, study or test its operation so as to + determine the ideas and principles behind any or all constituent + elements of said Software. This shall apply when the Licensee + carries out any or all loading, displaying, running, transmission + or storage operation as regards the Software, that it is entitled + to carry out hereunder. + + + 5.2 ENTITLEMENT TO MAKE CONTRIBUTIONS + +The right to make Contributions includes the right to translate, adapt, +arrange, or make any or all modifications to the Software, and the right +to reproduce the resulting software. + +The Licensee is authorized to make any or all Contributions to the +Software provided that it includes an explicit notice that it is the +author of said Contribution and indicates the date of the creation thereof. + + + 5.3 RIGHT OF DISTRIBUTION + +In particular, the right of distribution includes the right to publish, +transmit and communicate the Software to the general public on any or +all medium, and by any or all means, and the right to market, either in +consideration of a fee, or free of charge, one or more copies of the +Software by any means. + +The Licensee is further authorized to distribute copies of the modified +or unmodified Software to third parties according to the terms and +conditions set forth hereinafter. + + + 5.3.1 DISTRIBUTION OF SOFTWARE WITHOUT MODIFICATION + +The Licensee is authorized to distribute true copies of the Software in +Source Code or Object Code form, provided that said distribution +complies with all the provisions of the Agreement and is accompanied by: + + 1. a copy of the Agreement, + + 2. a notice relating to the limitation of both the Licensor's + warranty and liability as set forth in Articles 8 and 9, + +and that, in the event that only the Object Code of the Software is +redistributed, the Licensee allows effective access to the full Source +Code of the Software at a minimum during the entire period of its +distribution of the Software, it being understood that the additional +cost of acquiring the Source Code shall not exceed the cost of +transferring the data. + + + 5.3.2 DISTRIBUTION OF MODIFIED SOFTWARE + +If the Licensee makes any Contribution to the Software, the resulting +Modified Software may be distributed under a license agreement other +than this Agreement subject to compliance with the provisions of Article +5.3.4. + + + 5.3.3 DISTRIBUTION OF EXTERNAL MODULES + +When the Licensee has developed an External Module, the terms and +conditions of this Agreement do not apply to said External Module, that +may be distributed under a separate license agreement. + + + 5.3.4 CREDITS + +Any Licensee who may distribute a Modified Software hereby expressly +agrees to: + + 1. indicate in the related documentation that it is based on the + Software licensed hereunder, and reproduce the intellectual + property notice for the Software, + + 2. ensure that written indications of the Software intended use, + intellectual property notice and license hereunder are included in + easily accessible format from the Modified Software interface, + + 3. mention, on a freely accessible website describing the Modified + Software, at least throughout the distribution term thereof, that + it is based on the Software licensed hereunder, and reproduce the + Software intellectual property notice, + + 4. where it is distributed to a third party that may distribute a + Modified Software without having to make its source code + available, make its best efforts to ensure that said third party + agrees to comply with the obligations set forth in this Article . + +If the Software, whether or not modified, is distributed with an +External Module designed for use in connection with the Software, the +Licensee shall submit said External Module to the foregoing obligations. + + + 5.3.5 COMPATIBILITY WITH THE CeCILL AND CeCILL-C LICENSES + +Where a Modified Software contains a Contribution subject to the CeCILL +license, the provisions set forth in Article 5.3.4 shall be optional. + +A Modified Software may be distributed under the CeCILL-C license. In +such a case the provisions set forth in Article 5.3.4 shall be optional. + + + Article 6 - INTELLECTUAL PROPERTY + + + 6.1 OVER THE INITIAL SOFTWARE + +The Holder owns the economic rights over the Initial Software. Any or +all use of the Initial Software is subject to compliance with the terms +and conditions under which the Holder has elected to distribute its work +and no one shall be entitled to modify the terms and conditions for the +distribution of said Initial Software. + +The Holder undertakes that the Initial Software will remain ruled at +least by this Agreement, for the duration set forth in Article 4.2. + + + 6.2 OVER THE CONTRIBUTIONS + +The Licensee who develops a Contribution is the owner of the +intellectual property rights over this Contribution as defined by +applicable law. + + + 6.3 OVER THE EXTERNAL MODULES + +The Licensee who develops an External Module is the owner of the +intellectual property rights over this External Module as defined by +applicable law and is free to choose the type of agreement that shall +govern its distribution. + + + 6.4 JOINT PROVISIONS + +The Licensee expressly undertakes: + + 1. not to remove, or modify, in any manner, the intellectual property + notices attached to the Software; + + 2. to reproduce said notices, in an identical manner, in the copies + of the Software modified or not. + +The Licensee undertakes not to directly or indirectly infringe the +intellectual property rights of the Holder and/or Contributors on the +Software and to take, where applicable, vis-à-vis its staff, any and all +measures required to ensure respect of said intellectual property rights +of the Holder and/or Contributors. + + + Article 7 - RELATED SERVICES + +7.1 Under no circumstances shall the Agreement oblige the Licensor to +provide technical assistance or maintenance services for the Software. + +However, the Licensor is entitled to offer this type of services. The +terms and conditions of such technical assistance, and/or such +maintenance, shall be set forth in a separate instrument. Only the +Licensor offering said maintenance and/or technical assistance services +shall incur liability therefor. + +7.2 Similarly, any Licensor is entitled to offer to its licensees, under +its sole responsibility, a warranty, that shall only be binding upon +itself, for the redistribution of the Software and/or the Modified +Software, under terms and conditions that it is free to decide. Said +warranty, and the financial terms and conditions of its application, +shall be subject of a separate instrument executed between the Licensor +and the Licensee. + + + Article 8 - LIABILITY + +8.1 Subject to the provisions of Article 8.2, the Licensee shall be +entitled to claim compensation for any direct loss it may have suffered +from the Software as a result of a fault on the part of the relevant +Licensor, subject to providing evidence thereof. + +8.2 The Licensor's liability is limited to the commitments made under +this Agreement and shall not be incurred as a result of in particular: +(i) loss due the Licensee's total or partial failure to fulfill its +obligations, (ii) direct or consequential loss that is suffered by the +Licensee due to the use or performance of the Software, and (iii) more +generally, any consequential loss. In particular the Parties expressly +agree that any or all pecuniary or business loss (i.e. loss of data, +loss of profits, operating loss, loss of customers or orders, +opportunity cost, any disturbance to business activities) or any or all +legal proceedings instituted against the Licensee by a third party, +shall constitute consequential loss and shall not provide entitlement to +any or all compensation from the Licensor. + + + Article 9 - WARRANTY + +9.1 The Licensee acknowledges that the scientific and technical +state-of-the-art when the Software was distributed did not enable all +possible uses to be tested and verified, nor for the presence of +possible defects to be detected. In this respect, the Licensee's +attention has been drawn to the risks associated with loading, using, +modifying and/or developing and reproducing the Software which are +reserved for experienced users. + +The Licensee shall be responsible for verifying, by any or all means, +the suitability of the product for its requirements, its good working +order, and for ensuring that it shall not cause damage to either persons +or properties. + +9.2 The Licensor hereby represents, in good faith, that it is entitled +to grant all the rights over the Software (including in particular the +rights set forth in Article 5). + +9.3 The Licensee acknowledges that the Software is supplied "as is" by +the Licensor without any other express or tacit warranty, other than +that provided for in Article 9.2 and, in particular, without any warranty +as to its commercial value, its secured, safe, innovative or relevant +nature. + +Specifically, the Licensor does not warrant that the Software is free +from any error, that it will operate without interruption, that it will +be compatible with the Licensee's own equipment and software +configuration, nor that it will meet the Licensee's requirements. + +9.4 The Licensor does not either expressly or tacitly warrant that the +Software does not infringe any third party intellectual property right +relating to a patent, software or any other property right. Therefore, +the Licensor disclaims any and all liability towards the Licensee +arising out of any or all proceedings for infringement that may be +instituted in respect of the use, modification and redistribution of the +Software. Nevertheless, should such proceedings be instituted against +the Licensee, the Licensor shall provide it with technical and legal +assistance for its defense. Such technical and legal assistance shall be +decided on a case-by-case basis between the relevant Licensor and the +Licensee pursuant to a memorandum of understanding. The Licensor +disclaims any and all liability as regards the Licensee's use of the +name of the Software. No warranty is given as regards the existence of +prior rights over the name of the Software or as regards the existence +of a trademark. + + + Article 10 - TERMINATION + +10.1 In the event of a breach by the Licensee of its obligations +hereunder, the Licensor may automatically terminate this Agreement +thirty (30) days after notice has been sent to the Licensee and has +remained ineffective. + +10.2 A Licensee whose Agreement is terminated shall no longer be +authorized to use, modify or distribute the Software. However, any +licenses that it may have granted prior to termination of the Agreement +shall remain valid subject to their having been granted in compliance +with the terms and conditions hereof. + + + Article 11 - MISCELLANEOUS + + + 11.1 EXCUSABLE EVENTS + +Neither Party shall be liable for any or all delay, or failure to +perform the Agreement, that may be attributable to an event of force +majeure, an act of God or an outside cause, such as defective +functioning or interruptions of the electricity or telecommunications +networks, network paralysis following a virus attack, intervention by +government authorities, natural disasters, water damage, earthquakes, +fire, explosions, strikes and labor unrest, war, etc. + +11.2 Any failure by either Party, on one or more occasions, to invoke +one or more of the provisions hereof, shall under no circumstances be +interpreted as being a waiver by the interested Party of its right to +invoke said provision(s) subsequently. + +11.3 The Agreement cancels and replaces any or all previous agreements, +whether written or oral, between the Parties and having the same +purpose, and constitutes the entirety of the agreement between said +Parties concerning said purpose. No supplement or modification to the +terms and conditions hereof shall be effective as between the Parties +unless it is made in writing and signed by their duly authorized +representatives. + +11.4 In the event that one or more of the provisions hereof were to +conflict with a current or future applicable act or legislative text, +said act or legislative text shall prevail, and the Parties shall make +the necessary amendments so as to comply with said act or legislative +text. All other provisions shall remain effective. Similarly, invalidity +of a provision of the Agreement, for any reason whatsoever, shall not +cause the Agreement as a whole to be invalid. + + + 11.5 LANGUAGE + +The Agreement is drafted in both French and English and both versions +are deemed authentic. + + + Article 12 - NEW VERSIONS OF THE AGREEMENT + +12.1 Any person is authorized to duplicate and distribute copies of this +Agreement. + +12.2 So as to ensure coherence, the wording of this Agreement is +protected and may only be modified by the authors of the License, who +reserve the right to periodically publish updates or new versions of the +Agreement, each with a separate number. These subsequent versions may +address new issues encountered by Free Software. + +12.3 Any Software distributed under a given version of the Agreement may +only be subsequently distributed under the same version of the Agreement +or a subsequent version. + + + Article 13 - GOVERNING LAW AND JURISDICTION + +13.1 The Agreement is governed by French law. The Parties agree to +endeavor to seek an amicable solution to any disagreements or disputes +that may arise during the performance of the Agreement. + +13.2 Failing an amicable solution within two (2) months as from their +occurrence, and unless emergency proceedings are necessary, the +disagreements or disputes shall be referred to the Paris Courts having +jurisdiction, by the more diligent Party. + + +Version 1.0 dated 2006-09-05. diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..9ab33d5 --- /dev/null +++ b/README.txt @@ -0,0 +1,3 @@ +USER! Put here your module name. + +(c) CREATIS 2009 diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt new file mode 100644 index 0000000..7aa7b13 --- /dev/null +++ b/appli/CMakeLists.txt @@ -0,0 +1,3 @@ +# USER! : Add a ADD_SUBDIRECTORY command for each one of your applications +# ADD_SUBDIRECTORY(MyApp1) +# ADD_SUBDIRECTORY(MyApp2) diff --git a/appli/template_appli/CMakeLists.txt b/appli/template_appli/CMakeLists.txt new file mode 100644 index 0000000..b407745 --- /dev/null +++ b/appli/template_appli/CMakeLists.txt @@ -0,0 +1,62 @@ +#---------------------------------------------------------------------------- +# USER! : SET THE NAME OF YOUR EXECUTABLE +# Replace 'MyExe' by the name you want to give your executable. +# (a good policy 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 +# +# ) +#---------------------------------------------------------------------------- + +INCLUDE_DIRECTORIES ( + +# USER! : Add here the directories holding th extra .h files you need +# e.g. +# ../../lib/ + +) + +#---------------------------------------------------------------------------- +# DEPENDENCIES (LIBRARIES TO LINK WITH) +SET ( ${EXE_NAME}_LINK_LIBRARIES + # ${crea_LIBRARIES} + # ${WXWIDGETS_LIBRARIES} + # ${KWWidgets_LIBRARIES} + # ${VTK_LIBRARIES} + # ${ITK_LIBRARIES} + # ${GDCM_LIBRARIES} + # ${BOOST_LIBRARIES} + + # USER! : Add here those agmonst the various (?) PROJECT LIBRARIES + # you need for the current executable + # (If you created only one Library, don't forget it !...) + + ) +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# USER! : UNCOMMENT NEXT LINE IF YOU WANT A CONSOLE ON WINDOWS +# NB : YOUR MAIN MUST BE ADAPTED ALSO +# SEE THE MACRO CREA_WXMAIN_WITH_CONSOLE IN creaWx.h +#SET(${EXE_NAME}_CONSOLE TRUE) +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# CREATES AND INSTALLS THE EXE +CREA_ADD_EXECUTABLE( ${EXE_NAME} ) +#---------------------------------------------------------------------------- + + diff --git a/appli/template_appli/main.cxx b/appli/template_appli/main.cxx new file mode 100644 index 0000000..8525c7f --- /dev/null +++ b/appli/template_appli/main.cxx @@ -0,0 +1,7 @@ +#include + +int main() +{ + printf("..Hi..!\n"); + return 0; +} \ No newline at end of file diff --git a/appli/template_wx_appli/CMakeLists.txt b/appli/template_wx_appli/CMakeLists.txt new file mode 100644 index 0000000..1ba62d4 --- /dev/null +++ b/appli/template_wx_appli/CMakeLists.txt @@ -0,0 +1,72 @@ +#---------------------------------------------------------------------------- +# USER! : SET THE NAME OF YOUR EXECUTABLE +# Replace 'MyExe' by the name you want to give your executable. +# (a good policy is to give the executable the same name that the directory) + +######################### +SET ( EXE_NAME MyExeWx ) +######################### + +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# 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 +# +# ) +#---------------------------------------------------------------------------- + +INCLUDE_DIRECTORIES ( + +# USER! : Add here the directories holding th extra .h files you need +# e.g. +# ../../lib/ + +) + +#---------------------------------------------------------------------------- +# DEPENDENCIES (LIBRARIES TO LINK WITH) +SET ( ${EXE_NAME}_LINK_LIBRARIES + ${crea_LIBRARIES} + ${WXWIDGETS_LIBRARIES} + # ${KWWidgets_LIBRARIES} + # ${VTK_LIBRARIES} + # ${ITK_LIBRARIES} + # ${GDCM_LIBRARIES} + # ${BOOST_LIBRARIES} + + # USER! : Add here those agmonst the various (?) PROJECT LIBRARIES + # you need for the current executable + # (If you created only one Library, don't forget it !...) + + ) +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# USER! : UNCOMMENT NEXT LINE IF YOU WANT A CONSOLE ON WINDOWS +# NB : YOUR MAIN MUST BE ADAPTED ALSO +# SEE THE MACRO CREA_WXMAIN_WITH_CONSOLE IN creaWx.h +#SET(${EXE_NAME}_CONSOLE TRUE) +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# CREATES AND INSTALLS THE EXE + +IF (USE_WXWIDGETS) + set ( ${EXE_NAME}_HAS_GUI true ) + #set ( ${EXE_NAME}_CONSOLE true ) + CREA_ADD_EXECUTABLE( ${EXE_NAME} ) +ELSE(USE_WXWIDGETS) + message(FATAL_ERROR "You are asking to create a WX application, but the flag USE_WXWIDGETS is OFF.\n Set to ON the flag USE_WXWIDGETS in the root CMakefile.txt of your project. ") +ENDIF(USE_WXWIDGETS) + + + +#---------------------------------------------------------------------------- + + diff --git a/appli/template_wx_appli/winApp.cpp b/appli/template_wx_appli/winApp.cpp new file mode 100644 index 0000000..cb488f4 --- /dev/null +++ b/appli/template_wx_appli/winApp.cpp @@ -0,0 +1,38 @@ + +// For compilers that support precompilation, includes "wx/wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ +#pragma hdrstop +#endif + +#ifndef WX_PRECOMP +#include +#endif + +#include +class myApp : public wxApp +{ +public: + bool OnInit( ); + int OnExit() { return true; } +}; + +IMPLEMENT_APP(myApp); + +bool myApp::OnInit( ) +{ + wxApp::OnInit(); +#ifdef __WXGTK__ + //See http://www.wxwindows.org/faqgtk.htm#locale + setlocale(LC_NUMERIC, "C"); +#endif + + + wxFrame *frame = new wxFrame(NULL , -1 ,_T("My window..")); + SetTopWindow(frame); + frame->Show(true); + + return true; +} + diff --git a/bbtk_package_creaMiniTools/CMakeLists.txt b/bbtk_package_creaMiniTools/CMakeLists.txt new file mode 100644 index 0000000..1324074 --- /dev/null +++ b/bbtk_package_creaMiniTools/CMakeLists.txt @@ -0,0 +1,156 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) + +#=========================================================================== +# CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE +#=========================================================================== + +#=========================================================================== +# THE NAME OF THE BBTK PACKAGE +SET(BBTK_PACKAGE_NAME creaMiniTools) +#=========================================================================== + + + +#=========================================================================== +# 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 "_author_") +#=========================================================================== + +#=========================================================================== +# PACKAGE DESCRIPTION +SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "_description_") +#=========================================================================== + +#=========================================================================== +# PACKAGE VERSION NUMBER +SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1) +SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0) +SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0) +#=========================================================================== + +SET(USE_BOOST ON) +#=========================================================================== +# 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 + ) +#=========================================================================== + +#=========================================================================== +SET(${BBTK_PACKAGE_NAME}_LIBS + # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST + # EXCEPT : the same libs than for INCLUDE_DIRS + ) +#=========================================================================== + + +#=========================================================================== +# 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/bbtk_package_creaMiniTools/Configure.cmake b/bbtk_package_creaMiniTools/Configure.cmake new file mode 100644 index 0000000..dc44b3b --- /dev/null +++ b/bbtk_package_creaMiniTools/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/bbtk_package_creaMiniTools/PackageConfig.cmake.in b/bbtk_package_creaMiniTools/PackageConfig.cmake.in new file mode 100644 index 0000000..0ade94b --- /dev/null +++ b/bbtk_package_creaMiniTools/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/bbtk_package_creaMiniTools/README.txt b/bbtk_package_creaMiniTools/README.txt new file mode 100644 index 0000000..96e622f --- /dev/null +++ b/bbtk_package_creaMiniTools/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/bbtk_package_creaMiniTools/UsePackage.cmake.in b/bbtk_package_creaMiniTools/UsePackage.cmake.in new file mode 100644 index 0000000..2ecb206 --- /dev/null +++ b/bbtk_package_creaMiniTools/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/bbtk_package_creaMiniTools/bbs/CMakeLists.txt b/bbtk_package_creaMiniTools/bbs/CMakeLists.txt new file mode 100644 index 0000000..2c0eb7c --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/CMakeLists.txt @@ -0,0 +1,4 @@ + +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_bbs.cmake) + + diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg new file mode 100644 index 0000000..879a5bf --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg @@ -0,0 +1,209 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/ImageTool.bbg +# ---------------------------------- + +APP_START +CATEGORY:demo +DESCRIPTION:Show N Points +AUTHOR:info-dev@creatis.insa-lyon.fr +COMPLEXBOX:FALSE +BOXES:14 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +-90.630112:50.264934:900.000000 +-29.990112:40.264934:900.000000 +PORT +nTypeView:"5 1 2 0" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints +ISEXEC:FALSE +-151.554537:-17.126419:900.000000 +-105.979537:-27.126419:900.000000 +PORT +Radio:"10" +PORT +WinTitle:"N-Points" +FIN_BOX +BOX +wx:LayoutSplit:main +ISEXEC:TRUE +70.468899:-331.772834:900.000000 +116.043899:-341.772834:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box04 +ISEXEC:FALSE +-22.721777:75.650150:900.000000 +48.453223:65.650150:900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box06 +ISEXEC:FALSE +-120.707679:-204.015087:900.000000 +-63.147679:-214.015087:900.000000 +PORT +WinTitle:Image +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box10 +ISEXEC:FALSE +-92.965721:-95.612640:900.000000 +-21.790721:-105.612640:900.000000 +PORT +WinTitle:"Image Layer" +FIN_BOX +BOX +creaMaracasVisu:ManualPaint:Box11 +ISEXEC:FALSE +-36.186939:-120.970244:900.000000 +9.388061:-130.970244:900.000000 +PORT +WinTitle:"Paint" +FIN_BOX +BOX +wx:LayoutTab:Box12 +ISEXEC:FALSE +-37.606438:-253.405317:900.000000 +19.953562:-263.405317:900.000000 +PORT +WinTitle:Filters +FIN_BOX +BOX +wx:LayoutTab:Box13 +ISEXEC:FALSE +-47.707162:-289.568064:900.000000 +9.852838:-299.568064:900.000000 +FIN_BOX +BOX +minitools:SaveMHD-Button:Box21 +ISEXEC:FALSE +-101.443200:-51.574676:900.000000 +-55.868200:-61.574676:900.000000 +FIN_BOX +BOX +minitools:ThresholdWidget:Box22 +ISEXEC:FALSE +-8.323319:-213.864066:900.000000 +37.251681:-223.864066:900.000000 +FIN_BOX +BOX +minitools:ConnectivityWidget:Box16 +ISEXEC:FALSE +61.974834:-215.138914:900.000000 +107.549834:-225.138914:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesWidget:Box17 +ISEXEC:FALSE +-52.553058:-151.451235:900.000000 +18.621942:-161.451235:900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box18 +ISEXEC:FALSE +-157.996880:-33.303482:900.000000 +-100.436880:-43.303482:900.000000 +PORT +WinTitle:"show N-Points" +FIN_BOX +CONNECTIONS:27 +CONNECTION +viewer:Renderer1:showNpoints:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer:Point:showNpoints:In +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:showNpoints:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:main:Widget2 +NumberOfControlPoints:2 +102.166946:9.835481:900.000000 +182.203140:-101.401443:900.000000 +CONNECTION +Box04:Out:showNpoints:Image +NumberOfControlPoints:1 +-13.630965:26.438316:900.000000 +CONNECTION +Box04:Out:viewer:In +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box06:Widget3 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView4:Box10:WxVtkBaseView +NumberOfControlPoints:2 +-18.196058:-49.129044:900.000000 +-35.599224:-80.206123:900.000000 +CONNECTION +Box11:Widget:Box06:Widget4 +NumberOfControlPoints:1 +-73.850212:-156.598709:900.000000 +CONNECTION +viewer:BoxChange:Box11:BoxExecute +NumberOfControlPoints:2 +-162.452789:-13.599417:900.000000 +-129.994598:-92.765739:900.000000 +CONNECTION +Box04:Out:Box11:In +NumberOfControlPoints:1 +41.886299:-51.200848:900.000000 +CONNECTION +viewer:wxVtkBaseView2:Box11:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView3:Box11:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView4:Box11:WxVtkBaseView4 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box13:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box13:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box21:In +NumberOfControlPoints:0 +CONNECTION +Box21:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box22:In +NumberOfControlPoints:1 +53.882099:-78.422401:900.000000 +CONNECTION +Box22:Widget:Box12:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box12:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box16:In +NumberOfControlPoints:1 +75.021088:-98.781540:900.000000 +CONNECTION +Box04:Out:Box17:in +NumberOfControlPoints:2 +49.449352:-56.325161:900.000000 +29.349667:-129.326675:900.000000 +CONNECTION +Box17:widget:Box06:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box18:Widget:Box06:Widget1 +NumberOfControlPoints:0 +CONNECTION +showNpoints:Widget:Box18:Widget1 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs new file mode 100644 index 0000000..23feb45 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs @@ -0,0 +1,86 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/ImageTool.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include wx +include creaImageIO +include minitools + +author "info-dev@creatis.insa-lyon.fr" +description "Show N Points" +category "demo" + +new ViewerNV viewer + set viewer.nTypeView "5 1 2 0" + +new ShowNPoints showNpoints + set showNpoints.Radio "10" + set showNpoints.WinTitle "N-Points" + +new LayoutSplit main + set main.Orientation "H" + +new ImagesChooserDialogBox Box04 + +new LayoutTab Box06 + set Box06.WinTitle Image + +new ColorLayerImageView Box10 + set Box10.WinTitle "Image Layer" + +new ManualPaint Box11 + set Box11.WinTitle "Paint" + +new LayoutTab Box12 + set Box12.WinTitle Filters + +new LayoutTab Box13 + +new SaveMHD-Button Box21 + +new ThresholdWidget Box22 + +new ConnectivityWidget Box16 + +new ImagePropertiesWidget Box17 + +new LayoutLine Box18 + set Box18.WinTitle "show N-Points" + + +connect viewer.Renderer1 showNpoints.Renderer +connect viewer.Point showNpoints.In +connect viewer.BoxChange showNpoints.BoxExecute +connect viewer.Widget main.Widget2 +connect Box04.Out showNpoints.Image +connect Box04.Out viewer.In +connect Box10.Widget Box06.Widget3 +connect viewer.wxVtkBaseView4 Box10.WxVtkBaseView +connect Box11.Widget Box06.Widget4 +connect viewer.BoxChange Box11.BoxExecute +connect Box04.Out Box11.In +connect viewer.wxVtkBaseView2 Box11.WxVtkBaseView1 +connect viewer.wxVtkBaseView3 Box11.WxVtkBaseView2 +connect viewer.wxVtkBaseView4 Box11.WxVtkBaseView4 +connect Box06.Widget Box13.Widget1 +connect Box13.Widget main.Widget1 +connect Box12.Widget Box13.Widget2 +connect Box04.Out Box21.In +connect Box21.Widget Box06.Widget2 +connect Box04.Out Box22.In +connect Box22.Widget Box12.Widget1 +connect Box16.Widget Box12.Widget2 +connect Box04.Out Box16.In +connect Box04.Out Box17.in +connect Box17.widget Box06.Widget5 +connect Box18.Widget Box06.Widget1 +connect showNpoints.Widget Box18.Widget1 + +exec main diff --git a/bbtk_package_creaMiniTools/bbs/appli/exampleHistogram.bbg b/bbtk_package_creaMiniTools/bbs/appli/exampleHistogram.bbg new file mode 100755 index 0000000..0c411f9 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/exampleHistogram.bbg @@ -0,0 +1,30 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/histogram/exampleHistogram.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:2 +BOX +creaMaracasVisu:HistogramView:Box00 +ISEXEC:TRUE +-87.099376:99.160452:900.000000 +-41.524376:89.160452:900.000000 +PORT +WinTitle:"Histogram" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box01 +ISEXEC:FALSE +-53.085799:143.624769:900.000000 +18.089201:133.624769:900.000000 +FIN_BOX +CONNECTIONS:1 +CONNECTION +Box01:Out:Box00:In +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/exampleHistogram.bbs b/bbtk_package_creaMiniTools/bbs/appli/exampleHistogram.bbs new file mode 100755 index 0000000..ec79157 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/exampleHistogram.bbs @@ -0,0 +1,26 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/histogram/exampleHistogram.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include creaImageIO + +author "Author ??" +description "Description ??" +category "" + +new HistogramView Box00 + set Box00.WinTitle "Histogram" + +new ImagesChooserDialogBox Box01 + + +connect Box01.Out Box00.In + +exec Box00 diff --git a/bbtk_package_creaMiniTools/bbs/appli/exampleHistogramView.bbg b/bbtk_package_creaMiniTools/bbs/appli/exampleHistogramView.bbg new file mode 100755 index 0000000..af5343e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/exampleHistogramView.bbg @@ -0,0 +1,77 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/histogram/exampleHistogramView.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:6 +BOX +creaMaracasVisu:HistogramView:Box00 +ISEXEC:FALSE +-87.099376:99.160452:900.000000 +-41.524376:89.160452:900.000000 +PORT +WinTitle:"Histogram" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box01 +ISEXEC:FALSE +-53.085799:143.624769:900.000000 +18.089201:133.624769:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box04 +ISEXEC:FALSE +-21.901921:98.216032:900.000000 +38.738079:88.216032:900.000000 +PORT +Title:"View" +PORT +WinTitle:"View" +FIN_BOX +BOX +wx:LayoutTab:Box05 +ISEXEC:TRUE +-33.455710:20.684027:900.000000 +24.104290:10.684027:900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:FALSE +-90.312513:60.818241:900.000000 +-32.752513:50.818241:900.000000 +PORT +WinTitle:"Histogram" +FIN_BOX +BOX +wx:LayoutLine:Box08 +ISEXEC:FALSE +11.239211:66.291089:900.000000 +68.799211:56.291089:900.000000 +PORT +WinTitle:"View" +FIN_BOX +CONNECTIONS:6 +CONNECTION +Box01:Out:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Box07:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box05:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box08:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box05:Widget2 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/exampleHistogramView.bbs b/bbtk_package_creaMiniTools/bbs/appli/exampleHistogramView.bbs new file mode 100755 index 0000000..ea8e119 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/exampleHistogramView.bbs @@ -0,0 +1,44 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/histogram/exampleHistogramView.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include creaImageIO +include wx + +author "Author ??" +description "Description ??" +category "" + +new HistogramView Box00 + set Box00.WinTitle "Histogram" + +new ImagesChooserDialogBox Box01 + +new ViewerNV Box04 + set Box04.Title "View" + set Box04.WinTitle "View" + +new LayoutTab Box05 + +new LayoutLine Box07 + set Box07.WinTitle "Histogram" + +new LayoutLine Box08 + set Box08.WinTitle "View" + + +connect Box01.Out Box00.In +connect Box01.Out Box04.In +connect Box00.Widget Box07.Widget1 +connect Box07.Widget Box05.Widget1 +connect Box04.Widget Box08.Widget1 +connect Box08.Widget Box05.Widget2 + +exec Box05 diff --git a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg new file mode 100755 index 0000000..8f845ab --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg @@ -0,0 +1,71 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/viewers/imageWriterExample.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:6 +BOX +creaMaracasVisu:ViewerNV:Box03 +ISEXEC:FALSE +-200.051588:-27.813647:900.000000 +-100.051588:-37.813647:900.000000 +FIN_BOX +BOX +wx:CommandButton:Box04 +ISEXEC:FALSE +-140.206359:-59.442745:900.000000 +-40.206359:-69.442745:900.000000 +PORT +Label:"Save" +FIN_BOX +BOX +vtk:MetaImageWriter:Box05 +ISEXEC:FALSE +-35.097719:-95.671739:900.000000 +64.902281:-105.671739:900.000000 +FIN_BOX +BOX +wx:FileSelector:Box06 +ISEXEC:FALSE +-31.708631:-40.448642:900.000000 +68.291369:-50.448642:900.000000 +PORT +OpenSave:"Save" +FIN_BOX +BOX +wx:LayoutSplit:Box07 +ISEXEC:TRUE +-156.587088:-127.438961:900.000000 +-56.587088:-137.438961:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box08 +ISEXEC:FALSE +-102.931821:37.032666:900.000000 +-2.931821:27.032666:900.000000 +FIN_BOX +CONNECTIONS:6 +CONNECTION +Box06:Out:Box05:Filename +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box07:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box07:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:BoxChange:Box05:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box05:In +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs new file mode 100755 index 0000000..f5c30d7 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs @@ -0,0 +1,42 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/viewers/imageWriterExample.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include wx +include vtk +include creaImageIO + +author "Author ??" +description "Description ??" +category "" + +new ViewerNV Box03 + +new CommandButton Box04 + set Box04.Label "Save" + +new MetaImageWriter Box05 + +new FileSelector Box06 + set Box06.OpenSave "Save" + +new LayoutSplit Box07 + +new ImagesChooserDialogBox Box08 + + +connect Box06.Out Box05.Filename +connect Box03.Widget Box07.Widget1 +connect Box04.Widget Box07.Widget2 +connect Box04.BoxChange Box05.BoxExecute +connect Box08.Out Box03.In +connect Box08.Out Box05.In + +exec Box07 diff --git a/bbtk_package_creaMiniTools/bbs/appli/manualPaint.bbg b/bbtk_package_creaMiniTools/bbs/appli/manualPaint.bbg new file mode 100644 index 0000000..04b1f22 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/manualPaint.bbg @@ -0,0 +1,108 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/manualPaint.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:8 +BOX +creaMaracasVisu:ManualPaint:Box00 +ISEXEC:FALSE +-103.486153:69.440483:900.000000 +-57.911153:59.440483:900.000000 +PORT +BoxProcessMode:"Always" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box01 +ISEXEC:FALSE +-101.852062:147.959211:900.000000 +-30.677062:137.959211:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box02 +ISEXEC:TRUE +-17.278326:-8.318202:900.000000 +28.296674:-18.318202:900.000000 +PORT +Orientation:H +FIN_BOX +BOX +wx:CommandButton:Box03 +ISEXEC:FALSE +-33.585493:77.796715:900.000000 +11.989507:67.796715:900.000000 +PORT +Label:"Save Image" +FIN_BOX +BOX +vtk:MetaImageWriter:Box04 +ISEXEC:FALSE +-40.634855:34.090045:900.000000 +4.940145:24.090045:900.000000 +FIN_BOX +BOX +wx:FileSelector:Box05 +ISEXEC:FALSE +24.420598:76.101399:900.000000 +69.995598:66.101399:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box06 +ISEXEC:FALSE +-60.875680:117.735994:900.000000 +-0.235680:107.735994:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box07 +ISEXEC:FALSE +-83.524945:18.330888:900.000000 +-37.949945:8.330888:900.000000 +PORT +Orientation:V +FIN_BOX +CONNECTIONS:13 +CONNECTION +Box01:Out:Box06:In +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Box07:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box07:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box02:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box02:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box04:Filename +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box06:BoxChange:Box00:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box06:wxVtkBaseView2:Box00:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box06:wxVtkBaseView3:Box00:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box06:wxVtkBaseView4:Box00:WxVtkBaseView3 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/manualPaint.bbs b/bbtk_package_creaMiniTools/bbs/appli/manualPaint.bbs new file mode 100644 index 0000000..46ed3c6 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/manualPaint.bbs @@ -0,0 +1,55 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/manualPaint.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include creaImageIO +include wx +include vtk + +author "Author ??" +description "Description ??" +category "" + +new ManualPaint Box00 + set Box00.BoxProcessMode "Always" + +new ImagesChooserDialogBox Box01 + +new LayoutSplit Box02 + set Box02.Orientation H + +new CommandButton Box03 + set Box03.Label "Save Image" + +new MetaImageWriter Box04 + +new FileSelector Box05 + +new ViewerNV Box06 + +new LayoutSplit Box07 + set Box07.Orientation V + + +connect Box01.Out Box06.In +connect Box00.Widget Box07.Widget1 +connect Box03.Widget Box07.Widget2 +connect Box06.Widget Box02.Widget2 +connect Box07.Widget Box02.Widget1 +connect Box03.BoxChange Box04.BoxExecute +connect Box05.Out Box04.Filename +connect Box01.Out Box04.In +connect Box01.Out Box00.In +connect Box06.BoxChange Box00.BoxExecute +connect Box06.wxVtkBaseView2 Box00.WxVtkBaseView1 +connect Box06.wxVtkBaseView3 Box00.WxVtkBaseView2 +connect Box06.wxVtkBaseView4 Box00.WxVtkBaseView3 + +exec Box02 diff --git a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg new file mode 100644 index 0000000..1e1fd40 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg @@ -0,0 +1,64 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/minitoolsMenu.bbg +# ---------------------------------- + +APP_START +CATEGORY:application +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:6 +BOX +minitools:CommandMenu:Box00 +ISEXEC:FALSE +24.108375:106.152831:900.000000 +69.683375:96.152831:900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box01 +ISEXEC:TRUE +-43.188535:71.442362:900.000000 +14.371465:61.442362:900.000000 +FIN_BOX +BOX +minitools:ImageViewerMenu:Box02 +ISEXEC:FALSE +-77.314974:160.389284:900.000000 +-31.739974:150.389284:900.000000 +FIN_BOX +BOX +minitools:RecalageMenu:Box03 +ISEXEC:FALSE +10.750429:159.991675:900.000000 +56.325429:149.991675:900.000000 +FIN_BOX +BOX +minitools:RescaleSlopeInterceptMenu:Box04 +ISEXEC:FALSE +70.998185:145.578848:900.000000 +142.173185:135.578848:900.000000 +FIN_BOX +BOX +minitools:maxiToolsMenu:Box05 +ISEXEC:FALSE +-93.706946:109.040810:900.000000 +-48.131946:99.040810:900.000000 +FIN_BOX +CONNECTIONS:5 +CONNECTION +Box02:widget:Box01:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:widget:Box01:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box00:CommandMenu:Box01:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box04:widget:Box01:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box05:widget:Box01:Widget1 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs new file mode 100644 index 0000000..435d371 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs @@ -0,0 +1,37 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/minitoolsMenu.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include minitools +include wx + +author "Author ??" +description "Description ??" +category "application" + +new CommandMenu Box00 + +new LayoutTab Box01 + +new ImageViewerMenu Box02 + +new RecalageMenu Box03 + +new RescaleSlopeInterceptMenu Box04 + +new maxiToolsMenu Box05 + + +connect Box02.widget Box01.Widget2 +connect Box03.widget Box01.Widget3 +connect Box00.CommandMenu Box01.Widget5 +connect Box04.widget Box01.Widget4 +connect Box05.widget Box01.Widget1 + +exec Box01 diff --git a/bbtk_package_creaMiniTools/bbs/appli/recalage2DExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/recalage2DExample.bbg new file mode 100755 index 0000000..b767fb0 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/recalage2DExample.bbg @@ -0,0 +1,836 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/recalage/recalage2DExample.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:55 +BOX +creaMaracasVisu:SliceImage:imgslice1 +ISEXEC:FALSE +0.000000:10.000000:900.000000 +100.000000:0.000000:900.000000 +FIN_BOX +BOX +creaMaracasVisu:SliceImage:imgslice2 +ISEXEC:FALSE +-219.811937:-87.499683:900.000000 +-119.811937:-97.499683:900.000000 +FIN_BOX +BOX +wx:LayoutLine:v1Layout +ISEXEC:FALSE +0.000000:-50.000000:900.000000 +100.000000:-60.000000:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer1 +ISEXEC:FALSE +-100.000000:-80.000000:900.000000 +0.000000:-90.000000:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +wx:LayoutLine:v2Layout +ISEXEC:FALSE +-217.123980:-171.874709:900.000000 +-117.123980:-181.874709:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +-330.061419:-348.686520:900.000000 +-230.061419:-358.686520:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +wx:LayoutSplit:initialImages +ISEXEC:FALSE +-165.936720:-230.749715:900.000000 +-65.936720:-240.749715:900.000000 +PORT +Orientation:"H" +PORT +Proportion:"50" +FIN_BOX +BOX +wx:LayoutLine:buttonsLayout +ISEXEC:FALSE +-220.374434:-322.624424:900.000000 +-120.374434:-332.624424:900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:Slider:slider +ISEXEC:FALSE +0.000000:-230.000000:900.000000 +100.000000:-240.000000:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"1" +PORT +Title:"Angle" +FIN_BOX +BOX +wx:Slider:sliderX +ISEXEC:FALSE +-354.811303:-253.812529:900.000000 +-254.811303:-263.812529:900.000000 +PORT +In:"100" +PORT +Max:"500" +PORT +Min:"10" +PORT +ReactiveOnTrack:"1" +PORT +Title:"% Scale in X" +FIN_BOX +BOX +wx:Slider:sliderY +ISEXEC:FALSE +0.000000:-290.000000:900.000000 +100.000000:-300.000000:900.000000 +PORT +In:"100" +PORT +Max:"500" +PORT +Min:"10" +PORT +ReactiveOnTrack:"1" +PORT +Title:"% Scale in Y" +FIN_BOX +BOX +PackRecalage:Transform2DBox:transform +ISEXEC:FALSE +-237.249355:-389.187175:900.000000 +-137.249355:-399.187175:900.000000 +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslice1 +ISEXEC:FALSE +0.000000:-350.000000:900.000000 +100.000000:-360.000000:900.000000 +FIN_BOX +BOX +PackRecalage:ImageConvolution:convol1 +ISEXEC:FALSE +146.936340:-300.687873:900.000000 +246.936340:-310.687873:900.000000 +FIN_BOX +BOX +PackRecalage:ImageConvolution:convol2 +ISEXEC:FALSE +104.624508:-463.437249:900.000000 +204.624508:-473.437249:900.000000 +FIN_BOX +BOX +PackRecalage:ImageRecalageProperties:properties +ISEXEC:FALSE +123.873948:-98.001607:900.000000 +223.873948:-108.001607:900.000000 +FIN_BOX +BOX +wx:Slider:sdrZ +ISEXEC:FALSE +31.499852:-169.626411:900.000000 +131.499852:-179.626411:900.000000 +PORT +Min:"0" +PORT +ReactiveOnTrack:"1" +PORT +Title:"Z for slice" +FIN_BOX +BOX +wx:Slider:sdrF +ISEXEC:FALSE +191.373631:-416.750391:900.000000 +291.373631:-426.750391:900.000000 +PORT +In:"0" +PORT +Max:"100" +PORT +Min:"0" +PORT +ReactiveOnTrack:"1" +PORT +Title:"Convolution Factor" +FIN_BOX +BOX +wx:CheckBox:checkF +ISEXEC:FALSE +0.000000:-530.000000:900.000000 +100.000000:-540.000000:900.000000 +PORT +In:"True" +FIN_BOX +BOX +std:MultipleInputs:multF +ISEXEC:FALSE +160.436276:-599.374815:900.000000 +260.436276:-609.374815:900.000000 +FIN_BOX +BOX +wx:Slider:colorLevel +ISEXEC:FALSE +0.000000:-590.000000:900.000000 +100.000000:-600.000000:900.000000 +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Color Level" +FIN_BOX +BOX +wx:Slider:windowLevel +ISEXEC:FALSE +-100.000000:-620.000000:900.000000 +0.000000:-630.000000:900.000000 +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Window Level" +FIN_BOX +BOX +std:MultipleInputs:multLevels +ISEXEC:FALSE +0.000000:-650.000000:900.000000 +100.000000:-660.000000:900.000000 +FIN_BOX +BOX +wx:CommandButton:saveBut +ISEXEC:FALSE +-100.000000:-680.000000:900.000000 +0.000000:-690.000000:900.000000 +PORT +Label:"Save Image" +FIN_BOX +BOX +wx:FileSelector:fileSave +ISEXEC:FALSE +0.000000:-710.000000:900.000000 +100.000000:-720.000000:900.000000 +PORT +OpenSave:"Save" +PORT +Wildcard:"*.mhd" +FIN_BOX +BOX +vtk:MetaImageWriter:writSave +ISEXEC:FALSE +-100.000000:-740.000000:900.000000 +0.000000:-750.000000:900.000000 +FIN_BOX +BOX +PackRecalage:CheckBoardBox:cbb +ISEXEC:FALSE +0.000000:-770.000000:900.000000 +100.000000:-780.000000:900.000000 +FIN_BOX +BOX +wx:Slider:sdr +ISEXEC:FALSE +-100.000000:-800.000000:900.000000 +0.000000:-810.000000:900.000000 +PORT +In:"14" +PORT +Max:"50" +PORT +ReactiveOnTrack:"1" +FIN_BOX +BOX +wx:Slider:sdr2 +ISEXEC:FALSE +82.687111:-835.062476:900.000000 +182.687111:-845.062476:900.000000 +PORT +In:"14" +PORT +Max:"50" +PORT +ReactiveOnTrack:"1" +FIN_BOX +BOX +wx:LayoutSplit:checkerBoard +ISEXEC:FALSE +-100.000000:-860.000000:900.000000 +0.000000:-870.000000:900.000000 +PORT +Proportion:"80" +FIN_BOX +BOX +wx:LayoutLine:ly +ISEXEC:FALSE +-22.499894:-914.187386:900.000000 +77.500106:-924.187386:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewerCH +ISEXEC:FALSE +-100.000000:-920.000000:900.000000 +0.000000:-930.000000:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +PackRecalage:TransparencyBox:trans +ISEXEC:FALSE +0.000000:-950.000000:900.000000 +100.000000:-960.000000:900.000000 +FIN_BOX +BOX +wx:Slider:sdrP +ISEXEC:FALSE +-100.000000:-980.000000:900.000000 +0.000000:-990.000000:900.000000 +PORT +In:"50" +PORT +Max:"100" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:transView +ISEXEC:FALSE +0.000000:-1010.000000:900.000000 +100.000000:-1020.000000:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +wx:LayoutSplit:transparency +ISEXEC:FALSE +-105.624974:-1131.687069:900.000000 +-5.624974:-1141.687069:900.000000 +PORT +Proportion:"80" +FIN_BOX +BOX +PackRecalage:ImageSwitcherBox:switch +ISEXEC:FALSE +21.374900:-1096.437376:900.000000 +121.374900:-1106.437376:900.000000 +FIN_BOX +BOX +wx:CheckBox:checkS +ISEXEC:FALSE +-224.311916:-1136.562328:900.000000 +-124.311916:-1146.562328:900.000000 +PORT +In:"true" +PORT +Title:"On" +FIN_BOX +BOX +wx:Slider:sdrT +ISEXEC:FALSE +96.187048:-1030.437968:900.000000 +196.187048:-1040.437968:900.000000 +PORT +In:"500" +PORT +Max:"1000" +PORT +Min:"0" +PORT +ReactiveOnTrack:"True" +FIN_BOX +BOX +wxvtk:Viewer2D:viewerSwitch +ISEXEC:FALSE +97.999070:-1147.062561:900.000000 +197.999070:-1157.062561:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:switcher +ISEXEC:FALSE +32.062349:-1192.249989:900.000000 +132.062349:-1202.249989:900.000000 +PORT +Proportion:"70" +FIN_BOX +BOX +wx:LayoutSplit:switchWindow +ISEXEC:FALSE +-188.312085:-1239.124910:900.000000 +-88.312085:-1249.124910:900.000000 +PORT +Proportion:"80" +FIN_BOX +BOX +wx:LayoutSplit:switchTool +ISEXEC:FALSE +0.000000:-1250.000000:900.000000 +100.000000:-1260.000000:900.000000 +PORT +Orientation:"H" +PORT +Proportion:"50" +FIN_BOX +BOX +std:MultipleInputs:mult +ISEXEC:FALSE +-281.124149:-1262.562582:900.000000 +-181.124149:-1272.562582:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult2 +ISEXEC:FALSE +-265.498752:-1304.375026:900.000000 +-165.498752:-1314.375026:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult3 +ISEXEC:FALSE +-197.312043:-1368.124868:900.000000 +-97.312043:-1378.124868:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult4 +ISEXEC:FALSE +0.000000:-1370.000000:900.000000 +100.000000:-1380.000000:900.000000 +FIN_BOX +BOX +wx:LayoutTab:tabs +ISEXEC:FALSE +-100.000000:-1400.000000:900.000000 +0.000000:-1410.000000:900.000000 +FIN_BOX +BOX +wx:LayoutLine:tools +ISEXEC:FALSE +0.000000:-1430.000000:900.000000 +100.000000:-1440.000000:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:convolTools +ISEXEC:FALSE +-100.000000:-1460.000000:900.000000 +0.000000:-1470.000000:900.000000 +PORT +Orientation:"H" +PORT +Proportion:"80" +FIN_BOX +BOX +wx:LayoutSplit:window1 +ISEXEC:FALSE +0.000000:-1490.000000:900.000000 +100.000000:-1500.000000:900.000000 +PORT +Orientation:"V" +PORT +Proportion:"80" +PORT +WinWidth:"600" +FIN_BOX +BOX +wx:LayoutSplit:window2 +ISEXEC:FALSE +-100.000000:-1520.000000:900.000000 +0.000000:-1530.000000:900.000000 +PORT +Proportion:"90" +FIN_BOX +BOX +wx:LayoutSplit:main +ISEXEC:TRUE +0.000000:-1550.000000:900.000000 +100.000000:-1560.000000:900.000000 +PORT +Orientation:"H" +PORT +Proportion:"50" +PORT +WinWidth:"1200" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box55 +ISEXEC:FALSE +-213.186498:59.905969:900.000000 +-113.186498:49.905969:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box56 +ISEXEC:FALSE +192.374096:-13.218688:900.000000 +292.374096:-23.218688:900.000000 +FIN_BOX +CONNECTIONS:117 +CONNECTION +viewer1:Widget:v1Layout:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:v2Layout:Widget1 +NumberOfControlPoints:0 +CONNECTION +v1Layout:Widget:initialImages:Widget1 +NumberOfControlPoints:0 +CONNECTION +v2Layout:Widget:initialImages:Widget2 +NumberOfControlPoints:0 +CONNECTION +slider:Widget:buttonsLayout:Widget1 +NumberOfControlPoints:0 +CONNECTION +sliderX:Widget:buttonsLayout:Widget2 +NumberOfControlPoints:0 +CONNECTION +sliderY:Widget:buttonsLayout:Widget3 +NumberOfControlPoints:0 +CONNECTION +viewer2:Point:transform:CenterPoint +NumberOfControlPoints:0 +CONNECTION +slider:Out:transform:Angle +NumberOfControlPoints:0 +CONNECTION +sliderX:Out:transform:ScaleX +NumberOfControlPoints:0 +CONNECTION +sliderY:Out:transform:ScaleY +NumberOfControlPoints:0 +CONNECTION +viewer1:Point:reslice1:Origin +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslice1:Transform +NumberOfControlPoints:0 +CONNECTION +imgslice2:Out:reslice1:In +NumberOfControlPoints:0 +CONNECTION +imgslice1:Out:convol1:In +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:convol2:In +NumberOfControlPoints:0 +CONNECTION +properties:LengthZ:sdrZ:Max +NumberOfControlPoints:0 +CONNECTION +sdrZ:Out:imgslice1:Z +NumberOfControlPoints:0 +CONNECTION +sdrZ:Out:imgslice2:Z +NumberOfControlPoints:0 +CONNECTION +sdrZ:BoxChange:imgslice1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +sdrZ:BoxChange:imgslice2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +sdrF:Out:convol1:Factor +NumberOfControlPoints:0 +CONNECTION +sdrF:Out:convol2:Factor +NumberOfControlPoints:0 +CONNECTION +checkF:Out:convol1:On +NumberOfControlPoints:0 +CONNECTION +checkF:Out:convol2:On +NumberOfControlPoints:0 +CONNECTION +sdrF:BoxChange:multF:In1 +NumberOfControlPoints:0 +CONNECTION +checkF:BoxChange:multF:In2 +NumberOfControlPoints:0 +CONNECTION +multF:BoxChange:convol1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +multF:BoxChange:convol2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +properties:ColorLevel:colorLevel:Max +NumberOfControlPoints:0 +CONNECTION +properties:MidColorLevel:colorLevel:In +NumberOfControlPoints:0 +CONNECTION +properties:ColorLevel:windowLevel:Max +NumberOfControlPoints:0 +CONNECTION +properties:MidColorLevel:windowLevel:In +NumberOfControlPoints:0 +CONNECTION +colorLevel:Out:viewer1:ColorLevel +NumberOfControlPoints:0 +CONNECTION +colorLevel:Out:viewer2:ColorLevel +NumberOfControlPoints:0 +CONNECTION +windowLevel:Out:viewer1:WindowLevel +NumberOfControlPoints:0 +CONNECTION +windowLevel:Out:viewer2:WindowLevel +NumberOfControlPoints:0 +CONNECTION +colorLevel:BoxChange:multLevels:In1 +NumberOfControlPoints:0 +CONNECTION +windowLevel:BoxChange:multLevels:In2 +NumberOfControlPoints:0 +CONNECTION +multLevels:BoxChange:viewer1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +multLevels:BoxChange:viewer2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:writSave:In +NumberOfControlPoints:0 +CONNECTION +fileSave:Out:writSave:Filename +NumberOfControlPoints:0 +CONNECTION +saveBut:BoxChange:fileSave:BoxExecute +NumberOfControlPoints:0 +CONNECTION +fileSave:BoxChange:writSave:BoxExecute +NumberOfControlPoints:0 +CONNECTION +convol1:Out:cbb:In1 +NumberOfControlPoints:0 +CONNECTION +convol2:Out:cbb:In2 +NumberOfControlPoints:0 +CONNECTION +colorLevel:Out:viewerCH:ColorLevel +NumberOfControlPoints:0 +CONNECTION +windowLevel:Out:viewerCH:WindowLevel +NumberOfControlPoints:0 +CONNECTION +sdr:Out:cbb:Cols +NumberOfControlPoints:0 +CONNECTION +sdr2:Out:cbb:Rows +NumberOfControlPoints:0 +CONNECTION +cbb:Out:viewerCH:In +NumberOfControlPoints:0 +CONNECTION +sdr:Widget:ly:Widget2 +NumberOfControlPoints:0 +CONNECTION +sdr2:Widget:ly:Widget3 +NumberOfControlPoints:0 +CONNECTION +viewerCH:Widget:checkerBoard:Widget1 +NumberOfControlPoints:0 +CONNECTION +ly:Widget:checkerBoard:Widget2 +NumberOfControlPoints:0 +CONNECTION +convol1:Out:trans:In1 +NumberOfControlPoints:0 +CONNECTION +convol2:Out:trans:In2 +NumberOfControlPoints:0 +CONNECTION +sdrP:Out:trans:Percent +NumberOfControlPoints:0 +CONNECTION +trans:Out:transView:In +NumberOfControlPoints:0 +CONNECTION +transView:Widget:transparency:Widget1 +NumberOfControlPoints:0 +CONNECTION +sdrP:Widget:transparency:Widget2 +NumberOfControlPoints:0 +CONNECTION +colorLevel:Out:transView:ColorLevel +NumberOfControlPoints:0 +CONNECTION +windowLevel:Out:transView:WindowLevel +NumberOfControlPoints:0 +CONNECTION +convol1:Out:switch:In1 +NumberOfControlPoints:0 +CONNECTION +convol2:Out:switch:In2 +NumberOfControlPoints:0 +CONNECTION +checkS:Out:switch:On +NumberOfControlPoints:0 +CONNECTION +sdrT:Out:switch:Time +NumberOfControlPoints:0 +CONNECTION +switch:Out:viewerSwitch:In +NumberOfControlPoints:0 +CONNECTION +sdrT:BoxChange:switch:BoxExecute +NumberOfControlPoints:0 +CONNECTION +switch:BoxChange:viewerSwitch:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewerSwitch:Widget:switchWindow:Widget1 +NumberOfControlPoints:0 +CONNECTION +switch:Widget:switchTool:Widget1 +NumberOfControlPoints:0 +CONNECTION +checkS:Widget:switchTool:Widget2 +NumberOfControlPoints:0 +CONNECTION +switchTool:Widget:switchWindow:Widget2 +NumberOfControlPoints:0 +CONNECTION +switchWindow:Widget:switcher:Widget1 +NumberOfControlPoints:0 +CONNECTION +sdrT:Widget:switcher:Widget2 +NumberOfControlPoints:0 +CONNECTION +slider:BoxChange:mult:In1 +NumberOfControlPoints:0 +CONNECTION +sliderX:BoxChange:mult:In2 +NumberOfControlPoints:0 +CONNECTION +sliderY:BoxChange:mult:In3 +NumberOfControlPoints:0 +CONNECTION +viewer1:BoxChange:mult:In4 +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:mult:In5 +NumberOfControlPoints:0 +CONNECTION +multF:BoxChange:mult2:In1 +NumberOfControlPoints:0 +CONNECTION +mult:BoxChange:mult2:In2 +NumberOfControlPoints:0 +CONNECTION +ly:BoxChange:mult3:In1 +NumberOfControlPoints:0 +CONNECTION +mult2:BoxChange:mult3:In2 +NumberOfControlPoints:0 +CONNECTION +imgslice1:BoxChange:mult3:In3 +NumberOfControlPoints:0 +CONNECTION +imgslice2:BoxChange:mult3:In4 +NumberOfControlPoints:0 +CONNECTION +multLevels:BoxChange:mult3:In5 +NumberOfControlPoints:0 +CONNECTION +mult3:BoxChange:cbb:BoxExecute +NumberOfControlPoints:0 +CONNECTION +cbb:BoxChange:viewerCH:BoxExecute +NumberOfControlPoints:0 +CONNECTION +mult2:BoxChange:mult4:In1 +NumberOfControlPoints:0 +CONNECTION +sdrP:BoxChange:mult4:In2 +NumberOfControlPoints:0 +CONNECTION +mult4:BoxChange:trans:BoxExecute +NumberOfControlPoints:0 +CONNECTION +trans:BoxChange:transView:BoxExecute +NumberOfControlPoints:0 +CONNECTION +switcher:Widget:tabs:Widget1 +NumberOfControlPoints:0 +CONNECTION +checkerBoard:Widget:tabs:Widget2 +NumberOfControlPoints:0 +CONNECTION +transparency:Widget:tabs:Widget3 +NumberOfControlPoints:0 +CONNECTION +sdrZ:Widget:tools:Widget1 +NumberOfControlPoints:0 +CONNECTION +colorLevel:Widget:tools:Widget2 +NumberOfControlPoints:0 +CONNECTION +windowLevel:Widget:tools:Widget3 +NumberOfControlPoints:0 +CONNECTION +saveBut:Widget:tools:Widget5 +NumberOfControlPoints:0 +CONNECTION +sdrF:Widget:convolTools:Widget1 +NumberOfControlPoints:0 +CONNECTION +checkF:Widget:convolTools:Widget2 +NumberOfControlPoints:0 +CONNECTION +convolTools:Widget:tools:Widget4 +NumberOfControlPoints:0 +CONNECTION +initialImages:Widget:window1:Widget1 +NumberOfControlPoints:0 +CONNECTION +buttonsLayout:Widget:window1:Widget2 +NumberOfControlPoints:0 +CONNECTION +tabs:Widget:window2:Widget1 +NumberOfControlPoints:0 +CONNECTION +tools:Widget:window2:Widget2 +NumberOfControlPoints:0 +CONNECTION +window1:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +window2:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box55:Out:imgslice2:In +NumberOfControlPoints:0 +CONNECTION +Box55:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box56:Out:imgslice1:In +NumberOfControlPoints:0 +CONNECTION +Box56:Out:viewer1:In +NumberOfControlPoints:0 +CONNECTION +Box56:Out:properties:In +NumberOfControlPoints:0 +CONNECTION +Box56:BoxChange:properties:BoxExecute +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/recalage2DExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/recalage2DExample.bbs new file mode 100755 index 0000000..fc063d7 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/recalage2DExample.bbs @@ -0,0 +1,323 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/recalage/recalage2DExample.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include wx +include PackRecalage +include std +include vtk +include wxvtk +include creaImageIO + +author "Author ??" +description "Description ??" +category "" + +new SliceImage imgslice1 + +new SliceImage imgslice2 + +new LayoutLine v1Layout + +new ViewerNV viewer1 + set viewer1.nTypeView "0" + +new LayoutLine v2Layout + +new ViewerNV viewer2 + set viewer2.nTypeView "0" + +new LayoutSplit initialImages + set initialImages.Orientation "H" + set initialImages.Proportion "50" + +new LayoutLine buttonsLayout + set buttonsLayout.Orientation "V" + +new Slider slider + set slider.In "0" + set slider.Max "180" + set slider.Min "-180" + set slider.ReactiveOnTrack "1" + set slider.Title "Angle" + +new Slider sliderX + set sliderX.In "100" + set sliderX.Max "500" + set sliderX.Min "10" + set sliderX.ReactiveOnTrack "1" + set sliderX.Title "% Scale in X" + +new Slider sliderY + set sliderY.In "100" + set sliderY.Max "500" + set sliderY.Min "10" + set sliderY.ReactiveOnTrack "1" + set sliderY.Title "% Scale in Y" + +new Transform2DBox transform + +new ReSlicerBox reslice1 + +new ImageConvolution convol1 + +new ImageConvolution convol2 + +new ImageRecalageProperties properties + +new Slider sdrZ + set sdrZ.Min "0" + set sdrZ.ReactiveOnTrack "1" + set sdrZ.Title "Z for slice" + +new Slider sdrF + set sdrF.In "0" + set sdrF.Max "100" + set sdrF.Min "0" + set sdrF.ReactiveOnTrack "1" + set sdrF.Title "Convolution Factor" + +new CheckBox checkF + set checkF.In "True" + +new MultipleInputs multF + +new Slider colorLevel + set colorLevel.Min "0" + set colorLevel.ReactiveOnTrack "true" + set colorLevel.Title "Color Level" + +new Slider windowLevel + set windowLevel.Min "0" + set windowLevel.ReactiveOnTrack "true" + set windowLevel.Title "Window Level" + +new MultipleInputs multLevels + +new CommandButton saveBut + set saveBut.Label "Save Image" + +new FileSelector fileSave + set fileSave.OpenSave "Save" + set fileSave.Wildcard "*.mhd" + +new MetaImageWriter writSave + +new CheckBoardBox cbb + +new Slider sdr + set sdr.In "14" + set sdr.Max "50" + set sdr.ReactiveOnTrack "1" + +new Slider sdr2 + set sdr2.In "14" + set sdr2.Max "50" + set sdr2.ReactiveOnTrack "1" + +new LayoutSplit checkerBoard + set checkerBoard.Proportion "80" + +new LayoutLine ly + +new ViewerNV viewerCH + set viewerCH.nTypeView "0" + +new TransparencyBox trans + +new Slider sdrP + set sdrP.In "50" + set sdrP.Max "100" + set sdrP.Min "0" + set sdrP.ReactiveOnTrack "true" + +new ViewerNV transView + set transView.nTypeView "0" + +new LayoutSplit transparency + set transparency.Proportion "80" + +new ImageSwitcherBox switch + +new CheckBox checkS + set checkS.In "true" + set checkS.Title "On" + +new Slider sdrT + set sdrT.In "500" + set sdrT.Max "1000" + set sdrT.Min "0" + set sdrT.ReactiveOnTrack "True" + +new Viewer2D viewerSwitch + +new LayoutSplit switcher + set switcher.Proportion "70" + +new LayoutSplit switchWindow + set switchWindow.Proportion "80" + +new LayoutSplit switchTool + set switchTool.Orientation "H" + set switchTool.Proportion "50" + +new MultipleInputs mult + +new MultipleInputs mult2 + +new MultipleInputs mult3 + +new MultipleInputs mult4 + +new LayoutTab tabs + +new LayoutLine tools + +new LayoutSplit convolTools + set convolTools.Orientation "H" + set convolTools.Proportion "80" + +new LayoutSplit window1 + set window1.Orientation "V" + set window1.Proportion "80" + set window1.WinWidth "600" + +new LayoutSplit window2 + set window2.Proportion "90" + +new LayoutSplit main + set main.Orientation "H" + set main.Proportion "50" + set main.WinWidth "1200" + +new ImagesChooserDialogBox Box55 + +new ImagesChooserDialogBox Box56 + + +connect viewer1.Widget v1Layout.Widget1 +connect viewer2.Widget v2Layout.Widget1 +connect v1Layout.Widget initialImages.Widget1 +connect v2Layout.Widget initialImages.Widget2 +connect slider.Widget buttonsLayout.Widget1 +connect sliderX.Widget buttonsLayout.Widget2 +connect sliderY.Widget buttonsLayout.Widget3 +connect viewer2.Point transform.CenterPoint +connect slider.Out transform.Angle +connect sliderX.Out transform.ScaleX +connect sliderY.Out transform.ScaleY +connect viewer1.Point reslice1.Origin +connect transform.Out reslice1.Transform +connect imgslice2.Out reslice1.In +connect imgslice1.Out convol1.In +connect reslice1.Out convol2.In +connect properties.LengthZ sdrZ.Max +connect sdrZ.Out imgslice1.Z +connect sdrZ.Out imgslice2.Z +connect sdrZ.BoxChange imgslice1.BoxExecute +connect sdrZ.BoxChange imgslice2.BoxExecute +connect sdrF.Out convol1.Factor +connect sdrF.Out convol2.Factor +connect checkF.Out convol1.On +connect checkF.Out convol2.On +connect sdrF.BoxChange multF.In1 +connect checkF.BoxChange multF.In2 +connect multF.BoxChange convol1.BoxExecute +connect multF.BoxChange convol2.BoxExecute +connect properties.ColorLevel colorLevel.Max +connect properties.MidColorLevel colorLevel.In +connect properties.ColorLevel windowLevel.Max +connect properties.MidColorLevel windowLevel.In +connect colorLevel.Out viewer1.ColorLevel +connect colorLevel.Out viewer2.ColorLevel +connect windowLevel.Out viewer1.WindowLevel +connect windowLevel.Out viewer2.WindowLevel +connect colorLevel.BoxChange multLevels.In1 +connect windowLevel.BoxChange multLevels.In2 +connect multLevels.BoxChange viewer1.BoxExecute +connect multLevels.BoxChange viewer2.BoxExecute +connect reslice1.Out writSave.In +connect fileSave.Out writSave.Filename +connect saveBut.BoxChange fileSave.BoxExecute +connect fileSave.BoxChange writSave.BoxExecute +connect convol1.Out cbb.In1 +connect convol2.Out cbb.In2 +connect colorLevel.Out viewerCH.ColorLevel +connect windowLevel.Out viewerCH.WindowLevel +connect sdr.Out cbb.Cols +connect sdr2.Out cbb.Rows +connect cbb.Out viewerCH.In +connect sdr.Widget ly.Widget2 +connect sdr2.Widget ly.Widget3 +connect viewerCH.Widget checkerBoard.Widget1 +connect ly.Widget checkerBoard.Widget2 +connect convol1.Out trans.In1 +connect convol2.Out trans.In2 +connect sdrP.Out trans.Percent +connect trans.Out transView.In +connect transView.Widget transparency.Widget1 +connect sdrP.Widget transparency.Widget2 +connect colorLevel.Out transView.ColorLevel +connect windowLevel.Out transView.WindowLevel +connect convol1.Out switch.In1 +connect convol2.Out switch.In2 +connect checkS.Out switch.On +connect sdrT.Out switch.Time +connect switch.Out viewerSwitch.In +connect sdrT.BoxChange switch.BoxExecute +connect switch.BoxChange viewerSwitch.BoxExecute +connect viewerSwitch.Widget switchWindow.Widget1 +connect switch.Widget switchTool.Widget1 +connect checkS.Widget switchTool.Widget2 +connect switchTool.Widget switchWindow.Widget2 +connect switchWindow.Widget switcher.Widget1 +connect sdrT.Widget switcher.Widget2 +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 multF.BoxChange mult2.In1 +connect mult.BoxChange mult2.In2 +connect ly.BoxChange mult3.In1 +connect mult2.BoxChange mult3.In2 +connect imgslice1.BoxChange mult3.In3 +connect imgslice2.BoxChange mult3.In4 +connect multLevels.BoxChange mult3.In5 +connect mult3.BoxChange cbb.BoxExecute +connect cbb.BoxChange viewerCH.BoxExecute +connect mult2.BoxChange mult4.In1 +connect sdrP.BoxChange mult4.In2 +connect mult4.BoxChange trans.BoxExecute +connect trans.BoxChange transView.BoxExecute +connect switcher.Widget tabs.Widget1 +connect checkerBoard.Widget tabs.Widget2 +connect transparency.Widget tabs.Widget3 +connect sdrZ.Widget tools.Widget1 +connect colorLevel.Widget tools.Widget2 +connect windowLevel.Widget tools.Widget3 +connect saveBut.Widget tools.Widget5 +connect sdrF.Widget convolTools.Widget1 +connect checkF.Widget convolTools.Widget2 +connect convolTools.Widget tools.Widget4 +connect initialImages.Widget window1.Widget1 +connect buttonsLayout.Widget window1.Widget2 +connect tabs.Widget window2.Widget1 +connect tools.Widget window2.Widget2 +connect window1.Widget main.Widget1 +connect window2.Widget main.Widget2 +connect Box55.Out imgslice2.In +connect Box55.Out viewer2.In +connect Box56.Out imgslice1.In +connect Box56.Out viewer1.In +connect Box56.Out properties.In +connect Box56.BoxChange properties.BoxExecute + +exec main diff --git a/bbtk_package_creaMiniTools/bbs/appli/recalage3D1PointExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/recalage3D1PointExample.bbg new file mode 100755 index 0000000..3e2a795 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/recalage3D1PointExample.bbg @@ -0,0 +1,381 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/recalage/recalage3D1PointExample.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:25 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +26.492127:-2.143254:900.000000 +126.492127:-12.143254:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +-117.946280:-11.633220:900.000000 +-17.946280:-21.633220:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +wx:Slider:sdrAngleX +ISEXEC:FALSE +0.000000:-110.000000:900.000000 +100.000000:-120.000000:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation angle in X Axis" +FIN_BOX +BOX +wx:Slider:sdrAngleY +ISEXEC:FALSE +-132.901513:-156.664403:900.000000 +-32.901513:-166.664403:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation angle in Y Axis" +FIN_BOX +BOX +wx:Slider:sdrAngleZ +ISEXEC:FALSE +0.000000:-170.000000:900.000000 +100.000000:-180.000000:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation angle in Z Axis" +FIN_BOX +BOX +wx:Slider:sdrScaleX +ISEXEC:FALSE +-100.000000:-200.000000:900.000000 +0.000000:-210.000000:900.000000 +PORT +In:"100" +PORT +Max:"300" +PORT +Min:"10" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale in X Axis" +FIN_BOX +BOX +wx:Slider:sdrScaleY +ISEXEC:FALSE +0.000000:-230.000000:900.000000 +100.000000:-240.000000:900.000000 +PORT +In:"100" +PORT +Max:"300" +PORT +Min:"10" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale in Y Axis" +FIN_BOX +BOX +wx:Slider:sdrScaleZ +ISEXEC:FALSE +-100.000000:-260.000000:900.000000 +0.000000:-270.000000:900.000000 +PORT +In:"100" +PORT +Max:"300" +PORT +Min:"10" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale in Z Axis" +FIN_BOX +BOX +PackRecalage:Transform3D1PointBox:transform +ISEXEC:FALSE +0.000000:-290.000000:900.000000 +100.000000:-300.000000:900.000000 +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslicer +ISEXEC:FALSE +-221.351035:-101.653595:900.000000 +-121.351035:-111.653595:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult +ISEXEC:FALSE +0.000000:-350.000000:900.000000 +100.000000:-360.000000:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult2 +ISEXEC:FALSE +-100.000000:-380.000000:900.000000 +0.000000:-390.000000:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult3 +ISEXEC:FALSE +0.000000:-410.000000:900.000000 +100.000000:-420.000000:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewerResult +ISEXEC:FALSE +-100.000000:-440.000000:900.000000 +0.000000:-450.000000:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +wx:LayoutSplit:imagesLayout +ISEXEC:FALSE +38.029022:-276.009261:900.000000 +138.029022:-286.009261:900.000000 +PORT +Orientation:"v" +PORT +Proportion:"50" +FIN_BOX +BOX +wx:LayoutLine:toolsLayout +ISEXEC:FALSE +-100.000000:-500.000000:900.000000 +0.000000:-510.000000:900.000000 +PORT +Orientation:"v" +FIN_BOX +BOX +wx:LayoutSplit:resultLayout +ISEXEC:FALSE +0.000000:-530.000000:900.000000 +100.000000:-540.000000:900.000000 +PORT +Orientation:"v" +PORT +Proportion:"60" +FIN_BOX +BOX +wx:LayoutSplit:main +ISEXEC:FALSE +-100.000000:-560.000000:900.000000 +0.000000:-570.000000:900.000000 +PORT +Orientation:"h" +PORT +Proportion:"50" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box22 +ISEXEC:FALSE +-121.180361:45.517015:900.000000 +-21.180361:35.517015:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box23 +ISEXEC:FALSE +27.517386:45.089722:900.000000 +127.517386:35.089722:900.000000 +FIN_BOX +BOX +wx:CommandButton:Box21 +ISEXEC:FALSE +-298.233241:-411.252950:900.000000 +-198.233241:-421.252950:900.000000 +PORT +Label:"Save Image" +FIN_BOX +BOX +wx:FileSelector:Box25 +ISEXEC:FALSE +-294.487933:-60.966632:900.000000 +-194.487933:-70.966632:900.000000 +PORT +OpenSave:"Save" +PORT +Title:"Save Image" +FIN_BOX +BOX +vtk:MetaImageWriter:Box26 +ISEXEC:FALSE +-262.112233:-219.184625:900.000000 +-162.112233:-229.184625:900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box27 +ISEXEC:FALSE +-264.587829:-510.792385:900.000000 +-164.587829:-520.792385:900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box28 +ISEXEC:TRUE +-156.257825:-611.900389:900.000000 +-56.257825:-621.900389:900.000000 +FIN_BOX +CONNECTIONS:44 +CONNECTION +viewer2:Point:transform:CenterPoint +NumberOfControlPoints:0 +CONNECTION +sdrAngleX:Out:transform:AngleX +NumberOfControlPoints:0 +CONNECTION +sdrAngleY:Out:transform:AngleY +NumberOfControlPoints:0 +CONNECTION +sdrAngleZ:Out:transform:AngleZ +NumberOfControlPoints:0 +CONNECTION +sdrScaleX:Out:transform:ScaleX +NumberOfControlPoints:0 +CONNECTION +sdrScaleY:Out:transform:ScaleY +NumberOfControlPoints:0 +CONNECTION +sdrScaleZ:Out:transform:ScaleZ +NumberOfControlPoints:0 +CONNECTION +viewer:Point:reslicer:Origin +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslicer:Transform +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:mult:In1 +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:mult:In2 +NumberOfControlPoints:0 +CONNECTION +sdrAngleX:BoxChange:mult:In3 +NumberOfControlPoints:0 +CONNECTION +sdrAngleY:BoxChange:mult:In4 +NumberOfControlPoints:0 +CONNECTION +sdrAngleZ:BoxChange:mult:In5 +NumberOfControlPoints:0 +CONNECTION +sdrScaleX:BoxChange:mult2:In1 +NumberOfControlPoints:0 +CONNECTION +sdrScaleY:BoxChange:mult2:In2 +NumberOfControlPoints:0 +CONNECTION +sdrScaleZ:BoxChange:mult2:In3 +NumberOfControlPoints:0 +CONNECTION +mult:BoxChange:mult3:In1 +NumberOfControlPoints:0 +CONNECTION +mult2:BoxChange:mult3:In2 +NumberOfControlPoints:0 +CONNECTION +mult3:BoxChange:transform:BoxExecute +NumberOfControlPoints:0 +CONNECTION +mult3:BoxChange:reslicer:BoxExecute +NumberOfControlPoints:0 +CONNECTION +reslicer:Out:viewerResult:In +NumberOfControlPoints:0 +CONNECTION +mult3:BoxChange:viewerResult:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:imagesLayout:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:imagesLayout:Widget2 +NumberOfControlPoints:0 +CONNECTION +sdrAngleX:Widget:toolsLayout:Widget1 +NumberOfControlPoints:0 +CONNECTION +sdrAngleY:Widget:toolsLayout:Widget2 +NumberOfControlPoints:0 +CONNECTION +sdrAngleZ:Widget:toolsLayout:Widget3 +NumberOfControlPoints:0 +CONNECTION +sdrScaleX:Widget:toolsLayout:Widget4 +NumberOfControlPoints:0 +CONNECTION +sdrScaleY:Widget:toolsLayout:Widget5 +NumberOfControlPoints:0 +CONNECTION +sdrScaleZ:Widget:toolsLayout:Widget6 +NumberOfControlPoints:0 +CONNECTION +viewerResult:Widget:resultLayout:Widget1 +NumberOfControlPoints:0 +CONNECTION +toolsLayout:Widget:resultLayout:Widget2 +NumberOfControlPoints:0 +CONNECTION +imagesLayout:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +resultLayout:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box22:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box22:Out:reslicer:In +NumberOfControlPoints:0 +CONNECTION +Box23:Out:viewer:In +NumberOfControlPoints:0 +CONNECTION +reslicer:Out:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box26:Filename +NumberOfControlPoints:0 +CONNECTION +Box21:BoxChange:Box26:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box21:Widget:Box27:Widget1 +NumberOfControlPoints:0 +CONNECTION +main:Widget:Box28:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box27:Widget:Box28:Widget2 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/recalage3D1PointExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/recalage3D1PointExample.bbs new file mode 100755 index 0000000..9c7efbe --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/recalage3D1PointExample.bbs @@ -0,0 +1,161 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/recalage/recalage3D1PointExample.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include wx +include PackRecalage +include std +include creaImageIO +include vtk + +author "Author ??" +description "Description ??" +category "" + +new ViewerNV viewer + set viewer.nTypeView "5" + +new ViewerNV viewer2 + set viewer2.nTypeView "5" + +new Slider sdrAngleX + set sdrAngleX.In "0" + set sdrAngleX.Max "180" + set sdrAngleX.Min "-180" + set sdrAngleX.ReactiveOnTrack "true" + set sdrAngleX.Title "Rotation angle in X Axis" + +new Slider sdrAngleY + set sdrAngleY.In "0" + set sdrAngleY.Max "180" + set sdrAngleY.Min "-180" + set sdrAngleY.ReactiveOnTrack "true" + set sdrAngleY.Title "Rotation angle in Y Axis" + +new Slider sdrAngleZ + set sdrAngleZ.In "0" + set sdrAngleZ.Max "180" + set sdrAngleZ.Min "-180" + set sdrAngleZ.ReactiveOnTrack "true" + set sdrAngleZ.Title "Rotation angle in Z Axis" + +new Slider sdrScaleX + set sdrScaleX.In "100" + set sdrScaleX.Max "300" + set sdrScaleX.Min "10" + set sdrScaleX.ReactiveOnTrack "true" + set sdrScaleX.Title "Scale in X Axis" + +new Slider sdrScaleY + set sdrScaleY.In "100" + set sdrScaleY.Max "300" + set sdrScaleY.Min "10" + set sdrScaleY.ReactiveOnTrack "true" + set sdrScaleY.Title "Scale in Y Axis" + +new Slider sdrScaleZ + set sdrScaleZ.In "100" + set sdrScaleZ.Max "300" + set sdrScaleZ.Min "10" + set sdrScaleZ.ReactiveOnTrack "true" + set sdrScaleZ.Title "Scale in Z Axis" + +new Transform3D1PointBox transform + +new ReSlicerBox reslicer + +new MultipleInputs mult + +new MultipleInputs mult2 + +new MultipleInputs mult3 + +new ViewerNV viewerResult + set viewerResult.nTypeView "5" + +new LayoutSplit imagesLayout + set imagesLayout.Orientation "v" + set imagesLayout.Proportion "50" + +new LayoutLine toolsLayout + set toolsLayout.Orientation "v" + +new LayoutSplit resultLayout + set resultLayout.Orientation "v" + set resultLayout.Proportion "60" + +new LayoutSplit main + set main.Orientation "h" + set main.Proportion "50" + +new ImagesChooserDialogBox Box22 + +new ImagesChooserDialogBox Box23 + +new CommandButton Box21 + set Box21.Label "Save Image" + +new FileSelector Box25 + set Box25.OpenSave "Save" + set Box25.Title "Save Image" + +new MetaImageWriter Box26 + +new LayoutLine Box27 + +new LayoutTab Box28 + + +connect viewer2.Point transform.CenterPoint +connect sdrAngleX.Out transform.AngleX +connect sdrAngleY.Out transform.AngleY +connect sdrAngleZ.Out transform.AngleZ +connect sdrScaleX.Out transform.ScaleX +connect sdrScaleY.Out transform.ScaleY +connect sdrScaleZ.Out transform.ScaleZ +connect viewer.Point reslicer.Origin +connect transform.Out reslicer.Transform +connect viewer.BoxChange mult.In1 +connect viewer2.BoxChange mult.In2 +connect sdrAngleX.BoxChange mult.In3 +connect sdrAngleY.BoxChange mult.In4 +connect sdrAngleZ.BoxChange mult.In5 +connect sdrScaleX.BoxChange mult2.In1 +connect sdrScaleY.BoxChange mult2.In2 +connect sdrScaleZ.BoxChange mult2.In3 +connect mult.BoxChange mult3.In1 +connect mult2.BoxChange mult3.In2 +connect mult3.BoxChange transform.BoxExecute +connect mult3.BoxChange reslicer.BoxExecute +connect reslicer.Out viewerResult.In +connect mult3.BoxChange viewerResult.BoxExecute +connect viewer.Widget imagesLayout.Widget1 +connect viewer2.Widget imagesLayout.Widget2 +connect sdrAngleX.Widget toolsLayout.Widget1 +connect sdrAngleY.Widget toolsLayout.Widget2 +connect sdrAngleZ.Widget toolsLayout.Widget3 +connect sdrScaleX.Widget toolsLayout.Widget4 +connect sdrScaleY.Widget toolsLayout.Widget5 +connect sdrScaleZ.Widget toolsLayout.Widget6 +connect viewerResult.Widget resultLayout.Widget1 +connect toolsLayout.Widget resultLayout.Widget2 +connect imagesLayout.Widget main.Widget1 +connect resultLayout.Widget main.Widget2 +connect Box22.Out viewer2.In +connect Box22.Out reslicer.In +connect Box23.Out viewer.In +connect reslicer.Out Box26.In +connect Box25.Out Box26.Filename +connect Box21.BoxChange Box26.BoxExecute +connect Box21.Widget Box27.Widget1 +connect main.Widget Box28.Widget1 +connect Box27.Widget Box28.Widget2 + +exec Box28 diff --git a/bbtk_package_creaMiniTools/bbs/appli/recalage3D2PointsExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/recalage3D2PointsExample.bbg new file mode 100755 index 0000000..6c5c546 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/recalage3D2PointsExample.bbg @@ -0,0 +1,298 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/recalage/recalage3D2PointsExample.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:21 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +-59.452528:1.458911:900.000000 +40.547472:-8.541089:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints +ISEXEC:FALSE +-67.525930:-47.525930:900.000000 +32.474070:-57.525930:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +93.425401:-77.026329:900.000000 +193.425401:-87.026329:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints2 +ISEXEC:FALSE +43.885109:-118.517154:900.000000 +143.885109:-128.517154:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +PackRecalage:Transform3D2PointsBox:transform +ISEXEC:FALSE +0.000000:-170.000000:900.000000 +100.000000:-180.000000:900.000000 +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslice1 +ISEXEC:FALSE +-100.000000:-200.000000:900.000000 +0.000000:-210.000000:900.000000 +PORT +Origin:"0,0,0" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer3 +ISEXEC:FALSE +-185.351998:-290.451730:900.000000 +-85.351998:-300.451730:900.000000 +PORT +nTypeView:"5 0" +FIN_BOX +BOX +wx:CommandButton:butExec +ISEXEC:FALSE +-157.454123:-93.133242:900.000000 +-57.454123:-103.133242:900.000000 +PORT +Label:"Execute" +FIN_BOX +BOX +wx:Slider:angle +ISEXEC:FALSE +133.393487:-144.616088:900.000000 +233.393487:-154.616088:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +FIN_BOX +BOX +wx:LayoutSplit:tab1 +ISEXEC:FALSE +-100.000000:-320.000000:900.000000 +0.000000:-330.000000:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutSplit:hello +ISEXEC:FALSE +-48.461304:-248.081381:900.000000 +51.538696:-258.081381:900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:LayoutSplit:hello2 +ISEXEC:FALSE +20.403859:-212.134039:900.000000 +120.403859:-222.134039:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:tab2 +ISEXEC:FALSE +0.000000:-410.000000:900.000000 +100.000000:-420.000000:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutTab:main +ISEXEC:FALSE +-100.000000:-440.000000:900.000000 +0.000000:-450.000000:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:CommandButton:Box18 +ISEXEC:FALSE +-383.593227:-268.910073:900.000000 +-283.593227:-278.910073:900.000000 +PORT +Label:"Save" +FIN_BOX +BOX +vtk:MetaImageWriter:Box19 +ISEXEC:FALSE +-299.649005:-332.029517:900.000000 +-199.649005:-342.029517:900.000000 +FIN_BOX +BOX +wx:FileSelector:Box20 +ISEXEC:FALSE +-288.135282:-235.072974:900.000000 +-188.135282:-245.072974:900.000000 +PORT +OpenSave:"Save" +PORT +Title:"Save Image" +FIN_BOX +BOX +wx:LayoutTab:Box21 +ISEXEC:TRUE +-172.810249:-499.103601:900.000000 +-72.810249:-509.103601:900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box22 +ISEXEC:FALSE +-207.517231:-421.189967:900.000000 +-107.517231:-431.189967:900.000000 +PORT +WinTitle:"Options" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box23 +ISEXEC:FALSE +-118.405454:61.950533:900.000000 +-18.405454:51.950533:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box24 +ISEXEC:FALSE +104.916225:25.979256:900.000000 +204.916225:15.979256:900.000000 +FIN_BOX +CONNECTIONS:41 +CONNECTION +viewer:Renderer1:showNpoints:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer:Point:showNpoints:In +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:showNpoints:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewer2:Renderer1:showNpoints2:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer2:Point:showNpoints2:In +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:showNpoints2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsX:transform:InX1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsX:transform:InX2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsY:transform:InY1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsY:transform:InY2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsZ:transform:InZ1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsZ:transform:InZ2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstLabels:transform:Labels1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstLabels:transform:Labels2 +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslice1:Transform +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:viewer3:In +NumberOfControlPoints:0 +CONNECTION +angle:Out:transform:SecondAngle +NumberOfControlPoints:0 +CONNECTION +showNpoints:Widget:hello:Widget1 +NumberOfControlPoints:0 +CONNECTION +butExec:Widget:hello2:Widget1 +NumberOfControlPoints:0 +CONNECTION +angle:Widget:hello2:Widget2 +NumberOfControlPoints:0 +CONNECTION +hello2:Widget:hello:Widget2 +NumberOfControlPoints:0 +CONNECTION +hello:Widget:tab1:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:tab1:Widget2 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:Widget:tab2:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:tab2:Widget2 +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:transform:BoxExecute +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:reslice1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:viewer3:BoxExecute +NumberOfControlPoints:0 +CONNECTION +tab1:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +tab2:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box18:BoxChange:Box19:BoxExecute +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:Box19:In +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box19:Filename +NumberOfControlPoints:0 +CONNECTION +main:Widget:Box21:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box22:Widget:Box21:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box18:Widget:Box22:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box23:Out:viewer:In +NumberOfControlPoints:0 +CONNECTION +Box23:Out:showNpoints:Image +NumberOfControlPoints:0 +CONNECTION +Box24:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box24:Out:showNpoints2:Image +NumberOfControlPoints:0 +CONNECTION +Box24:Out:reslice1:In +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/recalage3D2PointsExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/recalage3D2PointsExample.bbs new file mode 100755 index 0000000..17cc895 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/recalage3D2PointsExample.bbs @@ -0,0 +1,124 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/recalage/recalage3D2PointsExample.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include PackRecalage +include wx +include vtk +include creaImageIO + +author "Author ??" +description "Description ??" +category "" + +new ViewerNV viewer + set viewer.nTypeView "5" + +new ShowNPoints showNpoints + set showNpoints.Radio "10" + +new ViewerNV viewer2 + set viewer2.nTypeView "5" + +new ShowNPoints showNpoints2 + set showNpoints2.Radio "10" + +new Transform3D2PointsBox transform + +new ReSlicerBox reslice1 + set reslice1.Origin "0,0,0" + +new ViewerNV viewer3 + set viewer3.nTypeView "5 0" + +new CommandButton butExec + set butExec.Label "Execute" + +new Slider angle + set angle.In "0" + set angle.Max "180" + set angle.Min "-180" + +new LayoutSplit tab1 + set tab1.Orientation "H" + +new LayoutSplit hello + set hello.Orientation "V" + +new LayoutSplit hello2 + +new LayoutSplit tab2 + set tab2.Orientation "H" + +new LayoutTab main + set main.Orientation "H" + +new CommandButton Box18 + set Box18.Label "Save" + +new MetaImageWriter Box19 + +new FileSelector Box20 + set Box20.OpenSave "Save" + set Box20.Title "Save Image" + +new LayoutTab Box21 + +new LayoutLine Box22 + set Box22.WinTitle "Options" + +new ImagesChooserDialogBox Box23 + +new ImagesChooserDialogBox Box24 + + +connect viewer.Renderer1 showNpoints.Renderer +connect viewer.Point showNpoints.In +connect viewer.BoxChange showNpoints.BoxExecute +connect viewer2.Renderer1 showNpoints2.Renderer +connect viewer2.Point showNpoints2.In +connect viewer2.BoxChange showNpoints2.BoxExecute +connect showNpoints.lstPointsX transform.InX1 +connect showNpoints2.lstPointsX transform.InX2 +connect showNpoints.lstPointsY transform.InY1 +connect showNpoints2.lstPointsY transform.InY2 +connect showNpoints.lstPointsZ transform.InZ1 +connect showNpoints2.lstPointsZ transform.InZ2 +connect showNpoints.lstLabels transform.Labels1 +connect showNpoints2.lstLabels transform.Labels2 +connect transform.Out reslice1.Transform +connect reslice1.Out viewer3.In +connect angle.Out transform.SecondAngle +connect showNpoints.Widget hello.Widget1 +connect butExec.Widget hello2.Widget1 +connect angle.Widget hello2.Widget2 +connect hello2.Widget hello.Widget2 +connect hello.Widget tab1.Widget1 +connect viewer.Widget tab1.Widget2 +connect showNpoints2.Widget tab2.Widget1 +connect viewer2.Widget tab2.Widget2 +connect butExec.BoxChange transform.BoxExecute +connect butExec.BoxChange reslice1.BoxExecute +connect butExec.BoxChange viewer3.BoxExecute +connect tab1.Widget main.Widget1 +connect tab2.Widget main.Widget2 +connect Box18.BoxChange Box19.BoxExecute +connect reslice1.Out Box19.In +connect Box20.Out Box19.Filename +connect main.Widget Box21.Widget1 +connect Box22.Widget Box21.Widget2 +connect Box18.Widget Box22.Widget1 +connect Box23.Out viewer.In +connect Box23.Out showNpoints.Image +connect Box24.Out viewer2.In +connect Box24.Out showNpoints2.Image +connect Box24.Out reslice1.In + +exec Box21 diff --git a/bbtk_package_creaMiniTools/bbs/appli/recalage3D3PointsExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/recalage3D3PointsExample.bbg new file mode 100755 index 0000000..f086c4f --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/recalage3D3PointsExample.bbg @@ -0,0 +1,271 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/recalage/recalage3D3PointsExample.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:19 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +-138.772764:-40.131074:900.000000 +-38.772764:-50.131074:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints +ISEXEC:FALSE +-174.543323:-108.106992:900.000000 +-74.543323:-118.106992:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +148.379279:-41.719270:900.000000 +248.379279:-51.719270:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints2 +ISEXEC:FALSE +55.904141:-95.886989:900.000000 +155.904141:-105.886989:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +PackRecalage:Transform3D3PointsBox:transform +ISEXEC:FALSE +13.787455:-187.070183:900.000000 +113.787455:-197.070183:900.000000 +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslice1 +ISEXEC:FALSE +-87.525636:-235.453456:900.000000 +12.474364:-245.453456:900.000000 +PORT +Origin:"0,0,0" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer3 +ISEXEC:FALSE +-72.876548:-302.220003:900.000000 +27.123452:-312.220003:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +wx:CommandButton:butExec +ISEXEC:FALSE +-218.178187:-141.165268:900.000000 +-118.178187:-151.165268:900.000000 +PORT +Label:"Execute" +FIN_BOX +BOX +wx:LayoutSplit:tab1 +ISEXEC:FALSE +5.908909:-387.825277:900.000000 +105.908909:-397.825277:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutSplit:hello +ISEXEC:FALSE +-164.341457:-346.918365:900.000000 +-64.341457:-356.918365:900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:LayoutSplit:tab2 +ISEXEC:FALSE +181.206553:-315.203089:900.000000 +281.206553:-325.203089:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutTab:main +ISEXEC:FALSE +103.529099:-421.362365:900.000000 +203.529099:-431.362365:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutLine:Box16 +ISEXEC:FALSE +-212.125385:-411.608381:900.000000 +-112.125385:-421.608381:900.000000 +PORT +WinTitle:Options +FIN_BOX +BOX +wx:LayoutTab:Box17 +ISEXEC:TRUE +-143.444297:-495.872311:900.000000 +-43.444297:-505.872311:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box18 +ISEXEC:FALSE +-185.320987:-0.349286:900.000000 +-85.320987:-10.349286:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box19 +ISEXEC:FALSE +38.916251:4.191678:900.000000 +138.916251:-5.808322:900.000000 +FIN_BOX +BOX +vtk:MetaImageWriter:Box20 +ISEXEC:FALSE +-263.293337:-323.550990:900.000000 +-163.293337:-333.550990:900.000000 +FIN_BOX +BOX +wx:FileSelector:Box21 +ISEXEC:FALSE +-279.377920:-249.662434:900.000000 +-179.377920:-259.662434:900.000000 +PORT +OpenSave:"Save" +PORT +Title:"Save Image" +FIN_BOX +BOX +wx:CommandButton:Box22 +ISEXEC:FALSE +-369.351059:-290.376536:900.000000 +-269.351059:-300.376536:900.000000 +PORT +Label:"Save Image" +FIN_BOX +CONNECTIONS:38 +CONNECTION +viewer:Renderer1:showNpoints:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer:Point:showNpoints:In +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:showNpoints:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewer2:Renderer1:showNpoints2:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer2:Point:showNpoints2:In +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:showNpoints2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsX:transform:InX1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsX:transform:InX2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsY:transform:InY1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsY:transform:InY2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsZ:transform:InZ1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsZ:transform:InZ2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstLabels:transform:Labels1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstLabels:transform:Labels2 +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslice1:Transform +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:viewer3:In +NumberOfControlPoints:0 +CONNECTION +showNpoints:Widget:hello:Widget1 +NumberOfControlPoints:0 +CONNECTION +butExec:Widget:hello:Widget2 +NumberOfControlPoints:0 +CONNECTION +hello:Widget:tab1:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:tab1:Widget2 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:Widget:tab2:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:tab2:Widget2 +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:transform:BoxExecute +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:reslice1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:viewer3:BoxExecute +NumberOfControlPoints:0 +CONNECTION +tab1:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +tab2:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +main:Widget:Box17:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box17:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:showNpoints:Image +NumberOfControlPoints:0 +CONNECTION +Box18:Out:viewer:In +NumberOfControlPoints:0 +CONNECTION +Box19:Out:showNpoints2:Image +NumberOfControlPoints:0 +CONNECTION +Box19:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box19:Out:reslice1:In +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:Box20:In +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box20:Filename +NumberOfControlPoints:0 +CONNECTION +Box22:BoxChange:Box20:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box22:Widget:Box16:Widget1 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/recalage3D3PointsExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/recalage3D3PointsExample.bbs new file mode 100755 index 0000000..20a586b --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/recalage3D3PointsExample.bbs @@ -0,0 +1,114 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/recalage/recalage3D3PointsExample.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include PackRecalage +include wx +include creaImageIO +include vtk + +author "Author ??" +description "Description ??" +category "" + +new ViewerNV viewer + set viewer.nTypeView "5" + +new ShowNPoints showNpoints + set showNpoints.Radio "10" + +new ViewerNV viewer2 + set viewer2.nTypeView "5" + +new ShowNPoints showNpoints2 + set showNpoints2.Radio "10" + +new Transform3D3PointsBox transform + +new ReSlicerBox reslice1 + set reslice1.Origin "0,0,0" + +new ViewerNV viewer3 + set viewer3.nTypeView "5" + +new CommandButton butExec + set butExec.Label "Execute" + +new LayoutSplit tab1 + set tab1.Orientation "H" + +new LayoutSplit hello + set hello.Orientation "V" + +new LayoutSplit tab2 + set tab2.Orientation "H" + +new LayoutTab main + set main.Orientation "H" + +new LayoutLine Box16 + set Box16.WinTitle Options + +new LayoutTab Box17 + +new ImagesChooserDialogBox Box18 + +new ImagesChooserDialogBox Box19 + +new MetaImageWriter Box20 + +new FileSelector Box21 + set Box21.OpenSave "Save" + set Box21.Title "Save Image" + +new CommandButton Box22 + set Box22.Label "Save Image" + + +connect viewer.Renderer1 showNpoints.Renderer +connect viewer.Point showNpoints.In +connect viewer.BoxChange showNpoints.BoxExecute +connect viewer2.Renderer1 showNpoints2.Renderer +connect viewer2.Point showNpoints2.In +connect viewer2.BoxChange showNpoints2.BoxExecute +connect showNpoints.lstPointsX transform.InX1 +connect showNpoints2.lstPointsX transform.InX2 +connect showNpoints.lstPointsY transform.InY1 +connect showNpoints2.lstPointsY transform.InY2 +connect showNpoints.lstPointsZ transform.InZ1 +connect showNpoints2.lstPointsZ transform.InZ2 +connect showNpoints.lstLabels transform.Labels1 +connect showNpoints2.lstLabels transform.Labels2 +connect transform.Out reslice1.Transform +connect reslice1.Out viewer3.In +connect showNpoints.Widget hello.Widget1 +connect butExec.Widget hello.Widget2 +connect hello.Widget tab1.Widget1 +connect viewer.Widget tab1.Widget2 +connect showNpoints2.Widget tab2.Widget1 +connect viewer2.Widget tab2.Widget2 +connect butExec.BoxChange transform.BoxExecute +connect butExec.BoxChange reslice1.BoxExecute +connect butExec.BoxChange viewer3.BoxExecute +connect tab1.Widget main.Widget1 +connect tab2.Widget main.Widget2 +connect main.Widget Box17.Widget1 +connect Box16.Widget Box17.Widget2 +connect Box18.Out showNpoints.Image +connect Box18.Out viewer.In +connect Box19.Out showNpoints2.Image +connect Box19.Out viewer2.In +connect Box19.Out reslice1.In +connect reslice1.Out Box20.In +connect Box21.Out Box20.Filename +connect Box22.BoxChange Box20.BoxExecute +connect Box22.Widget Box16.Widget1 + +exec Box17 diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbg b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbg new file mode 100755 index 0000000..7d5f427 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbg @@ -0,0 +1,108 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept0.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:9 +BOX +creaImageIO:ImagesChooserDialogBox:Box00 +ISEXEC:FALSE +-72.843408:176.342921:900.000000 +-1.668408:166.342921:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +-184.070991:90.448195:900.000000 +-123.430991:80.448195:900.000000 +PORT +WinTitle:"View" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +-13.781185:28.406117:900.000000 +46.858815:18.406117:900.000000 +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box03 +ISEXEC:FALSE +-4.218730:107.155746:900.000000 +66.956270:97.155746:900.000000 +PORT +Type:0 +FIN_BOX +BOX +wx:LayoutTab:Box04 +ISEXEC:FALSE +-137.052530:-32.197745:900.000000 +-79.492530:-42.197745:900.000000 +PORT +WinTitle:"View" +FIN_BOX +BOX +wx:LayoutTab:Box05 +ISEXEC:FALSE +-14.906180:-27.843619:900.000000 +42.653820:-37.843619:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesComplexBox:Box06 +ISEXEC:FALSE +-102.862997:84.348209:900.000000 +-31.687997:74.348209:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesComplexBox:Box07 +ISEXEC:FALSE +69.148136:33.159909:900.000000 +140.323136:23.159909:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box08 +ISEXEC:TRUE +-60.436659:-88.124080:900.000000 +-14.861659:-98.124080:900.000000 +PORT +WinTitle:"RescaleSlopeIntercept 1" +FIN_BOX +CONNECTIONS:11 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box04:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box05:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box06:in +NumberOfControlPoints:0 +CONNECTION +Box06:widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box07:in +NumberOfControlPoints:0 +CONNECTION +Box07:widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box08:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box08:Widget2 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs new file mode 100755 index 0000000..a5aacc8 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs @@ -0,0 +1,56 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept0.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaImageIO +include creaMaracasVisu +include vtk +include wx +include minitools + +author "Author ??" +description "Description ??" +category "" + +new ImagesChooserDialogBox Box00 + +new ViewerNV Box01 + set Box01.WinTitle "View" + +new ViewerNV Box02 + +new RescaleSlopeIntercept Box03 + set Box03.Type 0 + +new LayoutTab Box04 + set Box04.WinTitle "View" + +new LayoutTab Box05 + +new ImagePropertiesComplexBox Box06 + +new ImagePropertiesComplexBox Box07 + +new LayoutSplit Box08 + set Box08.WinTitle "RescaleSlopeIntercept 1" + + +connect Box00.Out Box01.In +connect Box00.Out Box03.In +connect Box03.Out Box02.In +connect Box01.Widget Box04.Widget1 +connect Box02.Widget Box05.Widget1 +connect Box00.Out Box06.in +connect Box06.widget Box04.Widget2 +connect Box03.Out Box07.in +connect Box07.widget Box05.Widget2 +connect Box04.Widget Box08.Widget1 +connect Box05.Widget Box08.Widget2 + +exec Box08 diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept1.bbg b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept1.bbg new file mode 100755 index 0000000..0f8ca38 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept1.bbg @@ -0,0 +1,108 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept1.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:9 +BOX +creaImageIO:ImagesChooserDialogBox:Box00 +ISEXEC:FALSE +-72.843408:176.342921:900.000000 +-1.668408:166.342921:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +-184.070991:90.448195:900.000000 +-123.430991:80.448195:900.000000 +PORT +WinTitle:"View" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +-13.781185:28.406117:900.000000 +46.858815:18.406117:900.000000 +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box03 +ISEXEC:FALSE +-4.218730:107.155746:900.000000 +66.956270:97.155746:900.000000 +PORT +Type:1 +FIN_BOX +BOX +wx:LayoutTab:Box04 +ISEXEC:FALSE +-137.052530:-32.197745:900.000000 +-79.492530:-42.197745:900.000000 +PORT +WinTitle:"View" +FIN_BOX +BOX +wx:LayoutTab:Box05 +ISEXEC:FALSE +-14.906180:-27.843619:900.000000 +42.653820:-37.843619:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesComplexBox:Box06 +ISEXEC:FALSE +-102.862997:84.348209:900.000000 +-31.687997:74.348209:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesComplexBox:Box07 +ISEXEC:FALSE +69.148136:33.159909:900.000000 +140.323136:23.159909:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box08 +ISEXEC:TRUE +-60.436659:-88.124080:900.000000 +-14.861659:-98.124080:900.000000 +PORT +WinTitle:"RescaleSlopeIntercept 1" +FIN_BOX +CONNECTIONS:11 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box04:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box05:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box06:in +NumberOfControlPoints:0 +CONNECTION +Box06:widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box07:in +NumberOfControlPoints:0 +CONNECTION +Box07:widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box08:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box08:Widget2 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept1.bbs b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept1.bbs new file mode 100755 index 0000000..a7fe81f --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept1.bbs @@ -0,0 +1,56 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept1.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaImageIO +include creaMaracasVisu +include vtk +include wx +include minitools + +author "Author ??" +description "Description ??" +category "" + +new ImagesChooserDialogBox Box00 + +new ViewerNV Box01 + set Box01.WinTitle "View" + +new ViewerNV Box02 + +new RescaleSlopeIntercept Box03 + set Box03.Type 1 + +new LayoutTab Box04 + set Box04.WinTitle "View" + +new LayoutTab Box05 + +new ImagePropertiesComplexBox Box06 + +new ImagePropertiesComplexBox Box07 + +new LayoutSplit Box08 + set Box08.WinTitle "RescaleSlopeIntercept 1" + + +connect Box00.Out Box01.In +connect Box00.Out Box03.In +connect Box03.Out Box02.In +connect Box01.Widget Box04.Widget1 +connect Box02.Widget Box05.Widget1 +connect Box00.Out Box06.in +connect Box06.widget Box04.Widget2 +connect Box03.Out Box07.in +connect Box07.widget Box05.Widget2 +connect Box04.Widget Box08.Widget1 +connect Box05.Widget Box08.Widget2 + +exec Box08 diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept2.bbg b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept2.bbg new file mode 100755 index 0000000..090bc1e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept2.bbg @@ -0,0 +1,108 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept2.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:9 +BOX +creaImageIO:ImagesChooserDialogBox:Box00 +ISEXEC:FALSE +-72.843408:176.342921:900.000000 +-1.668408:166.342921:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +-184.070991:90.448195:900.000000 +-123.430991:80.448195:900.000000 +PORT +WinTitle:"View" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +-13.781185:28.406117:900.000000 +46.858815:18.406117:900.000000 +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box03 +ISEXEC:FALSE +-4.218730:107.155746:900.000000 +66.956270:97.155746:900.000000 +PORT +Type:2 +FIN_BOX +BOX +wx:LayoutTab:Box04 +ISEXEC:FALSE +-137.052530:-32.197745:900.000000 +-79.492530:-42.197745:900.000000 +PORT +WinTitle:"View" +FIN_BOX +BOX +wx:LayoutTab:Box05 +ISEXEC:FALSE +-14.906180:-27.843619:900.000000 +42.653820:-37.843619:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesComplexBox:Box06 +ISEXEC:FALSE +-102.862997:84.348209:900.000000 +-31.687997:74.348209:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesComplexBox:Box07 +ISEXEC:FALSE +69.148136:33.159909:900.000000 +140.323136:23.159909:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box08 +ISEXEC:TRUE +-60.436659:-88.124080:900.000000 +-14.861659:-98.124080:900.000000 +PORT +WinTitle:"RescaleSlopeIntercept 1" +FIN_BOX +CONNECTIONS:11 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box04:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box05:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box06:in +NumberOfControlPoints:0 +CONNECTION +Box06:widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box07:in +NumberOfControlPoints:0 +CONNECTION +Box07:widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box08:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box08:Widget2 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept2.bbs b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept2.bbs new file mode 100755 index 0000000..e9309d7 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept2.bbs @@ -0,0 +1,56 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept2.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaImageIO +include creaMaracasVisu +include vtk +include wx +include minitools + +author "Author ??" +description "Description ??" +category "" + +new ImagesChooserDialogBox Box00 + +new ViewerNV Box01 + set Box01.WinTitle "View" + +new ViewerNV Box02 + +new RescaleSlopeIntercept Box03 + set Box03.Type 2 + +new LayoutTab Box04 + set Box04.WinTitle "View" + +new LayoutTab Box05 + +new ImagePropertiesComplexBox Box06 + +new ImagePropertiesComplexBox Box07 + +new LayoutSplit Box08 + set Box08.WinTitle "RescaleSlopeIntercept 1" + + +connect Box00.Out Box01.In +connect Box00.Out Box03.In +connect Box03.Out Box02.In +connect Box01.Widget Box04.Widget1 +connect Box02.Widget Box05.Widget1 +connect Box00.Out Box06.in +connect Box06.widget Box04.Widget2 +connect Box03.Out Box07.in +connect Box07.widget Box05.Widget2 +connect Box04.Widget Box08.Widget1 +connect Box05.Widget Box08.Widget2 + +exec Box08 diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept3.bbg b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept3.bbg new file mode 100755 index 0000000..cda9d7e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept3.bbg @@ -0,0 +1,108 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept3.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:9 +BOX +creaImageIO:ImagesChooserDialogBox:Box00 +ISEXEC:FALSE +-72.843408:176.342921:900.000000 +-1.668408:166.342921:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +-184.070991:90.448195:900.000000 +-123.430991:80.448195:900.000000 +PORT +WinTitle:"View" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +-13.781185:28.406117:900.000000 +46.858815:18.406117:900.000000 +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box03 +ISEXEC:FALSE +-4.218730:107.155746:900.000000 +66.956270:97.155746:900.000000 +PORT +Type:3 +FIN_BOX +BOX +wx:LayoutTab:Box04 +ISEXEC:FALSE +-137.052530:-32.197745:900.000000 +-79.492530:-42.197745:900.000000 +PORT +WinTitle:"View" +FIN_BOX +BOX +wx:LayoutTab:Box05 +ISEXEC:FALSE +-14.906180:-27.843619:900.000000 +42.653820:-37.843619:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesComplexBox:Box06 +ISEXEC:FALSE +-102.862997:84.348209:900.000000 +-31.687997:74.348209:900.000000 +FIN_BOX +BOX +minitools:ImagePropertiesComplexBox:Box07 +ISEXEC:FALSE +69.148136:33.159909:900.000000 +140.323136:23.159909:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box08 +ISEXEC:TRUE +-60.436659:-88.124080:900.000000 +-14.861659:-98.124080:900.000000 +PORT +WinTitle:"RescaleSlopeIntercept 1" +FIN_BOX +CONNECTIONS:11 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box04:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box05:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box06:in +NumberOfControlPoints:0 +CONNECTION +Box06:widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box07:in +NumberOfControlPoints:0 +CONNECTION +Box07:widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box08:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box08:Widget2 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept3.bbs b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept3.bbs new file mode 100755 index 0000000..6b37d26 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept3.bbs @@ -0,0 +1,56 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept3.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaImageIO +include creaMaracasVisu +include vtk +include wx +include minitools + +author "Author ??" +description "Description ??" +category "" + +new ImagesChooserDialogBox Box00 + +new ViewerNV Box01 + set Box01.WinTitle "View" + +new ViewerNV Box02 + +new RescaleSlopeIntercept Box03 + set Box03.Type 3 + +new LayoutTab Box04 + set Box04.WinTitle "View" + +new LayoutTab Box05 + +new ImagePropertiesComplexBox Box06 + +new ImagePropertiesComplexBox Box07 + +new LayoutSplit Box08 + set Box08.WinTitle "RescaleSlopeIntercept 1" + + +connect Box00.Out Box01.In +connect Box00.Out Box03.In +connect Box03.Out Box02.In +connect Box01.Widget Box04.Widget1 +connect Box02.Widget Box05.Widget1 +connect Box00.Out Box06.in +connect Box06.widget Box04.Widget2 +connect Box03.Out Box07.in +connect Box07.widget Box05.Widget2 +connect Box04.Widget Box08.Widget1 +connect Box05.Widget Box08.Widget2 + +exec Box08 diff --git a/bbtk_package_creaMiniTools/bbs/appli/showNPoints.bbg b/bbtk_package_creaMiniTools/bbs/appli/showNPoints.bbg new file mode 100644 index 0000000..5bd3400 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/showNPoints.bbg @@ -0,0 +1,66 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/showNPoints.bbg +# ---------------------------------- + +APP_START +CATEGORY:demo +DESCRIPTION:Show N Points +AUTHOR:info-dev@creatis.insa-lyon.fr +COMPLEXBOX:FALSE +BOXES:4 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +-61.481252:42.103253:900.000000 +-0.841252:32.103253:900.000000 +PORT +nTypeView:"5 1 2 0" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints +ISEXEC:FALSE +-69.271834:-5.029305:900.000000 +-23.696834:-15.029305:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +wx:LayoutSplit:main +ISEXEC:TRUE +-47.571977:-41.745471:900.000000 +-1.996977:-51.745471:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box04 +ISEXEC:FALSE +-22.721777:75.650150:900.000000 +48.453223:65.650150:900.000000 +FIN_BOX +CONNECTIONS:7 +CONNECTION +viewer:Renderer1:showNpoints:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer:Point:showNpoints:In +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:showNpoints:BoxExecute +NumberOfControlPoints:0 +CONNECTION +showNpoints:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:main:Widget2 +NumberOfControlPoints:1 +1.871205:-8.286766:900.000000 +CONNECTION +Box04:Out:showNpoints:Image +NumberOfControlPoints:1 +11.761861:26.998817:900.000000 +CONNECTION +Box04:Out:viewer:In +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/showNPoints.bbs b/bbtk_package_creaMiniTools/bbs/appli/showNPoints.bbs new file mode 100644 index 0000000..bf80008 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/showNPoints.bbs @@ -0,0 +1,39 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/showNPoints.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include wx +include creaImageIO + +author "info-dev@creatis.insa-lyon.fr" +description "Show N Points" +category "demo" + +new ViewerNV viewer + set viewer.nTypeView "5 1 2 0" + +new ShowNPoints showNpoints + set showNpoints.Radio "10" + +new LayoutSplit main + set main.Orientation "H" + +new ImagesChooserDialogBox Box04 + + +connect viewer.Renderer1 showNpoints.Renderer +connect viewer.Point showNpoints.In +connect viewer.BoxChange showNpoints.BoxExecute +connect showNpoints.Widget main.Widget1 +connect viewer.Widget main.Widget2 +connect Box04.Out showNpoints.Image +connect Box04.Out viewer.In + +exec main diff --git a/bbtk_package_creaMiniTools/bbs/appli/synchro2ImageExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/synchro2ImageExample.bbg new file mode 100755 index 0000000..88bc185 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/synchro2ImageExample.bbg @@ -0,0 +1,180 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/synchro2ImageExample.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:14 +BOX +wxvtk:Viewer2D:viewer1 +ISEXEC:FALSE +-139.984478:-62.923412:900.000000 +-94.409478:-72.923412:900.000000 +FIN_BOX +BOX +wxvtk:Viewer2D:viewer2 +ISEXEC:FALSE +-65.834276:-62.866695:900.000000 +-20.259276:-72.866695:900.000000 +FIN_BOX +BOX +wx:Slider:slider +ISEXEC:FALSE +-81.528763:-21.842203:900.000000 +-30.128763:-31.842203:900.000000 +PORT +ReactiveOnTrack:"1" +PORT +Title:"Slice number" +FIN_BOX +BOX +wx:LayoutSplit:layout +ISEXEC:FALSE +-94.996028:-135.045794:900.000000 +-49.421028:-145.045794:900.000000 +PORT +Proportion:"10" +FIN_BOX +BOX +wx:LayoutLine:layout_line +ISEXEC:FALSE +-69.330621:-110.427022:900.000000 +-11.770621:-120.427022:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +itk:ImageProperties:imProperties +ISEXEC:FALSE +-124.648677:40.818130:900.000000 +-53.473677:30.818130:900.000000 +FIN_BOX +BOX +std:GetVectorIntElement:imSize +ISEXEC:FALSE +-114.427215:20.922639:900.000000 +-43.252215:10.922639:900.000000 +PORT +I:"2" +FIN_BOX +BOX +std:Add:add +ISEXEC:FALSE +-67.512893:-2.468393:900.000000 +-34.737893:-12.468393:900.000000 +PORT +In1:"-1" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box12 +ISEXEC:FALSE +-97.450411:69.064048:900.000000 +-26.275411:59.064048:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box13 +ISEXEC:FALSE +-0.581579:-15.767204:900.000000 +70.593421:-25.767204:900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box10 +ISEXEC:TRUE +-57.802018:-161.263430:900.000000 +-0.242018:-171.263430:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box11 +ISEXEC:FALSE +22.366571:-53.774074:900.000000 +83.006571:-63.774074:900.000000 +PORT +nTypeView:"5 0" +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box15 +ISEXEC:FALSE +8.642988:-99.446127:900.000000 +79.817988:-109.446127:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box16 +ISEXEC:FALSE +-1.327924:-132.185077:900.000000 +44.247076:-142.185077:900.000000 +PORT +Orientation:H +FIN_BOX +CONNECTIONS:21 +CONNECTION +slider:Out:viewer1:Slice +NumberOfControlPoints:0 +CONNECTION +slider:BoxChange:viewer1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +slider:Out:viewer2:Slice +NumberOfControlPoints:0 +CONNECTION +slider:BoxChange:viewer2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +slider:Widget:layout:Widget1 +NumberOfControlPoints:0 +CONNECTION +layout_line:Widget:layout:Widget2 +NumberOfControlPoints:0 +CONNECTION +viewer1:Widget:layout_line:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:layout_line:Widget2 +NumberOfControlPoints:0 +CONNECTION +imProperties:Size:imSize:In +NumberOfControlPoints:0 +CONNECTION +imSize:Out:add:In2 +NumberOfControlPoints:0 +CONNECTION +add:Out:slider:Max +NumberOfControlPoints:0 +CONNECTION +Box12:Out:imProperties:In +NumberOfControlPoints:0 +CONNECTION +Box12:Out:viewer1:In +NumberOfControlPoints:1 +-141.478653:32.618378:900.000000 +CONNECTION +Box13:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +layout:Widget:Box10:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box10:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box16:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box16:Widget2 +NumberOfControlPoints:1 +88.260048:-112.636635:900.000000 +CONNECTION +Box13:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box11:wxVtkBaseView2:Box15:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box15:In +NumberOfControlPoints:2 +-64.275078:47.836388:900.000000 +-40.148964:28.535494:900.000000 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/synchro2ImageExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/synchro2ImageExample.bbs new file mode 100755 index 0000000..14f8fff --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/synchro2ImageExample.bbs @@ -0,0 +1,81 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/appli/synchro2ImageExample.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include wxvtk +include wx +include itk +include std +include creaImageIO +include creaMaracasVisu + +author "Author ??" +description "Description ??" +category "" + +new Viewer2D viewer1 + +new Viewer2D viewer2 + +new Slider slider + set slider.ReactiveOnTrack "1" + set slider.Title "Slice number" + +new LayoutSplit layout + set layout.Proportion "10" + +new LayoutLine layout_line + set layout_line.Orientation "H" + +new ImageProperties imProperties + +new GetVectorIntElement imSize + set imSize.I "2" + +new Add add + set add.In1 "-1" + +new ImagesChooserDialogBox Box12 + +new ImagesChooserDialogBox Box13 + +new LayoutTab Box10 + +new ViewerNV Box11 + set Box11.nTypeView "5 0" + +new ColorLayerImageView Box15 + +new LayoutSplit Box16 + set Box16.Orientation H + + +connect slider.Out viewer1.Slice +connect slider.BoxChange viewer1.BoxExecute +connect slider.Out viewer2.Slice +connect slider.BoxChange viewer2.BoxExecute +connect slider.Widget layout.Widget1 +connect layout_line.Widget layout.Widget2 +connect viewer1.Widget layout_line.Widget1 +connect viewer2.Widget layout_line.Widget2 +connect imProperties.Size imSize.In +connect imSize.Out add.In2 +connect add.Out slider.Max +connect Box12.Out imProperties.In +connect Box12.Out viewer1.In +connect Box13.Out viewer2.In +connect layout.Widget Box10.Widget1 +connect Box16.Widget Box10.Widget2 +connect Box15.Widget Box16.Widget1 +connect Box11.Widget Box16.Widget2 +connect Box13.Out Box11.In +connect Box11.wxVtkBaseView2 Box15.WxVtkBaseView +connect Box12.Out Box15.In + +exec Box10 diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg new file mode 100755 index 0000000..2c25341 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg @@ -0,0 +1,28 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/viewers/viewerNVExample.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +BOXES:2 +BOX +creaImageIO:ImagesChooserDialogBox:Box00 +ISEXEC:FALSE +-50.710900:92.180095:900.000000 +49.289100:82.180095:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:TRUE +-50.710900:35.308057:900.000000 +49.289100:25.308057:900.000000 +FIN_BOX +CONNECTIONS:1 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs new file mode 100755 index 0000000..056ce49 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs @@ -0,0 +1,25 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/viewers/viewerNVExample.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaImageIO +include creaMaracasVisu + +author "Author ??" +description "Description ??" +category "" + +new ImagesChooserDialogBox Box00 + +new ViewerNV Box01 + + +connect Box00.Out Box01.In + +exec Box01 diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg new file mode 100644 index 0000000..153bff5 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg @@ -0,0 +1,167 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/ConnectivityWidget.bbg +# ---------------------------------- + +APP_START +CATEGORY:filter widget +DESCRIPTION:Threshod binary widget +AUTHOR:info-team at creatis.insa-lyon.fr +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ConnectivityWidget +PACKAGENAME:minitools +COMPLEXINPUTS:1 +COMPLEX_PORT +In +-15.873371:90.453971:900.000000 +FIN_COMPLEX_PORT +COMPLEXOUTPUTS:1 +COMPLEX_PORT +Widget +39.591483:-155.920596:900.000000 +FIN_COMPLEX_PORT +BOXES:11 +BOX +wx:CommandButton:Box00 +ISEXEC:FALSE +-8.715847:-17.108855:900.000000 +36.859153:-27.108855:900.000000 +PORT +Label:Run +FIN_BOX +BOX +wx:LayoutLine:Box01 +ISEXEC:FALSE +-52.784364:-43.779299:900.000000 +4.775636:-53.779299:900.000000 +PORT +WinTitle:"Parameters" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box03 +ISEXEC:FALSE +20.876198:-43.205783:900.000000 +81.516198:-53.205783:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +wx:LayoutSplit:Box05 +ISEXEC:FALSE +37.208770:-127.837901:900.000000 +82.783770:-137.837901:900.000000 +PORT +WinTitle:Connectivity +FIN_BOX +BOX +vtk:SegmentationConnectivity:Box07 +ISEXEC:FALSE +43.567874:3.133225:900.000000 +114.742874:-6.866775:900.000000 +FIN_BOX +BOX +wx:InputText:Box08 +ISEXEC:FALSE +-46.129693:41.712026:900.000000 +-0.554693:31.712026:900.000000 +PORT +In:"1500 5000" +PORT +Title:"Min Max" +FIN_BOX +BOX +wx:InputText:Box09 +ISEXEC:FALSE +34.398150:58.301948:900.000000 +79.973150:48.301948:900.000000 +PORT +In:"10 10 10" +PORT +Title:"posX posY posZ" +FIN_BOX +BOX +minitools:SaveMHD-Button:Box10 +ISEXEC:FALSE +99.054674:-18.236624:900.000000 +144.629674:-28.236624:900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box11 +ISEXEC:FALSE +58.735237:-94.267562:900.000000 +116.295237:-104.267562:900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box12 +ISEXEC:FALSE +99.822663:-49.724184:900.000000 +157.382663:-59.724184:900.000000 +PORT +WinTitle:"Save and Visu" +FIN_BOX +BOX +wx:Slider:Box13 +ISEXEC:FALSE +117.870411:-31.676436:900.000000 +169.270411:-41.676436:900.000000 +PORT +In:0 +PORT +Label:true +PORT +Max:100 +PORT +Min:0 +PORT +Title:Opacity +FIN_BOX +CONNECTIONS:16 +CONNECTION +Box00:Widget:Box01:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box00:BoxChange:Box03:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Widget:Widget +NumberOfControlPoints:0 +CONNECTION +In:In:Box07:In +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box01:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box07:ThresholdMinMax +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:Box01:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box07:PositionXYZ +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box10:In +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box12:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box12:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box11:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box11:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box05:Widget1 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs new file mode 100644 index 0000000..76fd858 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs @@ -0,0 +1,79 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/ConnectivityWidget.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include creaMaracasVisu +include vtk +include minitools + +define ConnectivityWidget minitools + +author "info-team at creatis.insa-lyon.fr" +description "Threshod binary widget" + +category "filter widget" + +new CommandButton Box00 + set Box00.Label Run + +new LayoutLine Box01 + set Box01.WinTitle "Parameters" + +new ViewerNV Box03 + set Box03.nTypeView "0" + +new LayoutSplit Box05 + set Box05.WinTitle Connectivity + +new SegmentationConnectivity Box07 + +new InputText Box08 + set Box08.In "1500 5000" + set Box08.Title "Min Max" + +new InputText Box09 + set Box09.In "10 10 10" + set Box09.Title "posX posY posZ" + +new SaveMHD-Button Box10 + +new LayoutTab Box11 + +new LayoutLine Box12 + set Box12.WinTitle "Save and Visu" + +new Slider Box13 + set Box13.In 0 + set Box13.Label true + set Box13.Max 100 + set Box13.Min 0 + set Box13.Title Opacity + + +connect Box00.Widget Box01.Widget5 +connect Box00.BoxChange Box03.BoxExecute +connect Box03.Widget Box05.Widget2 +connect Box07.Out Box03.In +connect Box08.Widget Box01.Widget1 +connect Box08.Out Box07.ThresholdMinMax +connect Box09.Widget Box01.Widget2 +connect Box09.Out Box07.PositionXYZ +connect Box07.Out Box10.In +connect Box10.Widget Box12.Widget1 +connect Box13.Widget Box12.Widget2 +connect Box12.Widget Box11.Widget2 +connect Box01.Widget Box11.Widget1 +connect Box11.Widget Box05.Widget1 + + +# Complex input ports +input In Box07.In " " + +# Complex output ports +output Widget Box05.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/SaveMHD-Button.bbg b/bbtk_package_creaMiniTools/bbs/boxes/SaveMHD-Button.bbg new file mode 100644 index 0000000..d291c3e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/SaveMHD-Button.bbg @@ -0,0 +1,62 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/SaveMHD-Button.bbg +# ---------------------------------- + +APP_START +CATEGORY:read/write widget +DESCRIPTION:Button that saves the input vtkImageData as a MHD file +AUTHOR:info-team at creatis.insa-lyon.fr +COMPLEXBOX:TRUE +COMPLEXBOXNAME:SaveMHD-Button +PACKAGENAME:minitools +COMPLEXINPUTS:1 +COMPLEX_PORT +In +-75.009417:12.908981:900.000000 +FIN_COMPLEX_PORT +COMPLEXOUTPUTS:1 +COMPLEX_PORT +Widget +-111.247984:-117.548664:900.000000 +FIN_COMPLEX_PORT +BOXES:3 +BOX +wx:CommandButton:Box00 +ISEXEC:FALSE +-121.090405:-23.795441:900.000000 +-75.515405:-33.795441:900.000000 +PORT +Label:"Save Image" +PORT +WinTitle:"Save Img." +FIN_BOX +BOX +vtk:MetaImageWriter:Box01 +ISEXEC:FALSE +-102.332504:-77.410838:900.000000 +-56.757504:-87.410838:900.000000 +FIN_BOX +BOX +wx:FileSelector:Box02 +ISEXEC:FALSE +-101.873769:-42.126046:900.000000 +-56.298769:-52.126046:900.000000 +PORT +OpenSave:Save +FIN_BOX +CONNECTIONS:4 +CONNECTION +Box00:BoxChange:Box01:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box01:Filename +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Widget:Widget +NumberOfControlPoints:0 +CONNECTION +In:In:Box01:In +NumberOfControlPoints:1 +-43.197277:-54.220032:900.000000 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/SaveMHD-Button.bbs b/bbtk_package_creaMiniTools/bbs/boxes/SaveMHD-Button.bbs new file mode 100644 index 0000000..a690143 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/SaveMHD-Button.bbs @@ -0,0 +1,38 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/SaveMHD-Button.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include vtk + +define SaveMHD-Button minitools + +author "info-team at creatis.insa-lyon.fr" +description "Button that saves the input vtkImageData as a MHD file" + +category "read/write widget" + +new CommandButton Box00 + set Box00.Label "Save Image" + set Box00.WinTitle "Save Img." + +new MetaImageWriter Box01 + +new FileSelector Box02 + set Box02.OpenSave Save + + +connect Box00.BoxChange Box01.BoxExecute +connect Box02.Out Box01.Filename + + +# Complex input ports +input In Box01.In " " + +# Complex output ports +output Widget Box00.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbg new file mode 100644 index 0000000..683a9db --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbg @@ -0,0 +1,156 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/ThresholdWidget.bbg +# ---------------------------------- + +APP_START +CATEGORY:filter widget +DESCRIPTION:Threshod binary widget +AUTHOR:info-team at creatis.insa-lyon.fr +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ThresholdWidget +PACKAGENAME:minitools +COMPLEXINPUTS:1 +COMPLEX_PORT +In +38.148288:38.392106:900.000000 +FIN_COMPLEX_PORT +COMPLEXOUTPUTS:1 +COMPLEX_PORT +Widget +30.903819:-152.608058:900.000000 +FIN_COMPLEX_PORT +BOXES:10 +BOX +wx:CommandButton:Box00 +ISEXEC:FALSE +-49.185728:-12.081799:900.000000 +-3.610728:-22.081799:900.000000 +PORT +Label:Run +FIN_BOX +BOX +wx:LayoutLine:Box01 +ISEXEC:FALSE +-58.126568:-46.803915:900.000000 +-0.566568:-56.803915:900.000000 +PORT +WinTitle:"Parameters" +FIN_BOX +BOX +itk:BinaryThresholdImageFilter:Box02 +ISEXEC:FALSE +29.874086:-23.813721:900.000000 +101.049086:-33.813721:900.000000 +PORT +InsideValue:255 +PORT +LowerThreshold:1500 +PORT +OutsideValue:0 +PORT +UpperThreshold:10000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box03 +ISEXEC:FALSE +35.871544:-48.674607:900.000000 +96.511544:-58.674607:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +wx:LayoutSplit:Box05 +ISEXEC:FALSE +18.431060:-134.053020:900.000000 +64.006060:-144.053020:900.000000 +PORT +WinTitle:Threshold +FIN_BOX +BOX +creaMaracasVisu:SliderMinMax:Box07 +ISEXEC:FALSE +46.879775:12.359040:900.000000 +101.359775:2.359040:900.000000 +PORT +InMax:5000 +PORT +InMaxShow:2000 +PORT +InMin:0 +PORT +InMinShow:1000 +FIN_BOX +BOX +wx:Slider:Box08 +ISEXEC:FALSE +-33.591259:20.733225:900.000000 +17.808741:10.733225:900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box09 +ISEXEC:FALSE +-48.369119:-95.327040:900.000000 +9.190881:-105.327040:900.000000 +FIN_BOX +BOX +minitools:SaveMHD-Button:Box10 +ISEXEC:FALSE +-24.940805:-74.782211:900.000000 +20.634195:-84.782211:900.000000 +FIN_BOX +BOX +wx:OutputText:Box11 +ISEXEC:FALSE +74.539422:-4.857703:900.000000 +120.114422:-14.857703:900.000000 +PORT +In:"Min. Max. Gray level" +FIN_BOX +CONNECTIONS:15 +CONNECTION +Box00:Widget:Box01:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box00:BoxChange:Box03:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +In:In:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Widget:Widget +NumberOfControlPoints:0 +CONNECTION +Box07:OutEnd:Box02:UpperThreshold +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box02:LowerThreshold +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box09:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:Box05:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box09:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box10:In +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box01:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box01:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box01:Widget4 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs new file mode 100644 index 0000000..660ed15 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs @@ -0,0 +1,75 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/ThresholdWidget.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include itk +include creaMaracasVisu +include minitools + +define ThresholdWidget minitools + +author "info-team at creatis.insa-lyon.fr" +description "Threshod binary widget" + +category "filter widget" + +new CommandButton Box00 + set Box00.Label Run + +new LayoutLine Box01 + set Box01.WinTitle "Parameters" + +new BinaryThresholdImageFilter Box02 + set Box02.InsideValue 255 + set Box02.LowerThreshold 1500 + set Box02.OutsideValue 0 + set Box02.UpperThreshold 10000 + +new ViewerNV Box03 + set Box03.nTypeView "0" + +new LayoutSplit Box05 + set Box05.WinTitle Threshold + +new SliderMinMax Box07 + set Box07.InMax 5000 + set Box07.InMaxShow 2000 + set Box07.InMin 0 + set Box07.InMinShow 1000 + +new Slider Box08 + +new LayoutTab Box09 + +new SaveMHD-Button Box10 + +new OutputText Box11 + set Box11.In "Min. Max. Gray level" + + +connect Box00.Widget Box01.Widget5 +connect Box00.BoxChange Box03.BoxExecute +connect Box02.Out Box03.In +connect Box03.Widget Box05.Widget2 +connect Box07.OutEnd Box02.UpperThreshold +connect Box08.Out Box02.LowerThreshold +connect Box01.Widget Box09.Widget1 +connect Box09.Widget Box05.Widget1 +connect Box10.Widget Box09.Widget2 +connect Box02.Out Box10.In +connect Box11.Widget Box01.Widget1 +connect Box07.Widget Box01.Widget2 +connect Box08.Widget Box01.Widget4 + + +# Complex input ports +input In Box02.In " " + +# Complex output ports +output Widget Box05.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbg new file mode 100755 index 0000000..6699593 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbg @@ -0,0 +1,120 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/commandMenu.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:CommandMenu +PACKAGENAME:minitools +COMPLEXINPUTS:0 +COMPLEXOUTPUTS:1 +COMPLEX_PORT +CommandMenu +67.913929:23.869408:900.000000 +FIN_COMPLEX_PORT +BOXES:9 +BOX +wx:CommandButton:Box00 +ISEXEC:FALSE +-47.982187:161.849812:900.000000 +-2.407187:151.849812:900.000000 +PORT +Label:"bbEditor" +FIN_BOX +BOX +wx:CommandButton:Box01 +ISEXEC:FALSE +71.424801:124.920441:900.000000 +116.999801:114.920441:900.000000 +PORT +Label:"bbi" +FIN_BOX +BOX +wx:CommandButton:Box02 +ISEXEC:FALSE +39.348765:171.859089:900.000000 +84.923765:161.859089:900.000000 +PORT +Label:"bbStudio" +FIN_BOX +BOX +wx:CommandButton:Box03 +ISEXEC:FALSE +133.251910:78.026585:900.000000 +178.826910:68.026585:900.000000 +PORT +Label:"Create New Project" +FIN_BOX +BOX +std:ExecSystemCommand:Box04 +ISEXEC:FALSE +134.677109:57.320956:900.000000 +205.852109:47.320956:900.000000 +PORT +In:"creaNewProject &" +FIN_BOX +BOX +std:ExecSystemCommand:Box05 +ISEXEC:FALSE +93.515588:108.935109:900.000000 +164.690588:98.935109:900.000000 +PORT +In:"bbi &" +FIN_BOX +BOX +std:ExecSystemCommand:Box06 +ISEXEC:FALSE +54.029287:154.793328:900.000000 +125.204287:144.793328:900.000000 +PORT +In:"bbStudio &" +FIN_BOX +BOX +std:ExecSystemCommand:Box07 +ISEXEC:FALSE +-54.728075:144.644427:900.000000 +16.446925:134.644427:900.000000 +PORT +In:"bbEditor &" +FIN_BOX +BOX +wx:LayoutLine:Box09 +ISEXEC:FALSE +64.817379:49.056828:900.000000 +122.377379:39.056828:900.000000 +PORT +WinTitle:DevelTools +FIN_BOX +CONNECTIONS:9 +CONNECTION +Box01:BoxChange:Box05:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box06:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box09:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box09:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:CommandMenu:CommandMenu +NumberOfControlPoints:0 +CONNECTION +Box00:BoxChange:Box07:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Box09:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box09:Widget2 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbs new file mode 100755 index 0000000..596ac5c --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbs @@ -0,0 +1,61 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/commandMenu.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include std + +define CommandMenu minitools + +author "Author ??" +description "Description ??" + +category "" + +new CommandButton Box00 + set Box00.Label "bbEditor" + +new CommandButton Box01 + set Box01.Label "bbi" + +new CommandButton Box02 + set Box02.Label "bbStudio" + +new CommandButton Box03 + set Box03.Label "Create New Project" + +new ExecSystemCommand Box04 + set Box04.In "creaNewProject &" + +new ExecSystemCommand Box05 + set Box05.In "bbi &" + +new ExecSystemCommand Box06 + set Box06.In "bbStudio &" + +new ExecSystemCommand Box07 + set Box07.In "bbEditor &" + +new LayoutLine Box09 + set Box09.WinTitle DevelTools + + +connect Box01.BoxChange Box05.BoxExecute +connect Box03.BoxChange Box04.BoxExecute +connect Box02.BoxChange Box06.BoxExecute +connect Box01.Widget Box09.Widget3 +connect Box03.Widget Box09.Widget4 +connect Box00.BoxChange Box07.BoxExecute +connect Box00.Widget Box09.Widget1 +connect Box02.Widget Box09.Widget2 + + +# Complex input ports + +# Complex output ports +output CommandMenu Box09.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imagePropertiesWidget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/imagePropertiesWidget.bbg new file mode 100644 index 0000000..664b972 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/imagePropertiesWidget.bbg @@ -0,0 +1,249 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/imagePropertiesWidget.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ImagePropertiesWidget +PACKAGENAME:minitools +COMPLEXINPUTS:1 +COMPLEX_PORT +in +-144.093287:169.589652:900.000000 +FIN_COMPLEX_PORT +COMPLEXOUTPUTS:1 +COMPLEX_PORT +widget +-157.349696:-124.813097:900.000000 +FIN_COMPLEX_PORT +BOXES:20 +BOX +itk:ImageProperties:Box00 +ISEXEC:FALSE +-145.686815:129.093143:900.000000 +-100.111815:119.093143:900.000000 +FIN_BOX +BOX +wx:OutputText:Box01 +ISEXEC:FALSE +-392.060658:73.405905:900.000000 +-346.485658:63.405905:900.000000 +PORT +Title:"Dimension" +FIN_BOX +BOX +wx:OutputText:Box02 +ISEXEC:FALSE +-358.426846:55.730693:900.000000 +-312.851846:45.730693:900.000000 +FIN_BOX +BOX +wx:OutputText:Box13 +ISEXEC:FALSE +-290.466136:70.718935:900.000000 +-244.891136:60.718935:900.000000 +PORT +Title:"Index" +FIN_BOX +BOX +wx:OutputText:Box14 +ISEXEC:FALSE +-261.191566:53.043723:900.000000 +-215.616566:43.043723:900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box15 +ISEXEC:FALSE +-163.425550:-86.148571:900.000000 +-105.865550:-96.148571:900.000000 +PORT +WinTitle:"Image Properties" +FIN_BOX +BOX +wx:OutputText:Box16 +ISEXEC:FALSE +-208.718281:69.061884:900.000000 +-163.143281:59.061884:900.000000 +PORT +Title:"Size" +FIN_BOX +BOX +wx:OutputText:Box17 +ISEXEC:FALSE +-161.016548:69.336371:900.000000 +-115.441548:59.336371:900.000000 +FIN_BOX +BOX +wx:OutputText:Box20 +ISEXEC:FALSE +-85.658882:43.696190:900.000000 +-40.083882:33.696190:900.000000 +FIN_BOX +BOX +wx:OutputText:Box21 +ISEXEC:FALSE +-132.637209:44.388190:900.000000 +-87.062209:34.388190:900.000000 +PORT +Title:"Spacing" +FIN_BOX +BOX +wx:OutputText:Box22 +ISEXEC:FALSE +1.493239:61.750233:900.000000 +47.068239:51.750233:900.000000 +FIN_BOX +BOX +wx:OutputText:Box23 +ISEXEC:FALSE +-46.555398:62.040267:900.000000 +-0.980398:52.040267:900.000000 +PORT +Title:"TypeName" +FIN_BOX +BOX +wx:LayoutLine:Box12 +ISEXEC:FALSE +-384.394436:14.157149:900.000000 +-326.834436:4.157149:900.000000 +PORT +Orientation:H +FIN_BOX +BOX +wx:LayoutLine:Box18 +ISEXEC:FALSE +-294.131087:14.551719:900.000000 +-236.571087:4.551719:900.000000 +PORT +Orientation:H +FIN_BOX +BOX +wx:LayoutLine:Box19 +ISEXEC:FALSE +-198.879494:13.671538:900.000000 +-141.319494:3.671538:900.000000 +PORT +Orientation:H +FIN_BOX +BOX +wx:LayoutLine:Box24 +ISEXEC:FALSE +-113.821521:15.746123:900.000000 +-56.261521:5.746123:900.000000 +PORT +Orientation:H +FIN_BOX +BOX +wx:LayoutLine:Box25 +ISEXEC:FALSE +-25.305907:11.596953:900.000000 +32.254093:1.596953:900.000000 +PORT +Orientation:H +FIN_BOX +BOX +wx:OutputText:Box26 +ISEXEC:FALSE +100.840399:46.469549:900.000000 +146.415399:36.469549:900.000000 +FIN_BOX +BOX +wx:OutputText:Box27 +ISEXEC:FALSE +50.820496:45.520067:900.000000 +96.395496:35.520067:900.000000 +PORT +Title:"Min Max" +FIN_BOX +BOX +wx:LayoutLine:Box28 +ISEXEC:FALSE +68.532791:11.077398:900.000000 +126.092791:1.077398:900.000000 +PORT +Orientation:H +FIN_BOX +CONNECTIONS:26 +CONNECTION +Box00:Dimension:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box00:Index:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box00:Size:Box17:In +NumberOfControlPoints:0 +CONNECTION +Box00:Spacing:Box20:Title +NumberOfControlPoints:0 +CONNECTION +Box00:TypeName:Box22:In +NumberOfControlPoints:0 +CONNECTION +in:in:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:widget:widget +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box12:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box12:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box18:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box18:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box18:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box19:Widget:Box15:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box24:Widget:Box15:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box25:Widget:Box15:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box19:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box19:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box20:Widget:Box24:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box21:Widget:Box24:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box22:Widget:Box25:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box23:Widget:Box25:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box26:Widget:Box28:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box27:Widget:Box28:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box00:MinMax:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box28:Widget:Box15:Widget6 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imagePropertiesWidget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/imagePropertiesWidget.bbs new file mode 100644 index 0000000..0dc1dfc --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/imagePropertiesWidget.bbs @@ -0,0 +1,104 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/imagePropertiesWidget.bbs +# ---------------------------------- + +include std +include itkvtk +include itk +include wx + +define ImagePropertiesWidget minitools + +author "Author ??" +description "Description ??" + +category "" + +new ImageProperties Box00 + +new OutputText Box01 + set Box01.Title "Dimension" + +new OutputText Box02 + +new OutputText Box13 + set Box13.Title "Index" + +new OutputText Box14 + +new LayoutLine Box15 + set Box15.WinTitle "Image Properties" + +new OutputText Box16 + set Box16.Title "Size" + +new OutputText Box17 + +new OutputText Box20 + +new OutputText Box21 + set Box21.Title "Spacing" + +new OutputText Box22 + +new OutputText Box23 + set Box23.Title "TypeName" + +new LayoutLine Box12 + set Box12.Orientation H + +new LayoutLine Box18 + set Box18.Orientation H + +new LayoutLine Box19 + set Box19.Orientation H + +new LayoutLine Box24 + set Box24.Orientation H + +new LayoutLine Box25 + set Box25.Orientation H + +new OutputText Box26 + +new OutputText Box27 + set Box27.Title "Min Max" + +new LayoutLine Box28 + set Box28.Orientation H + + +connect Box00.Dimension Box02.In +connect Box00.Index Box14.In +connect Box00.Size Box17.In +connect Box00.Spacing Box20.Title +connect Box00.TypeName Box22.In +connect Box01.Widget Box12.Widget1 +connect Box02.Widget Box12.Widget2 +connect Box12.Widget Box15.Widget1 +connect Box13.Widget Box18.Widget1 +connect Box14.Widget Box18.Widget2 +connect Box18.Widget Box15.Widget2 +connect Box19.Widget Box15.Widget3 +connect Box24.Widget Box15.Widget4 +connect Box25.Widget Box15.Widget5 +connect Box16.Widget Box19.Widget1 +connect Box17.Widget Box19.Widget2 +connect Box20.Widget Box24.Widget2 +connect Box21.Widget Box24.Widget1 +connect Box22.Widget Box25.Widget2 +connect Box23.Widget Box25.Widget1 +connect Box26.Widget Box28.Widget2 +connect Box27.Widget Box28.Widget1 +connect Box00.MinMax Box26.In +connect Box28.Widget Box15.Widget6 + + +# Complex input ports +input in Box00.In " " + +# Complex output ports +output widget Box15.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbg new file mode 100755 index 0000000..3dd9cb1 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbg @@ -0,0 +1,134 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/maxiToolsMenu.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:maxiToolsMenu +PACKAGENAME:minitools +COMPLEXINPUTS:0 +COMPLEXOUTPUTS:1 +COMPLEX_PORT +widget +7.901360:-4.634448:900.000000 +FIN_COMPLEX_PORT +BOXES:10 +BOX +wx:CommandButton:Box00 +ISEXEC:FALSE +-92.918799:171.862201:900.000000 +-47.343799:161.862201:900.000000 +PORT +Label:"creaContoursApp" +FIN_BOX +BOX +wx:LayoutLine:Box03 +ISEXEC:TRUE +5.740400:21.346327:900.000000 +63.300400:11.346327:900.000000 +PORT +WinTitle:"maxiTools" +FIN_BOX +BOX +std:ExecSystemCommand:Box04 +ISEXEC:FALSE +-180.989407:140.002985:900.000000 +-109.814407:130.002985:900.000000 +PORT +In:"creaContourApp &" +FIN_BOX +BOX +wx:OutputText:Box07 +ISEXEC:FALSE +-63.432115:219.582209:900.000000 +-17.857115:209.582209:900.000000 +PORT +In:"Select the Example" +FIN_BOX +BOX +wx:CommandButton:Box06 +ISEXEC:FALSE +-70.422190:115.855861:900.000000 +-24.847190:105.855861:900.000000 +PORT +Label:"Manual paint" +FIN_BOX +BOX +std:ExecSystemCommand:Box08 +ISEXEC:FALSE +-100.086835:77.275025:900.000000 +-28.911835:67.275025:900.000000 +PORT +In:"bbi minitools/appli/manualPaint.bbs &" +FIN_BOX +BOX +wx:CommandButton:Box09 +ISEXEC:FALSE +61.938730:162.864153:900.000000 +107.513730:152.864153:900.000000 +PORT +Label:"Show N-Points" +FIN_BOX +BOX +std:ExecSystemCommand:Box10 +ISEXEC:FALSE +78.590427:137.343813:900.000000 +149.765427:127.343813:900.000000 +PORT +In:"bbi minitools/appli/showNPoints.bbs &" +FIN_BOX +BOX +wx:CommandButton:Box11 +ISEXEC:FALSE +70.686249:87.734655:900.000000 +116.261249:77.734655:900.000000 +PORT +Label:"Image Tool" +FIN_BOX +BOX +std:ExecSystemCommand:Box12 +ISEXEC:FALSE +81.317089:65.006652:900.000000 +152.492089:55.006652:900.000000 +PORT +In:"bbi minitools/appli/ImageTool.bbs &" +FIN_BOX +CONNECTIONS:10 +CONNECTION +Box00:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box03:Widget1 +NumberOfControlPoints:1 +10.657051:177.625870:900.000000 +CONNECTION +Box00:Widget:Box03:Widget2 +NumberOfControlPoints:1 +34.281284:140.932907:900.000000 +CONNECTION +Box03:Widget:widget:widget +NumberOfControlPoints:0 +CONNECTION +Box06:BoxChange:Box08:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box03:Widget3 +NumberOfControlPoints:1 +22.046547:94.833649:900.000000 +CONNECTION +Box09:Widget:Box03:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box09:BoxChange:Box10:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box11:BoxChange:Box12:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box03:Widget5 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbs new file mode 100644 index 0000000..4805554 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbs @@ -0,0 +1,66 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/maxiToolsMenu.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include std + +define maxiToolsMenu minitools + +author "Author ??" +description "Description ??" + +category "" + +new CommandButton Box00 + set Box00.Label "creaContoursApp" + +new LayoutLine Box03 + set Box03.WinTitle "maxiTools" + +new ExecSystemCommand Box04 + set Box04.In "creaContourApp &" + +new OutputText Box07 + set Box07.In "Select the Example" + +new CommandButton Box06 + set Box06.Label "Manual paint" + +new ExecSystemCommand Box08 + set Box08.In "bbi minitools/appli/manualPaint.bbs &" + +new CommandButton Box09 + set Box09.Label "Show N-Points" + +new ExecSystemCommand Box10 + set Box10.In "bbi minitools/appli/showNPoints.bbs &" + +new CommandButton Box11 + set Box11.Label "Image Tool" + +new ExecSystemCommand Box12 + set Box12.In "bbi minitools/appli/ImageTool.bbs &" + + +connect Box00.BoxChange Box04.BoxExecute +connect Box07.Widget Box03.Widget1 +connect Box00.Widget Box03.Widget2 +connect Box06.BoxChange Box08.BoxExecute +connect Box06.Widget Box03.Widget3 +connect Box09.Widget Box03.Widget4 +connect Box09.BoxChange Box10.BoxExecute +connect Box11.BoxChange Box12.BoxExecute +connect Box11.Widget Box03.Widget5 + +exec Box03 + +# Complex input ports + +# Complex output ports +output widget Box03.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/recalageMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/recalageMenu.bbg new file mode 100755 index 0000000..47bd38d --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/recalageMenu.bbg @@ -0,0 +1,138 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/recalageMenu.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:RecalageMenu +PACKAGENAME:minitools +COMPLEXINPUTS:0 +COMPLEXOUTPUTS:1 +COMPLEX_PORT +widget +90.213291:-38.104531:900.000000 +FIN_COMPLEX_PORT +BOXES:10 +BOX +wx:CommandButton:Box00 +ISEXEC:FALSE +-141.345011:103.240481:900.000000 +-95.770011:93.240481:900.000000 +PORT +Label:"Recalage 2D" +FIN_BOX +BOX +wx:CommandButton:Box01 +ISEXEC:FALSE +-146.555887:61.553473:900.000000 +-100.980887:51.553473:900.000000 +PORT +Label:"Recalage 3D 1 Point" +FIN_BOX +BOX +wx:CommandButton:Box02 +ISEXEC:FALSE +-139.390933:17.912386:900.000000 +-93.815933:7.912386:900.000000 +PORT +Label:"Recalage 3D 2 Points" +FIN_BOX +BOX +wx:CommandButton:Box03 +ISEXEC:FALSE +-138.088214:-24.425981:900.000000 +-92.513214:-34.425981:900.000000 +PORT +Label:"Recalage 3D 3 Points" +FIN_BOX +BOX +std:ExecSystemCommand:Box04 +ISEXEC:FALSE +-261.520839:78.488820:900.000000 +-190.345839:68.488820:900.000000 +PORT +In:"bbi minitools/appli/recalage2DExample.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box05 +ISEXEC:FALSE +-258.915401:38.104531:900.000000 +-187.740401:28.104531:900.000000 +PORT +In:"bbi minitools/appli/recalage3D1PointExample.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box06 +ISEXEC:FALSE +-259.566760:-16.609667:900.000000 +-188.391760:-26.609667:900.000000 +PORT +In:"bbi minitools/appli/recalage3D2PointsExample.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box07 +ISEXEC:FALSE +-261.520839:-53.737159:900.000000 +-190.345839:-63.737159:900.000000 +PORT +In:"bbi /usr/local/share/bbtk/bbs/minitools/examples/bbs/recalage/recalage3D3PointsExample.bbs &" +FIN_BOX +BOX +wx:OutputText:Box08 +ISEXEC:FALSE +-142.322050:150.138364:900.000000 +-96.747050:140.138364:900.000000 +PORT +In:"Select the Example" +FIN_BOX +BOX +wx:LayoutLine:Box09 +ISEXEC:FALSE +81.745617:17.912386:900.000000 +139.305617:7.912386:900.000000 +PORT +WinTitle:"Recalage" +FIN_BOX +CONNECTIONS:10 +CONNECTION +Box00:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box01:BoxChange:Box05:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box06:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box07:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box09:Widget1 +NumberOfControlPoints:1 +70.672508:113.662231:900.000000 +CONNECTION +Box01:Widget:Box09:Widget3 +NumberOfControlPoints:1 +80.442902:38.104530:900.000000 +CONNECTION +Box02:Widget:Box09:Widget4 +NumberOfControlPoints:2 +-40.709969:-6.187915:900.000000 +11.398791:62.856190:900.000000 +CONNECTION +Box00:Widget:Box09:Widget2 +NumberOfControlPoints:1 +79.791542:74.580666:900.000000 +CONNECTION +Box03:Widget:Box09:Widget5 +NumberOfControlPoints:2 +-41.361328:-76.534744:900.000000 +12.701510:29.636858:900.000000 +CONNECTION +Box09:Widget:widget:widget +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/recalageMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/recalageMenu.bbs new file mode 100755 index 0000000..68b3fdb --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/recalageMenu.bbs @@ -0,0 +1,65 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/recalageMenu.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include std + +define RecalageMenu minitools + +author "Author ??" +description "Description ??" + +category "" + +new CommandButton Box00 + set Box00.Label "Recalage 2D" + +new CommandButton Box01 + set Box01.Label "Recalage 3D 1 Point" + +new CommandButton Box02 + set Box02.Label "Recalage 3D 2 Points" + +new CommandButton Box03 + set Box03.Label "Recalage 3D 3 Points" + +new ExecSystemCommand Box04 + set Box04.In "bbi minitools/appli/recalage2DExample.bbs &" + +new ExecSystemCommand Box05 + set Box05.In "bbi minitools/appli/recalage3D1PointExample.bbs &" + +new ExecSystemCommand Box06 + set Box06.In "bbi minitools/appli/recalage3D2PointsExample.bbs &" + +new ExecSystemCommand Box07 + set Box07.In "bbi /usr/local/share/bbtk/bbs/minitools/examples/bbs/recalage/recalage3D3PointsExample.bbs &" + +new OutputText Box08 + set Box08.In "Select the Example" + +new LayoutLine Box09 + set Box09.WinTitle "Recalage" + + +connect Box00.BoxChange Box04.BoxExecute +connect Box01.BoxChange Box05.BoxExecute +connect Box02.BoxChange Box06.BoxExecute +connect Box03.BoxChange Box07.BoxExecute +connect Box08.Widget Box09.Widget1 +connect Box01.Widget Box09.Widget3 +connect Box02.Widget Box09.Widget4 +connect Box00.Widget Box09.Widget2 +connect Box03.Widget Box09.Widget5 + + +# Complex input ports + +# Complex output ports +output widget Box09.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/rescaleSlopeInterceptMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/rescaleSlopeInterceptMenu.bbg new file mode 100755 index 0000000..10d0e45 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/rescaleSlopeInterceptMenu.bbg @@ -0,0 +1,138 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/rescaleSlopeInterceptMenu.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:RescaleSlopeInterceptMenu +PACKAGENAME:minitools +COMPLEXINPUTS:0 +COMPLEXOUTPUTS:1 +COMPLEX_PORT +widget +90.213291:-38.104531:900.000000 +FIN_COMPLEX_PORT +BOXES:10 +BOX +wx:CommandButton:Box00 +ISEXEC:FALSE +-141.345011:103.240481:900.000000 +-95.770011:93.240481:900.000000 +PORT +Label:"rescaleSlopeIntercept0" +FIN_BOX +BOX +wx:CommandButton:Box01 +ISEXEC:FALSE +-146.555887:61.553473:900.000000 +-100.980887:51.553473:900.000000 +PORT +Label:"rescaleSlopeIntercept1" +FIN_BOX +BOX +wx:CommandButton:Box02 +ISEXEC:FALSE +-139.390933:17.912386:900.000000 +-93.815933:7.912386:900.000000 +PORT +Label:"rescaleSlopeIntercept2" +FIN_BOX +BOX +wx:CommandButton:Box03 +ISEXEC:FALSE +-138.088214:-24.425981:900.000000 +-92.513214:-34.425981:900.000000 +PORT +Label:"rescaleSlopeIntercept3" +FIN_BOX +BOX +std:ExecSystemCommand:Box04 +ISEXEC:FALSE +-261.520839:78.488820:900.000000 +-190.345839:68.488820:900.000000 +PORT +In:"bbi minitools/appli/rescaleSlopeIntercept0.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box05 +ISEXEC:FALSE +-258.915401:38.104531:900.000000 +-187.740401:28.104531:900.000000 +PORT +In:"bbi minitools/appli/rescaleSlopeIntercept1.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box06 +ISEXEC:FALSE +-259.566760:-16.609667:900.000000 +-188.391760:-26.609667:900.000000 +PORT +In:"bbi minitools/appli/rescaleSlopeIntercept2.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box07 +ISEXEC:FALSE +-261.520839:-53.737159:900.000000 +-190.345839:-63.737159:900.000000 +PORT +In:"bbi minitools/appli/rescaleSlopeIntercept3.bbs &" +FIN_BOX +BOX +wx:OutputText:Box08 +ISEXEC:FALSE +-142.322050:150.138364:900.000000 +-96.747050:140.138364:900.000000 +PORT +In:"Select the Example" +FIN_BOX +BOX +wx:LayoutLine:Box09 +ISEXEC:FALSE +81.745617:17.912386:900.000000 +139.305617:7.912386:900.000000 +PORT +WinTitle:"RescaleSlopeIntercept" +FIN_BOX +CONNECTIONS:10 +CONNECTION +Box00:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box01:BoxChange:Box05:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box06:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box07:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box09:Widget1 +NumberOfControlPoints:1 +70.672508:113.662231:900.000000 +CONNECTION +Box01:Widget:Box09:Widget3 +NumberOfControlPoints:1 +80.442902:38.104530:900.000000 +CONNECTION +Box02:Widget:Box09:Widget4 +NumberOfControlPoints:2 +-40.709969:-6.187915:900.000000 +11.398791:62.856190:900.000000 +CONNECTION +Box00:Widget:Box09:Widget2 +NumberOfControlPoints:1 +79.791542:74.580666:900.000000 +CONNECTION +Box03:Widget:Box09:Widget5 +NumberOfControlPoints:2 +-41.361328:-76.534744:900.000000 +12.701510:29.636858:900.000000 +CONNECTION +Box09:Widget:widget:widget +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/rescaleSlopeInterceptMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/rescaleSlopeInterceptMenu.bbs new file mode 100755 index 0000000..b4f951e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/rescaleSlopeInterceptMenu.bbs @@ -0,0 +1,65 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/rescaleSlopeInterceptMenu.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include std + +define RescaleSlopeInterceptMenu minitools + +author "Author ??" +description "Description ??" + +category "" + +new CommandButton Box00 + set Box00.Label "rescaleSlopeIntercept0" + +new CommandButton Box01 + set Box01.Label "rescaleSlopeIntercept1" + +new CommandButton Box02 + set Box02.Label "rescaleSlopeIntercept2" + +new CommandButton Box03 + set Box03.Label "rescaleSlopeIntercept3" + +new ExecSystemCommand Box04 + set Box04.In "bbi minitools/appli/rescaleSlopeIntercept0.bbs &" + +new ExecSystemCommand Box05 + set Box05.In "bbi minitools/appli/rescaleSlopeIntercept1.bbs &" + +new ExecSystemCommand Box06 + set Box06.In "bbi minitools/appli/rescaleSlopeIntercept2.bbs &" + +new ExecSystemCommand Box07 + set Box07.In "bbi minitools/appli/rescaleSlopeIntercept3.bbs &" + +new OutputText Box08 + set Box08.In "Select the Example" + +new LayoutLine Box09 + set Box09.WinTitle "RescaleSlopeIntercept" + + +connect Box00.BoxChange Box04.BoxExecute +connect Box01.BoxChange Box05.BoxExecute +connect Box02.BoxChange Box06.BoxExecute +connect Box03.BoxChange Box07.BoxExecute +connect Box08.Widget Box09.Widget1 +connect Box01.Widget Box09.Widget3 +connect Box02.Widget Box09.Widget4 +connect Box00.Widget Box09.Widget2 +connect Box03.Widget Box09.Widget5 + + +# Complex input ports + +# Complex output ports +output widget Box09.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/viewerMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/viewerMenu.bbg new file mode 100755 index 0000000..087b44e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/viewerMenu.bbg @@ -0,0 +1,115 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/viewerMenu.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ImageViewerMenu +PACKAGENAME:minitools +COMPLEXINPUTS:0 +COMPLEXOUTPUTS:1 +COMPLEX_PORT +widget +63.736612:20.667801:900.000000 +FIN_COMPLEX_PORT +BOXES:8 +BOX +wx:CommandButton:Box00 +ISEXEC:FALSE +-92.918799:171.862201:900.000000 +-47.343799:161.862201:900.000000 +PORT +Label:"Image Writer" +FIN_BOX +BOX +wx:CommandButton:Box02 +ISEXEC:FALSE +-81.740443:128.068200:900.000000 +-36.165443:118.068200:900.000000 +PORT +Label:"Viewer NV" +FIN_BOX +BOX +wx:LayoutLine:Box03 +ISEXEC:TRUE +55.755030:65.004036:900.000000 +113.315030:55.004036:900.000000 +PORT +WinTitle:"Viewer" +FIN_BOX +BOX +std:ExecSystemCommand:Box04 +ISEXEC:FALSE +-180.989407:140.002985:900.000000 +-109.814407:130.002985:900.000000 +PORT +In:"bbi minitools/appli/imageWriterExample.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box06 +ISEXEC:FALSE +-174.256420:105.662706:900.000000 +-103.081420:95.662706:900.000000 +PORT +In:"bbi minitools/appli/viewerNVExample.bbs &" +FIN_BOX +BOX +wx:OutputText:Box07 +ISEXEC:FALSE +-97.507368:205.384187:900.000000 +-51.932368:195.384187:900.000000 +PORT +In:"Select the Example" +FIN_BOX +BOX +std:ExecSystemCommand:Box09 +ISEXEC:FALSE +-156.178175:62.214026:900.000000 +-85.003175:52.214026:900.000000 +PORT +In:"bbi minitools/appli/synchro2ImageExample.bbs &" +FIN_BOX +BOX +wx:CommandButton:Box10 +ISEXEC:FALSE +-71.123251:92.996814:900.000000 +-25.548251:82.996814:900.000000 +PORT +Label:"Syncrhonize 2 Images" +FIN_BOX +CONNECTIONS:8 +CONNECTION +Box00:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box06:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box03:Widget1 +NumberOfControlPoints:1 +10.657051:177.625870:900.000000 +CONNECTION +Box00:Widget:Box03:Widget2 +NumberOfControlPoints:1 +34.281284:140.932907:900.000000 +CONNECTION +Box02:Widget:Box03:Widget4 +NumberOfControlPoints:2 +-28.237335:101.425415:900.000000 +65.445160:121.832466:900.000000 +CONNECTION +Box10:BoxChange:Box09:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box03:Widget5 +NumberOfControlPoints:2 +-38.332035:57.681705:900.000000 +42.425575:84.600914:900.000000 +CONNECTION +Box03:Widget:widget:widget +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/viewerMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/viewerMenu.bbs new file mode 100755 index 0000000..96aa42a --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/viewerMenu.bbs @@ -0,0 +1,58 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/minitools/boxes/viewerMenu.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include std + +define ImageViewerMenu minitools + +author "Author ??" +description "Description ??" + +category "" + +new CommandButton Box00 + set Box00.Label "Image Writer" + +new CommandButton Box02 + set Box02.Label "Viewer NV" + +new LayoutLine Box03 + set Box03.WinTitle "Viewer" + +new ExecSystemCommand Box04 + set Box04.In "bbi minitools/appli/imageWriterExample.bbs &" + +new ExecSystemCommand Box06 + set Box06.In "bbi minitools/appli/viewerNVExample.bbs &" + +new OutputText Box07 + set Box07.In "Select the Example" + +new ExecSystemCommand Box09 + set Box09.In "bbi minitools/appli/synchro2ImageExample.bbs &" + +new CommandButton Box10 + set Box10.Label "Syncrhonize 2 Images" + + +connect Box00.BoxChange Box04.BoxExecute +connect Box02.BoxChange Box06.BoxExecute +connect Box07.Widget Box03.Widget1 +connect Box00.Widget Box03.Widget2 +connect Box02.Widget Box03.Widget4 +connect Box10.BoxChange Box09.BoxExecute +connect Box10.Widget Box03.Widget5 + +exec Box03 + +# Complex input ports + +# Complex output ports +output widget Box03.Widget " " + +endefine diff --git a/bbtk_package_creaMiniTools/data/CMakeLists.txt b/bbtk_package_creaMiniTools/data/CMakeLists.txt new file mode 100644 index 0000000..eb2556d --- /dev/null +++ b/bbtk_package_creaMiniTools/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/bbtk_package_creaMiniTools/doc/CMakeLists.txt b/bbtk_package_creaMiniTools/doc/CMakeLists.txt new file mode 100644 index 0000000..033496e --- /dev/null +++ b/bbtk_package_creaMiniTools/doc/CMakeLists.txt @@ -0,0 +1,5 @@ +#=========================================================================== +# Include package doc configuration cmake script +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_doc.cmake) +#=========================================================================== + diff --git a/bbtk_package_creaMiniTools/doc/bbdoc/CMakeLists.txt b/bbtk_package_creaMiniTools/doc/bbdoc/CMakeLists.txt new file mode 100644 index 0000000..86ca574 --- /dev/null +++ b/bbtk_package_creaMiniTools/doc/bbdoc/CMakeLists.txt @@ -0,0 +1,2 @@ +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_doc_bbdoc.cmake) + diff --git a/bbtk_package_creaMiniTools/doc/bbdoc/header.html.in b/bbtk_package_creaMiniTools/doc/bbdoc/header.html.in new file mode 100644 index 0000000..28c72c2 --- /dev/null +++ b/bbtk_package_creaMiniTools/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/bbtk_package_creaMiniTools/doc/doxygen/CMakeLists.txt b/bbtk_package_creaMiniTools/doc/doxygen/CMakeLists.txt new file mode 100644 index 0000000..0194111 --- /dev/null +++ b/bbtk_package_creaMiniTools/doc/doxygen/CMakeLists.txt @@ -0,0 +1 @@ +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_doc_doxygen.cmake) diff --git a/bbtk_package_creaMiniTools/doc/doxygen/DoxyMainPage.txt.in b/bbtk_package_creaMiniTools/doc/doxygen/DoxyMainPage.txt.in new file mode 100644 index 0000000..9909a5c --- /dev/null +++ b/bbtk_package_creaMiniTools/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/bbtk_package_creaMiniTools/doc/doxygen/Doxyfile.txt.in b/bbtk_package_creaMiniTools/doc/doxygen/Doxyfile.txt.in new file mode 100644 index 0000000..6b4211a --- /dev/null +++ b/bbtk_package_creaMiniTools/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/bbtk_package_creaMiniTools/src/CMakeLists.txt b/bbtk_package_creaMiniTools/src/CMakeLists.txt new file mode 100644 index 0000000..e2d2a11 --- /dev/null +++ b/bbtk_package_creaMiniTools/src/CMakeLists.txt @@ -0,0 +1,5 @@ +#--------------------------------------------------------------------------- +# Include src configuration cmake script +INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_src.cmake) +#--------------------------------------------------------------------------- + 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..1d5a0a9 --- /dev/null +++ b/cmake/UserBuildDoxygenDoc.cmake @@ -0,0 +1,74 @@ + + +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}") + STRING(REGEX REPLACE " " "~" DOXYGEN_OUTPUT "${DOXYGEN_OUTPUT}") + + + 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 + ${${PROJECT_NAME}_DOXYGEN_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH} + ) + #-------------------------------------------------------------------------- +#message("user build doxygen , doxygen output = ${DOXYGEN_OUTPUT}") +ENDMACRO(USER_BUILD_DOXYGEN_DOC) diff --git a/cmake/UserBuildHtmlDocFromLatex.cmake b/cmake/UserBuildHtmlDocFromLatex.cmake new file mode 100644 index 0000000..696696d --- /dev/null +++ b/cmake/UserBuildHtmlDocFromLatex.cmake @@ -0,0 +1,33 @@ + + +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}) + #------------------------------------------------------------------------- + #IF(WIN32) + # SET(TTH_EXECUTABLE "${TTH_EXECUTABLE}/tth.exe") + #ENDIF(WIN32) + + #message("MACRO(USER_BUILD_HTML_DOC_FROM_LATEX TEX_FILE OUTPUT_REL_PATH) TTH_EXECUTABLE ${TTH_EXECUTABLE}") + 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 ${${PROJECT_NAME}_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..1f5ad69 --- /dev/null +++ b/cmake/UserBuildLatexDoc.cmake @@ -0,0 +1,66 @@ + + +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. + #message("ADD_CUSTOM_COMMAND(OUTPUT ${BUILD_PATH}/${TEX_FILE}.aux MACRO(USER_BUILD_LATEX_DOC") + +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 + ) + +#message("LATEX_COMPILER = ${LATEX_COMPILER}") +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..58dfc68 --- /dev/null +++ b/cmake/UserConfig.cmake @@ -0,0 +1,22 @@ + + +#----------------------------------------------------------------------------- +# 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/${PROJECT_NAME}) + SET(${PROJECT_NAME}_DOC_REL_PATH share/${PROJECT_NAME}/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/data/CMakeLists.txt b/data/CMakeLists.txt new file mode 100644 index 0000000..4688606 --- /dev/null +++ b/data/CMakeLists.txt @@ -0,0 +1 @@ +# -------------------------------- diff --git a/data/README.txt b/data/README.txt new file mode 100644 index 0000000..30b1f33 --- /dev/null +++ b/data/README.txt @@ -0,0 +1 @@ +Data... \ No newline at end of file diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..7becfcf --- /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) + ADD_SUBDIRECTORY(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) + ADD_SUBDIRECTORY(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 + ADD_SUBDIRECTORY(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..2b15cbd --- /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/public/creatools/bbtk/v0_9_3/ --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..f49e631 --- /dev/null +++ b/doc/UserDocumentation/UserDocumentation.tex @@ -0,0 +1,70 @@ + +% ========================================== +\documentclass[11pt,final,a4paper]{article} +\input{config.tex} +\begin{document} +\UserDocumentGuide[User Documentation Guide] +\newpage +% ========================================== + +% ========================================== +\section{Introduction} +% ========================================== +Introductory paragraph to the content of the document +% ========================================== +% ========================================== +\section{Objectives} +% ========================================== +\subsection{General Objective} +% ========================================== +\begin{itemize} +\item{\bf Objective 1} General description of the +objectives +\end{itemize} +% ========================================== +% ========================================== +\subsection{Specific Objectives} +% ========================================== +\begin{itemize} +\item{\bf Objective 1} Detail description of the +objective +\item{\bf Objective n} Detail description of the +objective +\end{itemize} +% ========================================== +\section{Scope and Vision} +% ========================================== +Scope and vision of the system to analyze +What is the reaching point of the system? +% ========================================== +\section{General Description} +% ========================================== +General description of the whole module +% ========================================== +\section{Requirements List} +% ========================================== +\begin{itemize} +\item{\bf Req1} Description of the +requirement +\item{\bf Reqn} Description of the +requirement +\end{itemize} +% ========================================== +\section{Analysis and design of the requirements} +% ========================================== +% ========================================== +\subsection{Req1} +% ========================================== +Detailed description of each req +% ========================================== +\subsection{Reqn} +% ========================================== +% ========================================== +\section{Glosary} +% ========================================== +% ========================================== +\section{Anexes} +% ========================================== + +\end{document} + diff --git a/doc/UserDoxygen/CMakeLists.txt b/doc/UserDoxygen/CMakeLists.txt new file mode 100644 index 0000000..92aa60d --- /dev/null +++ b/doc/UserDoxygen/CMakeLists.txt @@ -0,0 +1,33 @@ +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 + ) + +FILE(GLOB_RECURSE ALLSOURCE ${PROJECT_SOURCE_DIR}/lib/*.cxx ${PROJECT_SOURCE_DIR}/lib/*.h) +FILE(GLOB_RECURSE ALLAPPLI ${PROJECT_SOURCE_DIR}/appli/*.cxx ${PROJECT_SOURCE_DIR}/appli/*.h) + +SET(INPUT + ${CMAKE_CURRENT_BINARY_DIR}/DoxyMainPage.txt + ${ALLSOURCE} + ${ALLAPPLI} + ) +INCLUDE(../../cmake/UserBuildDoxygenDoc.cmake) + +USER_BUILD_DOXYGEN_DOC( + "${PROJECT_NAME}_dox" + "${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..f5fae01 --- /dev/null +++ b/doc/UserDoxygen/Doxyfile.txt.in @@ -0,0 +1,1530 @@ +# Doxyfile 1.6.1 + +# 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, Esperanto, 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, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +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 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 + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# 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 + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = 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 + +# 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 + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# 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_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = 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 + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = 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 = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# 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 +# 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 +# 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 documentation. + +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 = + +# If the HTML_TIMESTAMP tag is set to YES then the generated HTML +# documentation will contain the timesstamp. + +HTML_TIMESTAMP = NO + +# 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 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_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. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +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 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_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 CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# 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 + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# 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 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value 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 (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = YES + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# 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 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = NO + +#--------------------------------------------------------------------------- +# 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 + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = 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@ + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# 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 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 disabled by default, because dot on Windows does not +# seem to support this out of the box. 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..d07c921 --- /dev/null +++ b/doc/config.tex @@ -0,0 +1,170 @@ +\usepackage{ifpdf} +% ========================================== +\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/} + +\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\UserProyectVersion{@PROJECT_VERSION@} +\def\UserProyectVersionDate{@PROJECT_VERSION_DATE@} +\def\todo{\scriptsize\fbox{\bf TODO !!}\normalsize} +\def\x{\bm{x}} +\def\UserProyect{{\xspace}$\texttt{@PROYECT_NAME@}$ } + +\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\lin{{\xspace}\textit{Linux} } +\def\win{{\xspace}\textit{Windows} } + + +\def\UserDocumentGuide [#1]{ +\begin{center} +{\Large \UserProyect} +\vspace{1cm} + +{\Huge #1} +\vspace{1cm} + +\UserProyect version \UserProyectVersion \hspace{2mm}(\UserProyectVersionDate) +\vspace{0.5cm} + +Generated on : \today +\vspace{0.5cm} + +Eduardo D\'avila, Jean-Pierre Roux, Juan Carlos Prieto +\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 + +\end{center} +\tableofcontents +\listoftables +\listoffigures +} + +% ========================================== +%%% mode: latex +%%% TeX-master: "UserProyectUsersGuide" +%%% 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..54410f7 --- /dev/null +++ b/doc/help_contents.html.in @@ -0,0 +1,14 @@ + + + + Help Contents - User Proyect @BBTK_VERSION@ + + + +

    Help Contents

    + +BBTK Doc
    + + + + diff --git a/doc/index-no-frame.html.in b/doc/index-no-frame.html.in new file mode 100644 index 0000000..d1c4acd --- /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..09ed25d --- /dev/null +++ b/doc/template_WebSite/CMakeLists.txt @@ -0,0 +1,25 @@ +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} + ${${PROJECT_NAME}_DOC_BUILD_PATH}/template_WebSite/${filename} + @ONLY + ) + # Install + INSTALL( + FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/template_WebSite/${filename} + DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}/template_WebSite + ) +ENDFOREACH(page) + + +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..483722c --- /dev/null +++ b/doc/template_WebSite/install.html @@ -0,0 +1,869 @@ + + + + + User Project Documentation + + + +

    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..2d6181e --- /dev/null +++ b/doc/template_WebSite/menu.html @@ -0,0 +1,30 @@ + + + + + Home + + +
    + +User Project documentation
    +

    + +
    Follow this link User Install Instructions
    +
    +Read the users' guide To find out more about this application.
    +
    +Or read read the pdf file with the documentation (pdf)
    +
    +The futures developers in this project might be also interested in the doxygen documentation of the +source code of bbtk library.
    + +
    +
    +
    + + diff --git a/install/CMakeLists.txt b/install/CMakeLists.txt new file mode 100644 index 0000000..5f300f3 --- /dev/null +++ b/install/CMakeLists.txt @@ -0,0 +1,112 @@ +#----------------------------------------------------------------------------- +# CPACK+NSIS PACKAGING +#----------------------------------------------------------------------------- + +#---Documentation------------- +#http://www.cmake.org/Wiki/CMake:Packaging_With_CPack +#http://www.cmake.org/Wiki/CMake:CPackConfiguration +#http://www.cmake.org/Wiki/CMake:Install_Commands + + +INCLUDE(InstallRequiredSystemLibraries) + +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_NAME} - CREATIS-LRMN") +SET(CPACK_PACKAGE_VENDOR "CREATIS") +SET(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.txt") +SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE.txt") +SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_MAJOR_VERSION}) +SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_MINOR_VERSION}) +SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_BUILD_VERSION}) + + +#SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") + + + +IF(WIN32) + SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") +ELSE(WIN32) + SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools/${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") +ENDIF(WIN32) + + + +IF(WIN32 AND NOT UNIX) + # There is a bug in NSI that does not handle full unix paths properly. Make + # sure there is at least one set of four (4) backlasshes. +#EED SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/kernel/install/gnome/bbi-icon2.bmp") +# SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin/BBI_EXE.exe") + SET(CPACK_NSIS_DISPLAY_NAME ${PROJECT_NAME}) + SET(CPACK_NSIS_HELP_LINK "http://www.creatis.insa-lyon.fr/site/creatools/${PROJECT_NAME}") + SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.creatis.insa-lyon.fr/site/creatools/${PROJECT_NAME}") + SET(CPACK_NSIS_CONTACT "info-dev@creatis.insa-lyon.fr") + SET(CPACK_NSIS_MODIFY_PATH ON) + + SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS " + # NSIS code .. + ") + + SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS " + # NSIS code ... + ") + + + +ELSE(WIN32 AND NOT UNIX) +# SET(CPACK_STRIP_FILES "bin/bbi") + SET(CPACK_SOURCE_STRIP_FILES "") +ENDIF(WIN32 AND NOT UNIX) +#SET(CPACK_PACKAGE_EXECUTABLES "TestWxGimmickDialog" "Gimmick!") + + +INCLUDE(CPack) + + + + +IF(EXWIN32) + +OPTION(STANDALONE_INSTALLER_${PROJECT_NAME} "Install and add to installer all dlls needed, including from external toolkits (wx,itk,vtk)?" OFF) + +IF(BBTK_STANDALONE_INSTALLER) + STRING(REGEX REPLACE "\\\\" "/" WINDIR "$ENV{WINDIR}") +# INSTALL( FILES ${WINDIR}/system32/msvcp71d.dll DESTINATION bin/ ) +# INSTALL( FILES ${WINDIR}/system32/msvcr71d.dll DESTINATION bin/ ) + + IF(USE_VTK) + SET(VTK_BIN_DIR ${VTK_DIR}/../../bin ) + + FILE(GLOB LST_FILE_VTKDLL "${VTK_BIN_DIR}/*.dll") + FOREACH( iLST ${LST_FILE_VTKDLL} ) + INSTALL( + FILES ${iLST} + DESTINATION bin/ + ) + ENDFOREACH(iLST) + ENDIF(USE_VTK) + + IF(USE_ITK) + INSTALL( FILES ${ITK_DIR}/bin/ITKCommon.dll DESTINATION bin/ ) + ENDIF(USE_ITK) + + IF(USE_WXWIDGETS) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_xrc_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_richtext_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_qa_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_media_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_html_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_gl_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_core_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_aui_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_adv_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_xml_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_odbc_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll DESTINATION bin/ ) + ENDIF(USE_WXWIDGETS) +ENDIF(BBTK_STANDALONE_INSTALLER) + +## Use ... + + +ENDIF(EXWIN32) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 0000000..dd38a15 --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,54 @@ +# Settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE : + +# USER! : Set the library name (global one) + + SET(LIBRARY_NAME ___Library_name___here___) + SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} ) + SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME}) + +# USER! : Give the list of your Libraries + +SET(${LIBRARY_NAME}_LIBRARIES + ___Your_library_one___here___ + ___Your_library_two___here___ + ___Your_library_tree___here___ + + ) + +# USER! : Give the list of directories holding the '.h' and '.txx' to be installed + + SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS + lib/___Your_include_directory_one___here___ + lib/___Your_include_directory_two___here___ + lib/___Your_include_directory_tree___here___ + ) + +# USER! : Hands off, here! + + IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} ) + SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".") + ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} ) + FILE(RELATIVE_PATH + CILFC_EXECUTABLE_OUTPUT_REL_PATH + ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH}) + ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} ) + + SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} ) + + IF(UNIX) + SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS + ${CILFC_EXECUTABLE_OUTPUT_REL_PATH}) + ELSE(UNIX) + SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS + ${CILFC_EXECUTABLE_OUTPUT_REL_PATH}) + ENDIF(UNIX) + SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME}) + + # Invoke the advanced macro + CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME}) + +# USER! : Up to you again, now! + +# USER! : Add a ADD_SUBDIRECTORY command for each one of your libraries +# ADD_SUBDIRECTORY(MyLib1) + diff --git a/lib/template_lib/CMakeLists.txt b/lib/template_lib/CMakeLists.txt new file mode 100644 index 0000000..277d895 --- /dev/null +++ b/lib/template_lib/CMakeLists.txt @@ -0,0 +1,86 @@ +#---------------------------------------------------------------------------- +# USER! : SET THE NAME OF YOUR LIBRARY +# (Replace 'MyLib' by your own library name) + +############################# +SET ( LIBRARY_NAME MyLib ) +############################# + +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# 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) + # + # USER! : 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 + # USER! : Add here any extra Library you need + + ) + #---------------------------------------------------------------------------- + + #---------------------------------------------------------------------------- + # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL + + # USER! : 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/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