-# ---------------------------------------------------------------------
-#
-# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
-# pour la Santé)
-# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
-#
-# This software is governed by the CeCILL-B license under French law and
-# abiding by the rules of distribution of free software. You can use,
-# modify and/ or redistribute the software under the terms of the CeCILL-B
-# license as circulated by CEA, CNRS and INRIA at the following URL
-# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-# or in the file LICENSE.txt.
-#
-# As a counterpart to the access to the source code and 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 have only limited
-# liability.
-#
-# The fact that you are presently reading this means that you have had
-# knowledge of the CeCILL-B license and that you accept its terms.
-# ------------------------------------------------------------------------
-
# ----------------------------------
# - BBTKGEditor v 1.4 BBS BlackBox Script
-# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs
+# - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point_3a.bbs
# ----------------------------------
# BBTK GEditor Script
include itkvtk
include creaMaracasVisu
include wx
-include PackRecalage
-include std
include vtk
include creaImageIO
-include wxvtk
+include PackRecalage
author "info-dev@creatis.insa-lyon.fr"
description "Recalage3D 1-point"
new ViewerNV viewer2
set viewer2.nTypeView "5"
-new Slider sdrAngleX
- set sdrAngleX.In "0"
- set sdrAngleX.Max "180"
- set sdrAngleX.Min "-180"
- 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.Title "Rotation angle in Y Axis"
-
-new Slider sdrAngleZ
- set sdrAngleZ.In "0"
- set sdrAngleZ.Max "180"
- set sdrAngleZ.Min "-180"
- 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.Title "Scale in X Axis"
-
-new Slider sdrScaleY
- set sdrScaleY.In "100"
- set sdrScaleY.Max "300"
- set sdrScaleY.Min "10"
- set sdrScaleY.Title "Scale in Y Axis"
-
-new Slider sdrScaleZ
- set sdrScaleZ.In "100"
- set sdrScaleZ.Max "300"
- set sdrScaleZ.Min "10"
- 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"
- set toolsLayout.WinTitle "Rotation"
-
new LayoutSplit resultLayout
set resultLayout.Proportion "70"
new ImagesChooserDialogBox Box25
-new LayoutTab Box26
- set Box26.WinTitle "2D-Compare"
-
-new CompareImagesWidget Box27
- set Box27.WinTitle "2D-Comparing"
-
-new LayoutSplit Box28
- set Box28.Orientation "H"
- set Box28.Proportion "50"
- set Box28.WinTitle "3D-Comparing"
-
-new LayoutLine Box29
-
-new IsoSurfaceWidget Box30
- set Box30.Title "Reference image"
-
-new IsoSurfaceWidget Box31
- set Box31.Title "Registration image"
-
-new LayoutTab Box32
-
-new LayoutLine Box33
- set Box33.WinTitle "Scale"
-
-new Slider TranslateZ
-
-new Slider TranslateY
-
-new Slider TranslateX
-
-new LayoutLine Box37
- set Box37.WinTitle "Translate"
-
-new LayoutTab Box38
-
-new LayoutTab Box39
-
-
-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
+new Recalage3D1PointWidget Box52
-connect viewer.Point reslicer.Origin
+new CompareImagesWidget3D Box20
-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 imagesLayout.Widget main.Widget1
connect resultLayout.Widget main.Widget2
connect Box22.Out viewer2.In
-connect Box22.Out reslicer.In
-
connect Box24.Out Box22.In
connect Box23.Out viewer.In
connect Box25.Out Box23.In
-connect Box27.Widget Box26.Widget2
-
-connect Box26.Widget resultLayout.Widget1
-
-connect reslicer.Out Box27.In2
-
-connect Box23.Out Box27.In1
-
-connect viewerResult.Widget Box28.Widget2
-
-connect Box28.Widget Box26.Widget1
-
-connect Box29.Widget Box28.Widget1
-
-connect sdrScaleX.Widget Box33.Widget1
-
-connect sdrScaleY.Widget Box33.Widget2
-
-connect sdrScaleZ.Widget Box33.Widget3
-
-connect Box33.Widget Box32.Widget2
-
-connect toolsLayout.Widget Box32.Widget1
-
-connect Box32.Widget resultLayout.Widget2
-
-connect TranslateX.Widget Box37.Widget1
-
-connect TranslateY.Widget Box37.Widget2
-
-connect TranslateZ.Widget Box37.Widget3
-
-connect Box37.Widget Box32.Widget3
-
-connect Box31.Widget Box38.Widget2
-
-connect Box38.Widget Box29.Widget2
-
-connect Box39.Widget Box29.Widget1
-
-connect Box30.Widget Box39.Widget1
+connect Box22.Out Box52.Image1
-connect Box23.Out Box30.In
+connect Box23.Out Box52.Image2
-connect viewerResult.Renderer1 Box30.vtkRenderer
+connect Box20.Widget resultLayout.Widget1
-connect Box30.BoxChange mult3.In3
+connect Box23.Out Box20.Image1
-connect viewerResult.Renderer1 Box31.vtkRenderer
+connect Box52.Out Box20.Image2
-connect Box31.BoxChange mult3.In4
+connect Box52.BoxChange Box20.BoxExecute
-connect reslicer.Out Box31.In
+connect Box52.Widget resultLayout.Widget2