X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_package_creaMiniTools%2Fbbs%2Fappli%2FSaveImagePlanes.bbs;h=0deb63c56940f0b64fee80f5de79e1b39f6038bb;hb=HEAD;hp=1f026ecfcb6086ed860ba0240289c2c5ce13d63d;hpb=7bfda54ddb6ca74fb6f77ffc81a21459da7b0a7f;p=creaMiniTools.git diff --git a/bbtk_package_creaMiniTools/bbs/appli/SaveImagePlanes.bbs b/bbtk_package_creaMiniTools/bbs/appli/SaveImagePlanes.bbs index 1f026ec..0deb63c 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/SaveImagePlanes.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/SaveImagePlanes.bbs @@ -1,3 +1,28 @@ +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# 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.3 BBS BlackBox Script # - /Users/davila/Creatis/All5/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/SaveImagePlanes.bbs @@ -13,6 +38,8 @@ include vtk include wxvtk include creaImageIO include toolsbbtk +include creaMaracasVisu +include std author "jpr@creatis.insa-lyon.fr" description "3 slicers and a 3D view" @@ -28,6 +55,7 @@ new LayoutLine upleft new LayoutLine downleft new ImagePlanes planes + set planes.Interpolation "0" new Viewer3D viewer @@ -56,7 +84,8 @@ new SaveMHD-Button Box14 new LayoutSplit Box15 set Box15.Orientation "H" - set Box15.Proportion "30" + set Box15.Proportion "35" + set Box15.WinTitle "Interactive Planes" new SaveMHD-Button Box16 @@ -82,6 +111,52 @@ new LayoutLine Box23 new vtkImageDataPointerRelay Box24 +new LayoutTab Box25 + set Box25.WinHeight "800" + set Box25.WinWidth "1000" + +new LayoutSplit Box26 + set Box26.Orientation "H" + set Box26.Proportion "30" + set Box26.WinTitle "3 Points plane definition" + +new ViewerNV Box27 + +new ShowNPoints Box30 + +new LayoutSplit Box31 + +new Viewer2D Box32 + +new SaveMHD-Button Box35 + +new ImagePlanes Box36 + set Box36.Interpolation "0" + +new LoadHola Box37 + +new LayoutTab Box38 + +new LayoutLine Box39 + set Box39.Orientation "H" + set Box39.WinTitle "Select 3 points" + +new RadioButton Box40 + set Box40.In "1" + set Box40.In0 "Nearest" + set Box40.In1 "Linear" + set Box40.In2 "Cubic" + set Box40.WinTitle "Interpolation" + +new MultipleInputs Box42 + +new RadioButton Box43 + set Box43.In "1" + set Box43.In0 "Nearest" + set Box43.In1 "Linear" + set Box43.In2 "Cubic" + set Box43.WinTitle "Interpolation" + connect upright.Widget main.Widget1 connect upleft.Widget main.Widget2 @@ -90,33 +165,62 @@ connect planes.PlaneX viewer.Obs1 connect planes.PlaneY viewer.Obs2 connect planes.PlaneZ viewer.Obs3 connect viewer.Widget main.Widget4 -connect planes.ImageX viewerUL.In connect viewerUL.Widget upleft.Widget1 connect planes.BoxChange viewerUL.BoxExecute -connect planes.ImageY viewerUR.In connect viewerUR.Widget upright.Widget1 connect planes.BoxChange viewerUR.BoxExecute -connect planes.ImageZ viewerDL.In connect viewerDL.Widget downleft.Widget1 connect planes.BoxChange viewerDL.BoxExecute -connect Box12.widget Box11.Widget2 connect Box13.Widget Box11.Widget1 connect Box11.Widget Box15.Widget1 connect main.Widget Box15.Widget2 connect planes.ImageX Box14.In connect planes.ImageY Box16.In connect planes.ImageZ Box17.In -connect Box19.Widget Box13.Widget1 connect Box14.Widget Box19.Widget1 connect Box18.Widget Box19.Widget2 connect Box20.Widget Box21.Widget2 connect Box22.Widget Box23.Widget2 connect Box16.Widget Box21.Widget1 connect Box17.Widget Box23.Widget1 -connect Box23.Widget Box13.Widget3 -connect Box21.Widget Box13.Widget2 -connect Box10.Out Box24.In connect Box24.Out Box12.in connect Box24.Out planes.In +connect Box27.Widget Box26.Widget2 +connect Box27.Point Box30.In +connect Box27.BoxChange Box30.BoxExecute +connect Box27.Renderer1 Box30.Renderer +connect Box24.Out Box27.In +connect Box24.Out Box30.Image +connect Box32.Widget Box31.Widget2 +connect Box30.lstPointsX Box36.PointsX +connect Box30.lstPointsY Box36.PointsY +connect Box30.lstPointsZ Box36.PointsZ +connect Box24.Out Box36.In +connect Box36.Image3Pts Box32.In +connect Box36.Image3Pts Box35.In +connect Box38.Widget Box31.Widget1 +connect Box30.Widget Box39.Widget1 +connect Box39.Widget Box38.Widget1 +connect Box35.Widget Box38.Widget2 +connect Box31.Widget Box26.Widget1 +connect Box12.widget Box25.Widget3 +connect Box40.Widget Box39.Widget2 +connect Box40.Out Box36.Interpolation +connect Box40.BoxChange Box42.In1 +connect Box30.BoxChange Box42.In2 +connect Box42.Out Box36.BoxExecute +connect Box42.Out Box32.BoxExecute +connect Box19.Widget Box13.Widget2 +connect Box21.Widget Box13.Widget3 +connect Box23.Widget Box13.Widget4 +connect Box43.Widget Box13.Widget1 +connect Box43.Out planes.Interpolation +connect Box43.BoxChange planes.BoxExecute +connect Box10.Out Box24.In +connect Box15.Widget Box25.Widget1 +connect Box26.Widget Box25.Widget2 +connect planes.ImageZ viewerDL.In +connect planes.ImageY viewerUR.In +connect planes.ImageX viewerUL.In -exec Box15 +exec Box25