From: Eduardo DAVILA Date: Tue, 9 Jul 2013 21:01:34 +0000 (+0200) Subject: 2071 Feature Viewer with volume rendering and viewer... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaMiniTools.git;a=commitdiff_plain;h=d6968479c30bea80526634e3187ad4e9828a8b76 2071 Feature Viewer with volume rendering and viewer with out volumerendering 2019 Feature Flip X Y Z --- diff --git a/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbg b/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbg index d3a509a..c4c1ff9 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbg @@ -24,17 +24,19 @@ ISEXEC:FALSE PORT In:"1" PORT -In0:"X" +In0:"Flip around X axis" PORT -In1:"Y" +In1:"Flip around Y axis" PORT -In2:"Z" +In2:"Flip around Z axis" +PORT +In3:"0riginal image" FIN_BOX BOX creaMaracasVisu:ViewerNV:Box03 ISEXEC:FALSE -123.457704:-55.874779:-900.000000 --62.817704:-65.874779:-900.000000 +-77.882704:-65.874779:-900.000000 PORT nTypeView:"6 1 2 0" FIN_BOX @@ -42,7 +44,7 @@ BOX creaMaracasVisu:ViewerNV:Box04 ISEXEC:FALSE -33.324692:-60.827249:-900.000000 -27.315308:-70.827249:-900.000000 +12.250308:-70.827249:-900.000000 PORT nTypeView:"6 1 2 0" FIN_BOX @@ -65,12 +67,14 @@ PORT In1:"Y" PORT In2:"Z" +PORT +In3:"O" FIN_BOX BOX wx:LayoutLine:Box08 ISEXEC:FALSE 50.411014:-75.905161:-900.000000 -107.971014:-85.905161:-900.000000 +95.986014:-85.905161:-900.000000 PORT Orientation:"H" FIN_BOX @@ -96,13 +100,13 @@ BOX wx:LayoutTab:Box14 ISEXEC:TRUE -43.168887:-157.556172:-900.000000 -14.391113:-167.556172:-900.000000 +2.406113:-167.556172:-900.000000 FIN_BOX BOX wx:LayoutLine:Box15 ISEXEC:FALSE -110.228926:-83.480070:-900.000000 --52.668926:-93.480070:-900.000000 +-64.653926:-93.480070:-900.000000 PORT WinTitle:"Original" FIN_BOX @@ -110,7 +114,7 @@ BOX wx:LayoutLine:Box16 ISEXEC:FALSE -30.195065:-120.075041:-900.000000 -27.364935:-130.075041:-900.000000 +15.379935:-130.075041:-900.000000 PORT WinTitle:"Flip" FIN_BOX diff --git a/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbs b/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbs index 74fae3a..497f44c 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbs @@ -23,9 +23,10 @@ new Flip Box01 new RadioButton Box02 set Box02.In "1" - set Box02.In0 "X" - set Box02.In1 "Y" - set Box02.In2 "Z" + set Box02.In0 "Flip around X axis" + set Box02.In1 "Flip around Y axis" + set Box02.In2 "Flip around Z axis" + set Box02.In3 "0riginal image" new ViewerNV Box03 set Box03.nTypeView "6 1 2 0" @@ -40,6 +41,7 @@ new StringSelect Box07 set Box07.In0 "X" set Box07.In1 "Y" set Box07.In2 "Z" + set Box07.In3 "O" new LayoutLine Box08 set Box08.Orientation "H" diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg index 96268bd..3d5ac1b 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# 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 BBG BlackBox Diagram file -# - /Users/davila/Creatis/All5/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg # ---------------------------------- APP_START @@ -33,6 +8,7 @@ CATEGORY: DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE +COMPLEXINPUTS:0 BOXES:6 BOX creaImageIO:ImagesChooserDialogBox:Box00 @@ -45,6 +21,8 @@ creaMaracasVisu:ViewerNV:Box01 ISEXEC:FALSE -95.504848:60.069929:-900.000000 -34.864848:50.069929:-900.000000 +PORT +nTypeView:"6 1 2 0" FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box04 @@ -56,7 +34,7 @@ BOX wx:LayoutTab:Box05 ISEXEC:TRUE -26.570323:1.112893:-900.000000 -30.989677:-8.887107:-900.000000 +19.004677:-8.887107:-900.000000 PORT WinHide:"800" PORT diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs index bae44e8..201f52c 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# 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/viewerNVExample.bbs +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs # ---------------------------------- # BBTK GEditor Script @@ -45,6 +20,7 @@ category "" new ImagesChooserDialogBox Box00 new ViewerNV Box01 + set Box01.nTypeView "6 1 2 0" new ImageVtkPropertiesWidget Box04 @@ -59,11 +35,20 @@ new LayoutLine Box07 connect Box00.Out Box01.In + connect Box00.Out Box04.in + connect Box04.widget Box05.Widget2 + connect Box06.Widget Box05.Widget3 + connect Box00.Out Box06.In + connect Box01.Widget Box07.Widget1 + connect Box07.Widget Box05.Widget1 + + +# Complex input ports exec Box05 diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg new file mode 100644 index 0000000..75b3e1b --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg @@ -0,0 +1,79 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:6 +BOX +creaImageIO:ImagesChooserDialogBox:Box00 +ISEXEC:FALSE +-32.069940:88.006745:-900.000000 +39.105060:78.006745:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +-95.504848:60.069929:-900.000000 +-34.864848:50.069929:-900.000000 +PORT +nTypeView:"5 1 2 0" +FIN_BOX +BOX +toolsbbtk:ImageVtkPropertiesWidget:Box04 +ISEXEC:FALSE +-29.630779:60.652674:-900.000000 +41.544221:50.652674:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box05 +ISEXEC:TRUE +-26.570323:1.112893:-900.000000 +19.004677:-8.887107:-900.000000 +PORT +WinHide:"800" +PORT +WinWidth:"1000" +FIN_BOX +BOX +toolsbbtk:SaveMHD-Button:Box06 +ISEXEC:FALSE +50.219301:61.487344:-900.000000 +95.794301:51.487344:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:FALSE +-83.327871:40.620598:-900.000000 +-25.767871:30.620598:-900.000000 +PORT +WinTitle:"MPR Viewer" +FIN_BOX +CONNECTIONS:7 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box04:in +NumberOfControlPoints:0 +CONNECTION +Box04:widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box05:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box06:In +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box07:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box05:Widget1 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs new file mode 100644 index 0000000..4bff05e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs @@ -0,0 +1,54 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaImageIO +include creaMaracasVisu +include toolsbbtk +include wx + +author "Author ??" +description "Description ??" +category "" + +new ImagesChooserDialogBox Box00 + +new ViewerNV Box01 + set Box01.nTypeView "5 1 2 0" + +new ImageVtkPropertiesWidget Box04 + +new LayoutTab Box05 + set Box05.WinHide "800" + set Box05.WinWidth "1000" + +new SaveMHD-Button Box06 + +new LayoutLine Box07 + set Box07.WinTitle "MPR Viewer" + + +connect Box00.Out Box01.In + +connect Box00.Out Box04.in + +connect Box04.widget Box05.Widget2 + +connect Box06.Widget Box05.Widget3 + +connect Box00.Out Box06.In + +connect Box01.Widget Box07.Widget1 + +connect Box07.Widget Box05.Widget1 + + + +# Complex input ports +exec Box05 diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg index db19f6a..b6ac0cb 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# 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 BBG BlackBox Diagram file -# - /Users/davila/Creatis/All5/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg # ---------------------------------- APP_START @@ -35,13 +10,13 @@ AUTHOR:Author ?? COMPLEXBOX:TRUE COMPLEXBOXNAME:ImageToolsMenu PACKAGENAME:creaMiniTools -COMPLEXINPUTS:0 COMPLEXOUTPUTS:1 COMPLEX_PORT widget 55.184284:-40.716064:-900.000000 FIN_COMPLEX_PORT -BOXES:23 +COMPLEXINPUTS:0 +BOXES:25 BOX wx:CommandButton:Box00 ISEXEC:FALSE @@ -53,8 +28,8 @@ FIN_BOX BOX wx:CommandButton:Box02 ISEXEC:FALSE --81.740443:128.068200:-900.000000 --36.165443:118.068200:-900.000000 +-97.280455:76.819224:-900.000000 +-51.705455:66.819224:-900.000000 PORT Label:"Viewer NV" FIN_BOX @@ -69,24 +44,24 @@ FIN_BOX BOX std:ExecSystemCommand:Box06 ISEXEC:FALSE --123.430867:108.026685:-900.000000 --52.255867:98.026685:-900.000000 +-138.970879:56.777709:-900.000000 +-67.795879:46.777709:-900.000000 PORT In:"bbi creaMiniTools/appli/viewerNVExample.bbs &" FIN_BOX BOX std:ExecSystemCommand:Box09 ISEXEC:FALSE --108.307596:63.396016:-900.000000 --37.132596:53.396016:-900.000000 +-40.196054:78.936028:-900.000000 +30.978946:68.936028:-900.000000 PORT In:"bbi creaMiniTools/appli/synchro2ImageExample.bbs &" FIN_BOX BOX wx:CommandButton:Box10 ISEXEC:FALSE --77.033199:90.041840:-900.000000 --31.458199:80.041840:-900.000000 +-41.324235:97.977165:-900.000000 +4.250765:87.977165:-900.000000 PORT Label:"Synchronize 2 Images" FIN_BOX @@ -208,7 +183,7 @@ ISEXEC:FALSE 163.195715:107.893513:-900.000000 208.770715:97.893513:-900.000000 PORT -Label:"Flip Image Y" +Label:"Flip Image" FIN_BOX BOX std:ExecSystemCommand:Box30 @@ -218,7 +193,23 @@ ISEXEC:FALSE PORT In:"bbi creaMiniTools/appli/flipImageY.bbs &" FIN_BOX -CONNECTIONS:23 +BOX +wx:CommandButton:Box31 +ISEXEC:FALSE +-99.433238:109.383489:-900.000000 +-53.858238:99.383489:-900.000000 +PORT +Label:"Viewer NV (Vol. Rendering)" +FIN_BOX +BOX +std:ExecSystemCommand:Box32 +ISEXEC:FALSE +-141.123662:89.341974:-900.000000 +-69.948662:79.341974:-900.000000 +PORT +In:"bbi creaMiniTools/appli/viewerNVwithVolRenExample.bbs &" +FIN_BOX +CONNECTIONS:25 CONNECTION Box00:BoxChange:Box04:BoxExecute NumberOfControlPoints:0 @@ -241,9 +232,6 @@ CONNECTION Box02:Widget:Box18:Widget1 NumberOfControlPoints:0 CONNECTION -Box10:Widget:Box18:Widget2 -NumberOfControlPoints:0 -CONNECTION Box11:Widget:Box19:Widget2 NumberOfControlPoints:0 CONNECTION @@ -288,4 +276,13 @@ NumberOfControlPoints:0 CONNECTION Box29:BoxChange:Box30:BoxExecute NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box18:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box31:BoxChange:Box32:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box31:Widget:Box18:Widget2 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs index 20673c0..0b3c328 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# 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 (Complex Box) -# - /Users/davila/Creatis/All5/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs # ---------------------------------- include std @@ -101,11 +76,17 @@ new LayoutCenter Box28 set Box28.WinTitle "Modify image" new CommandButton Box29 - set Box29.Label "Flip Image Y" + set Box29.Label "Flip Image" new ExecSystemCommand Box30 set Box30.In "bbi creaMiniTools/appli/flipImageY.bbs &" +new CommandButton Box31 + set Box31.Label "Viewer NV (Vol. Rendering)" + +new ExecSystemCommand Box32 + set Box32.In "bbi creaMiniTools/appli/viewerNVwithVolRenExample.bbs &" + connect Box00.BoxChange Box04.BoxExecute connect Box02.BoxChange Box06.BoxExecute @@ -113,7 +94,6 @@ connect Box10.BoxChange Box09.BoxExecute connect Box11.BoxChange Box12.BoxExecute connect Box13.BoxChange Box14.BoxExecute connect Box02.Widget Box18.Widget1 -connect Box10.Widget Box18.Widget2 connect Box11.Widget Box19.Widget2 connect Box00.Widget Box19.Widget1 connect Box20.widget Box15.Widget3 @@ -129,12 +109,15 @@ connect Box28.Widget Box15.Widget2 connect Box13.Widget Box19.Widget5 connect Box29.Widget Box19.Widget6 connect Box29.BoxChange Box30.BoxExecute - -exec Box15 +connect Box10.Widget Box18.Widget3 +connect Box31.BoxChange Box32.BoxExecute +connect Box31.Widget Box18.Widget2 # Complex input ports # Complex output ports output widget Box15.Widget " " +exec Box15 + endefine