From 13c4e094c1d0ce58b3577cdc970dbd80e13fde24 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Sun, 21 Feb 2016 01:30:27 +0100 Subject: [PATCH] #2845 CreaMiniTools Feature New Normal - add bbtk box : LayerCol-VolRend-SurRend_Widget --- .../bbs/appli/ImageTool.bbg | 250 ++++++---- .../bbs/appli/ImageTool.bbs | 182 ++++--- .../boxes/LayerCol-VolRend-SurRend_Widget.bbg | 449 ++++++++++++++++++ .../boxes/LayerCol-VolRend-SurRend_Widget.bbs | 175 +++++++ 4 files changed, 910 insertions(+), 146 deletions(-) create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg index 4a55cf6..d12bcdb 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.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.2 BBG BlackBox Diagram file -# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - ImageTool.bbg # ---------------------------------- APP_START @@ -33,20 +8,21 @@ CATEGORY:demo DESCRIPTION:Show N Points AUTHOR:info-dev@creatis.insa-lyon.fr COMPLEXBOX:FALSE -BOXES:21 +COMPLEXINPUTS:0 +BOXES:27 BOX creaMaracasVisu:ViewerNV:viewer ISEXEC:FALSE --20.118819:67.745521:900.000000 -40.521181:57.745521:900.000000 +-26.256959:71.023094:-900.000000 +19.318041:61.023094:-900.000000 PORT nTypeView:"5 1 2 0" FIN_BOX BOX creaMaracasVisu:ShowNPoints:showNpoints ISEXEC:FALSE --146.394252:-3.709677:900.000000 --100.819252:-13.709677:900.000000 +-146.394252:-3.709677:-900.000000 +-100.819252:-13.709677:-900.000000 PORT Radio:"10" PORT @@ -55,102 +31,102 @@ FIN_BOX BOX wx:LayoutSplit:main ISEXEC:TRUE -131.960893:-339.046081:900.000000 -177.535893:-349.046081:900.000000 +131.960893:-339.046081:-900.000000 +177.535893:-349.046081:-900.000000 PORT Orientation:"H" FIN_BOX BOX creaImageIO:ImagesChooserDialogBox:Box04 ISEXEC:FALSE -106.944221:120.009570:900.000000 -178.119221:110.009570:900.000000 +106.944221:120.009570:-900.000000 +178.119221:110.009570:-900.000000 FIN_BOX BOX wx:LayoutTab:Box06 ISEXEC:FALSE --120.707679:-204.015087:900.000000 --63.147679:-214.015087:900.000000 +-121.305888:-241.702258:-900.000000 +-75.730888:-251.702258:-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 +-351.844966:-16.053157:-900.000000 +-280.669966:-26.053157:-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 +-37.981566:-130.541589:-900.000000 +7.593434:-140.541589:-900.000000 PORT WinTitle:"Paint" FIN_BOX BOX wx:LayoutTab:Box12 ISEXEC:FALSE -51.808241:-277.901790:900.000000 -109.368241:-287.901790:900.000000 +51.808241:-277.901790:-900.000000 +97.383241:-287.901790:-900.000000 PORT WinTitle:Filters FIN_BOX BOX wx:LayoutTab:Box13 ISEXEC:FALSE -25.025304:-307.420578:900.000000 -82.585304:-317.420578:900.000000 +25.025304:-307.420578:-900.000000 +70.600304:-317.420578:-900.000000 FIN_BOX BOX toolsbbtk:SaveMHD-Button:Box21 ISEXEC:FALSE --101.443200:-51.574676:900.000000 --55.868200:-61.574676:900.000000 +-101.851785:-27.059586:-900.000000 +-56.276785:-37.059586:-900.000000 FIN_BOX BOX creaMiniTools:ThresholdWidget:Box22 ISEXEC:FALSE --8.323319:-213.864066:900.000000 -37.251681:-223.864066:900.000000 +-2.341228:-207.881975:-900.000000 +43.233772:-217.881975:-900.000000 FIN_BOX BOX creaMiniTools:ConnectivityWidget:Box16 ISEXEC:FALSE -61.974834:-215.138914:900.000000 -107.549834:-225.138914:900.000000 +61.974834:-215.138914:-900.000000 +107.549834:-225.138914:-900.000000 FIN_BOX BOX wx:LayoutLine:Box18 ISEXEC:FALSE --157.480851:-29.691282:900.000000 --99.920851:-39.691282:900.000000 +-157.480851:-29.691282:-900.000000 +-99.920851:-39.691282:-900.000000 PORT WinTitle:"show N-Points" FIN_BOX BOX wx:LayoutLine:Box19 ISEXEC:FALSE --126.510541:-71.692401:900.000000 --68.950541:-81.692401:900.000000 +-125.693371:-52.080329:-900.000000 +-80.118371:-62.080329:-900.000000 PORT WinTitle:"Save MHD" FIN_BOX BOX wx:LayoutLine:Box20 ISEXEC:FALSE --103.407161:-117.514105:900.000000 --45.847161:-127.514105:900.000000 +-373.889781:-114.690466:-900.000000 +-316.329781:-124.690466:-900.000000 PORT -WinTitle:"Layer Image" +WinTitle:"Layers" FIN_BOX BOX wx:LayoutLine:Box23 ISEXEC:FALSE --91.548950:-148.443964:900.000000 --33.988950:-158.443964:900.000000 +-94.484830:-201.968967:-900.000000 +-48.909830:-211.968967:-900.000000 PORT Orientation:H PORT @@ -159,34 +135,78 @@ FIN_BOX BOX creaMaracasVisu:CutModule2:Box24 ISEXEC:FALSE --26.755839:-136.961791:900.000000 -18.819161:-146.961791:900.000000 +-31.541511:-156.104481:-900.000000 +14.033489:-166.104481:-900.000000 FIN_BOX BOX std:MultipleInputs:Box25 ISEXEC:FALSE -193.461788:-298.903547:900.000000 -239.036788:-308.903547:900.000000 +193.461788:-298.903547:-900.000000 +239.036788:-308.903547:-900.000000 FIN_BOX BOX creaMiniTools:ErodeWidget:Box26 ISEXEC:FALSE -127.580373:-217.870289:900.000000 -173.155373:-227.870289:900.000000 +127.580373:-217.870289:-900.000000 +173.155373:-227.870289:-900.000000 FIN_BOX BOX creaMiniTools:DilateWidget:Box27 ISEXEC:FALSE -202.155519:-213.402703:900.000000 -247.730519:-223.402703:900.000000 +202.155519:-213.402703:-900.000000 +247.730519:-223.402703:-900.000000 FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box28 ISEXEC:FALSE --62.436858:-171.024355:900.000000 -8.738142:-181.024355:900.000000 +-67.347684:-221.649376:-900.000000 +3.827316:-231.649376:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box29 +ISEXEC:FALSE +-372.469828:-95.544664:-900.000000 +-314.909828:-105.544664:-900.000000 +FIN_BOX +BOX +creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box30 +ISEXEC:FALSE +-336.435240:-29.737380:-900.000000 +-265.260240:-39.737380:-900.000000 +PORT +title:"Layer-1" +FIN_BOX +BOX +creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box31 +ISEXEC:FALSE +-327.541464:-46.787001:-900.000000 +-256.366464:-56.787001:-900.000000 +PORT +title:"Layer-2" +FIN_BOX +BOX +wx:LayoutLine:Box32 +ISEXEC:FALSE +-370.565590:-78.671647:-900.000000 +-313.005590:-88.671647:-900.000000 +PORT +WinTitle:"Layer-Base" +FIN_BOX +BOX +wx:LayoutTab:Box33 +ISEXEC:FALSE +-366.766856:-142.939770:-900.000000 +-309.206856:-152.939770:-900.000000 +PORT +WinTitle:"Superpose" FIN_BOX -CONNECTIONS:49 +BOX +creaVtk:VectorsTensors_manualread_Widget:Box35 +ISEXEC:FALSE +-296.945953:-100.622592:-900.000000 +-225.770953:-110.622592:-900.000000 +FIN_BOX +CONNECTIONS:65 CONNECTION viewer:Renderer1:showNpoints:Renderer NumberOfControlPoints:0 @@ -199,29 +219,24 @@ NumberOfControlPoints:0 CONNECTION viewer:Widget:main:Widget2 NumberOfControlPoints:2 -102.166946:9.835481:900.000000 -182.203140:-101.401443:900.000000 +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 +-13.630965:26.438316:-900.000000 CONNECTION Box04:Out:viewer:In NumberOfControlPoints:0 CONNECTION -viewer:wxVtkBaseView4:Box10:WxVtkBaseView -NumberOfControlPoints:2 --18.196058:-49.129044:900.000000 --35.599224:-80.206123:900.000000 -CONNECTION viewer:BoxChange:Box11:BoxExecute NumberOfControlPoints:2 --162.452789:-13.599417:900.000000 --129.994598:-92.765739:900.000000 +-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 +41.886299:-51.200848:-900.000000 CONNECTION viewer:wxVtkBaseView2:Box11:WxVtkBaseView1 NumberOfControlPoints:0 @@ -246,7 +261,7 @@ NumberOfControlPoints:0 CONNECTION Box04:Out:Box22:In NumberOfControlPoints:1 -53.882099:-78.422401:900.000000 +53.882099:-78.422401:-900.000000 CONNECTION Box22:Widget:Box12:Widget1 NumberOfControlPoints:0 @@ -256,7 +271,7 @@ NumberOfControlPoints:0 CONNECTION Box04:Out:Box16:In NumberOfControlPoints:1 -75.021088:-98.781540:900.000000 +75.021088:-98.781540:-900.000000 CONNECTION Box18:Widget:Box06:Widget1 NumberOfControlPoints:0 @@ -270,12 +285,6 @@ CONNECTION Box19:Widget:Box06:Widget2 NumberOfControlPoints:0 CONNECTION -Box10:Widget:Box20:Widget1 -NumberOfControlPoints:0 -CONNECTION -Box20:Widget:Box06:Widget3 -NumberOfControlPoints:0 -CONNECTION Box11:Widget:Box23:Widget1 NumberOfControlPoints:0 CONNECTION @@ -344,5 +353,62 @@ NumberOfControlPoints:0 CONNECTION Box04:Out:Box28:in NumberOfControlPoints:1 -53.842674:-119.647697:900.000000 +53.842674:-119.647697:-900.000000 +CONNECTION +Box29:Widget:Box20:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer:Renderer1:Box30:Rederer3D +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView2:Box30:vtkbaseview1 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView2:Box10:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView3:Box10:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView4:Box10:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView3:Box30:vtkbaseview2 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView4:Box30:vtkbaseview3 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView2:Box31:vtkbaseview1 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView3:Box31:vtkbaseview2 +NumberOfControlPoints:0 +CONNECTION +viewer:wxVtkBaseView4:Box31:vtkbaseview3 +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box32:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box32:Widget:Box29:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box31:widgetLayer:Box29:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box30:widgetLayer:Box29:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box20:Widget:Box33:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box35:widget:Box33:Widget2 +NumberOfControlPoints:0 +CONNECTION +viewer:Renderer1:Box35:vtkRenderer +NumberOfControlPoints:0 +CONNECTION +Box33:Widget:Box13:Widget3 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs index e63e3c0..65e6240 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.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.2 BBS BlackBox Script -# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - ImageTool.bbs # ---------------------------------- # BBTK GEditor Script @@ -36,119 +11,218 @@ include itkvtk include creaMaracasVisu include wx include creaImageIO -include creaMiniToolsBase +include toolsbbtk include creaMiniTools include std -include toolsbbtk +include creaVtk author "info-dev@creatis.insa-lyon.fr" description "Show N Points" category "demo" -new ViewerNV viewer +new creaMaracasVisu:ViewerNV viewer set viewer.nTypeView "5 1 2 0" -new ShowNPoints showNpoints +new creaMaracasVisu:ShowNPoints showNpoints set showNpoints.Radio "10" set showNpoints.WinTitle "N-Points" -new LayoutSplit main +new wx:LayoutSplit main set main.Orientation "H" -new ImagesChooserDialogBox Box04 +new creaImageIO:ImagesChooserDialogBox Box04 -new LayoutTab Box06 +new wx:LayoutTab Box06 set Box06.WinTitle Image -new ColorLayerImageView Box10 +new creaMaracasVisu:ColorLayerImageView Box10 set Box10.WinTitle "Image Layer" -new ManualPaint Box11 +new creaMaracasVisu:ManualPaint Box11 set Box11.WinTitle "Paint" -new LayoutTab Box12 +new wx:LayoutTab Box12 set Box12.WinTitle Filters -new LayoutTab Box13 +new wx:LayoutTab Box13 -new SaveMHD-Button Box21 +new toolsbbtk:SaveMHD-Button Box21 -new ThresholdWidget Box22 +new creaMiniTools:ThresholdWidget Box22 -new ConnectivityWidget Box16 +new creaMiniTools:ConnectivityWidget Box16 -new LayoutLine Box18 +new wx:LayoutLine Box18 set Box18.WinTitle "show N-Points" -new LayoutLine Box19 +new wx:LayoutLine Box19 set Box19.WinTitle "Save MHD" -new LayoutLine Box20 - set Box20.WinTitle "Layer Image" +new wx:LayoutLine Box20 + set Box20.WinTitle "Layers" -new LayoutLine Box23 +new wx:LayoutLine Box23 set Box23.Orientation H set Box23.WinTitle "ManualPaint" -new CutModule2 Box24 +new creaMaracasVisu:CutModule2 Box24 + +new std:MultipleInputs Box25 + +new creaMiniTools:ErodeWidget Box26 -new MultipleInputs Box25 +new creaMiniTools:DilateWidget Box27 -new ErodeWidget Box26 +new toolsbbtk:ImageVtkPropertiesWidget Box28 -new DilateWidget Box27 +new wx:LayoutTab Box29 -new ImageVtkPropertiesWidget Box28 +new creaMiniTools:LayerCol-VolRend-SurRend_Widget Box30 + set Box30.title "Layer-1" + +new creaMiniTools:LayerCol-VolRend-SurRend_Widget Box31 + set Box31.title "Layer-2" + +new wx:LayoutLine Box32 + set Box32.WinTitle "Layer-Base" + +new wx:LayoutTab Box33 + set Box33.WinTitle "Superpose" + +new creaVtk:VectorsTensors_manualread_Widget Box35 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 viewer.wxVtkBaseView4 Box10.WxVtkBaseView + 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 Box04.Out Box22.In + connect Box22.Widget Box12.Widget1 + connect Box16.Widget Box12.Widget2 + connect Box04.Out Box16.In + connect Box18.Widget Box06.Widget1 + connect showNpoints.Widget Box18.Widget1 + connect Box21.Widget Box19.Widget1 + connect Box19.Widget Box06.Widget2 -connect Box10.Widget Box20.Widget1 -connect Box20.Widget Box06.Widget3 + connect Box11.Widget Box23.Widget1 + connect Box23.Widget Box06.Widget4 + connect Box24.Widget Box23.Widget2 + connect viewer.BoxChange Box24.BoxExecute + connect Box04.Out Box24.In + connect viewer.Interactor1 Box24.Interactor + connect viewer.Renderer1 Box24.Renderer + connect viewer.Renderer1 Box22.vtkRenderer + connect viewer.Renderer1 Box16.vtkRenderer + connect Box16.BoxChange Box25.In2 + connect Box22.BoxChange Box25.In1 + connect Box27.Widget Box12.Widget3 + connect Box27.BoxChange Box25.In3 + connect Box26.BoxChange Box25.In4 + connect Box26.Widget Box12.Widget4 + connect viewer.Renderer1 Box27.vtkRenderer + connect viewer.Renderer1 Box26.vtkRenderer + connect Box04.Out Box26.In + connect Box04.Out Box27.In + connect viewer.Point Box16.point + connect Box25.Out viewer.BoxExecute + connect Box28.widget Box06.Widget5 + connect Box04.Out Box28.in +connect Box29.Widget Box20.Widget1 + +connect viewer.Renderer1 Box30.Rederer3D + +connect viewer.wxVtkBaseView2 Box30.vtkbaseview1 + +connect viewer.wxVtkBaseView2 Box10.WxVtkBaseView + +connect viewer.wxVtkBaseView3 Box10.WxVtkBaseView1 + +connect viewer.wxVtkBaseView4 Box10.WxVtkBaseView2 + +connect viewer.wxVtkBaseView3 Box30.vtkbaseview2 + +connect viewer.wxVtkBaseView4 Box30.vtkbaseview3 + +connect viewer.wxVtkBaseView2 Box31.vtkbaseview1 + +connect viewer.wxVtkBaseView3 Box31.vtkbaseview2 + +connect viewer.wxVtkBaseView4 Box31.vtkbaseview3 + +connect Box10.Widget Box32.Widget1 + +connect Box32.Widget Box29.Widget3 + +connect Box31.widgetLayer Box29.Widget2 + +connect Box30.widgetLayer Box29.Widget1 + +connect Box20.Widget Box33.Widget1 + +connect Box35.widget Box33.Widget2 + +connect viewer.Renderer1 Box35.vtkRenderer + +connect Box33.Widget Box13.Widget3 + + + +# Complex input ports exec main diff --git a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg new file mode 100644 index 0000000..152b5cb --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg @@ -0,0 +1,449 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:LayerCol-VolRend-SurRend_Widget +PACKAGENAME:creaMiniTools +COMPLEXOUTPUTS:1 +COMPLEX_PORT +widgetLayer +-313.229625:-230.113493:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:5 +COMPLEX_PORT +Rederer3D +-69.799718:220.214310:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +vtkbaseview1 +-271.624173:221.923054:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +vtkbaseview2 +-252.097938:222.704103:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +vtkbaseview3 +-239.210623:223.094628:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +title +-338.837206:210.874114:-900.000000 +FIN_COMPLEX_PORT +BOXES:31 +BOX +wx:LayoutLine:Box06 +ISEXEC:FALSE +-207.166610:-70.862648:-900.000000 +-133.225481:-80.862648:-900.000000 +PORT +WinTitle:"Superpose" +FIN_BOX +BOX +wx:CommandButton:Box23 +ISEXEC:FALSE +-234.708588:143.467277:-900.000000 +-163.073828:133.467277:-900.000000 +PORT +Label:"Load Image" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box24 +ISEXEC:FALSE +-176.824215:116.324644:-900.000000 +-105.649215:106.324644:-900.000000 +PORT +BoxProcessMode:"Manual" +PORT +Title:"Superpose Image" +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box26 +ISEXEC:FALSE +-311.253398:38.046824:-900.000000 +-158.990968:28.046824:-900.000000 +PORT +TypeControlsInterface:"2" +PORT +lstTransparenceBoundaries:"0" +FIN_BOX +BOX +vtk:VolumeRenderer:Box32 +ISEXEC:FALSE +-170.106244:24.536556:-900.000000 +-124.531244:14.536556:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:TransferFunctionView:Box33 +ISEXEC:FALSE +-181.055066:49.510704:-900.000000 +-109.880066:39.510704:-900.000000 +FIN_BOX +BOX +creaVtk:Actor:Box34 +ISEXEC:FALSE +-179.871785:5.859561:-900.000000 +-147.096785:-4.140439:-900.000000 +FIN_BOX +BOX +vtk:UpdateRender:Box35 +ISEXEC:FALSE +-64.879661:-47.894946:-900.000000 +-19.304661:-57.894946:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +wxvtk:IsoSurfaceWidget:Box36 +ISEXEC:FALSE +-101.102074:49.226822:-900.000000 +-55.527074:39.226822:-900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box38 +ISEXEC:FALSE +-147.205983:98.428002:-900.000000 +-76.030983:88.428002:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box27 +ISEXEC:FALSE +-264.000472:-35.486992:-900.000000 +-150.723103:-45.486992:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box28 +ISEXEC:FALSE +-256.686286:-4.045608:-900.000000 +-148.267297:-14.045608:-900.000000 +PORT +WinTitle:"Layer" +FIN_BOX +BOX +wx:LayoutTab:Box29 +ISEXEC:FALSE +-199.875442:-34.157429:-900.000000 +-130.769674:-44.157429:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box30 +ISEXEC:FALSE +-203.620049:-15.546881:-900.000000 +-131.997577:-25.546881:-900.000000 +PORT +WinTitle:"Volume Rendering" +FIN_BOX +BOX +wx:LayoutTab:Box31 +ISEXEC:FALSE +-139.410446:-39.552703:-900.000000 +-93.835446:-49.552703:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box37 +ISEXEC:FALSE +-107.658393:23.348305:-900.000000 +-62.083393:13.348305:-900.000000 +PORT +WinTitle:"Surface Rendering-1" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box39 +ISEXEC:FALSE +-165.424007:-86.134334:-900.000000 +-117.252496:-96.134334:-900.000000 +PORT +WinTitle:"ups" +FIN_BOX +BOX +wx:LayoutTab:Box40 +ISEXEC:FALSE +-233.444207:-158.311180:-900.000000 +-141.206853:-168.311180:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box41 +ISEXEC:FALSE +-337.403182:-188.564708:-900.000000 +-191.612339:-198.564708:-900.000000 +PORT +Proportion:"10" +PORT +WinTitle:"Layer" +FIN_BOX +BOX +wx:LayoutLine:Box43 +ISEXEC:FALSE +-178.165599:-107.081551:-900.000000 +-124.323182:-117.081551:-900.000000 +PORT +WinTitle:"Viewer" +FIN_BOX +BOX +toolsbbtk:ImageVtkPropertiesWidget:Box44 +ISEXEC:FALSE +-99.752145:-110.938620:-900.000000 +-28.577145:-120.938620:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box45 +ISEXEC:FALSE +-145.839664:-68.442286:-900.000000 +-74.664664:-78.442286:-900.000000 +FIN_BOX +BOX +wxvtk:IsoSurfaceWidget:Box47 +ISEXEC:FALSE +-37.295136:40.022196:-900.000000 +8.279864:30.022196:-900.000000 +PORT +Colour:"1 0 0" +FIN_BOX +BOX +wx:LayoutLine:Box48 +ISEXEC:FALSE +-41.417736:21.039216:-900.000000 +4.157264:11.039216:-900.000000 +PORT +WinTitle:"Surface Rendering-2" +FIN_BOX +BOX +wxvtk:IsoSurfaceWidget:Box49 +ISEXEC:FALSE +-0.664725:-1.226392:-900.000000 +44.910275:-11.226392:-900.000000 +PORT +Colour:"0 0 1" +FIN_BOX +BOX +wx:LayoutLine:Box50 +ISEXEC:FALSE +-4.787325:-20.209373:-900.000000 +40.787675:-30.209373:-900.000000 +PORT +WinTitle:"Surface Rendering-3" +FIN_BOX +BOX +std:MultipleInputs:Box52 +ISEXEC:FALSE +-71.866642:-94.114800:-900.000000 +-26.291642:-104.114800:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box53 +ISEXEC:FALSE +-87.189904:-126.111161:-900.000000 +-41.614904:-136.111161:-900.000000 +PORT +Proportion:"90" +FIN_BOX +BOX +wx:CommandButton:Box54 +ISEXEC:FALSE +-52.105509:-65.600650:-900.000000 +-6.530509:-75.600650:-900.000000 +PORT +Label:"Refresh" +FIN_BOX +BOX +wx:LayoutLine:Box55 +ISEXEC:FALSE +-131.157104:-144.203373:-900.000000 +-85.582104:-154.203373:-900.000000 +PORT +WinTitle:"Image Properties" +FIN_BOX +BOX +std:MagicBox:Box56 +ISEXEC:FALSE +-74.140762:188.218014:-900.000000 +-28.565762:178.218014:-900.000000 +FIN_BOX +CONNECTIONS:60 +CONNECTION +Box23:BoxChange:Box24:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box26:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box33:Active:Box34:Active +NumberOfControlPoints:0 +CONNECTION +Box33:ColorFunction:Box32:ColorFunction1 +NumberOfControlPoints:0 +CONNECTION +Box33:OpacityFunction:Box32:OpacityFunction +NumberOfControlPoints:0 +CONNECTION +Box32:Out:Box34:In +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box38:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box33:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box32:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box36:In +NumberOfControlPoints:0 +CONNECTION +Box26:Widget:Box28:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box28:Widget:Box27:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box27:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box30:Widget:Box29:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box33:Widget:Box30:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box29:Widget:Box06:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box37:Widget:Box31:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box31:Widget:Box06:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box35:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box36:Widget:Box37:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box36:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box33:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box32:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box23:Widget:Box41:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box40:Widget:Box41:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box40:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box39:Widget:Box43:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box43:Widget:Box40:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box24:FileName:Box44:FileName +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box39:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box45:In +NumberOfControlPoints:0 +CONNECTION +Box47:Widget:Box48:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box47:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box47:In +NumberOfControlPoints:0 +CONNECTION +Box48:Widget:Box31:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box49:Widget:Box50:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box50:Widget:Box31:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box49:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box49:In +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box52:In1 +NumberOfControlPoints:0 +CONNECTION +Box52:BoxChange:Box44:boxExecute +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box44:in +NumberOfControlPoints:0 +CONNECTION +Box44:widget:Box53:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box54:Widget:Box53:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box54:BoxChange:Box52:In2 +NumberOfControlPoints:0 +CONNECTION +Box53:Widget:Box55:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box55:Widget:Box40:Widget3 +NumberOfControlPoints:0 +CONNECTION +Rederer3D:Rederer3D:Box56:In +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box34:Renderer +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box36:vtkRenderer +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box35:Renderer +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box47:vtkRenderer +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box49:vtkRenderer +NumberOfControlPoints:0 +CONNECTION +Box41:Widget:widgetLayer:widgetLayer +NumberOfControlPoints:0 +CONNECTION +vtkbaseview1:vtkbaseview1:Box26:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +vtkbaseview2:vtkbaseview2:Box26:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +vtkbaseview3:vtkbaseview3:Box26:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +title:title:Box41:WinTitle +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs new file mode 100644 index 0000000..fab2798 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs @@ -0,0 +1,175 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include creaImageIO +include creaMaracasVisu +include vtk +include creaVtk +include wxvtk +include toolsbbtk +include std + +define LayerCol-VolRend-SurRend_Widget creaMiniTools + +author "Author ??" +description "Description ??" + +category "" + +new wx:LayoutLine Box06 + set Box06.WinTitle "Superpose" + +new wx:CommandButton Box23 + set Box23.Label "Load Image" + +new creaImageIO:ImagesChooserDialogBox Box24 + set Box24.BoxProcessMode "Manual" + set Box24.Title "Superpose Image" + +new creaMaracasVisu:ColorLayerImageView Box26 + set Box26.TypeControlsInterface "2" + set Box26.lstTransparenceBoundaries "0" + +new vtk:VolumeRenderer Box32 + +new creaMaracasVisu:TransferFunctionView Box33 + +new creaVtk:Actor Box34 + +new vtk:UpdateRender Box35 + set Box35.Active "true" + +new wxvtk:IsoSurfaceWidget Box36 + +new vtk:vtkImageDataPointerRelay Box38 + +new wx:LayoutTab Box27 + +new wx:LayoutLine Box28 + set Box28.WinTitle "Layer" + +new wx:LayoutTab Box29 + +new wx:LayoutLine Box30 + set Box30.WinTitle "Volume Rendering" + +new wx:LayoutTab Box31 + +new wx:LayoutLine Box37 + set Box37.WinTitle "Surface Rendering-1" + +new creaMaracasVisu:ViewerNV Box39 + set Box39.WinTitle "ups" + +new wx:LayoutTab Box40 + +new wx:LayoutSplit Box41 + set Box41.Proportion "10" + set Box41.WinTitle "Layer" + +new wx:LayoutLine Box43 + set Box43.WinTitle "Viewer" + +new toolsbbtk:ImageVtkPropertiesWidget Box44 + +new creaMaracasVisu:ImageChangeInformation Box45 + +new wxvtk:IsoSurfaceWidget Box47 + set Box47.Colour "1 0 0" + +new wx:LayoutLine Box48 + set Box48.WinTitle "Surface Rendering-2" + +new wxvtk:IsoSurfaceWidget Box49 + set Box49.Colour "0 0 1" + +new wx:LayoutLine Box50 + set Box50.WinTitle "Surface Rendering-3" + +new std:MultipleInputs Box52 + +new wx:LayoutSplit Box53 + set Box53.Proportion "90" + +new wx:CommandButton Box54 + set Box54.Label "Refresh" + +new wx:LayoutLine Box55 + set Box55.WinTitle "Image Properties" + +new std:MagicBox Box56 + + +connect Box23.BoxChange Box24.BoxExecute +connect Box23.BoxChange Box26.BoxExecute +connect Box33.Active Box34.Active +connect Box33.ColorFunction Box32.ColorFunction1 +connect Box33.OpacityFunction Box32.OpacityFunction +connect Box32.Out Box34.In +connect Box24.Out Box38.In +connect Box38.Out Box26.In +connect Box38.Out Box33.In +connect Box38.Out Box32.In +connect Box38.Out Box36.In +connect Box26.Widget Box28.Widget1 +connect Box28.Widget Box27.Widget1 +connect Box27.Widget Box06.Widget2 +connect Box30.Widget Box29.Widget1 +connect Box33.Widget Box30.Widget1 +connect Box29.Widget Box06.Widget3 +connect Box37.Widget Box31.Widget1 +connect Box31.Widget Box06.Widget4 +connect Box34.BoxChange Box35.BoxExecute +connect Box36.Widget Box37.Widget1 +connect Box23.BoxChange Box36.BoxExecute +connect Box23.BoxChange Box33.BoxExecute +connect Box23.BoxChange Box32.BoxExecute +connect Box23.Widget Box41.Widget1 +connect Box40.Widget Box41.Widget2 +connect Box06.Widget Box40.Widget1 +connect Box39.Widget Box43.Widget1 +connect Box43.Widget Box40.Widget2 +connect Box24.FileName Box44.FileName +connect Box23.BoxChange Box39.BoxExecute +connect Box45.Out Box39.In +connect Box38.Out Box45.In +connect Box47.Widget Box48.Widget1 +connect Box23.BoxChange Box47.BoxExecute +connect Box38.Out Box47.In +connect Box48.Widget Box31.Widget2 +connect Box49.Widget Box50.Widget1 +connect Box50.Widget Box31.Widget3 +connect Box23.BoxChange Box49.BoxExecute +connect Box38.Out Box49.In +connect Box23.BoxChange Box52.In1 +connect Box52.BoxChange Box44.boxExecute +connect Box45.Out Box44.in +connect Box44.widget Box53.Widget1 +connect Box54.Widget Box53.Widget2 +connect Box54.BoxChange Box52.In2 +connect Box53.Widget Box55.Widget1 +connect Box55.Widget Box40.Widget3 +connect Box56.Out Box34.Renderer +connect Box56.Out Box36.vtkRenderer +connect Box56.Out Box35.Renderer +connect Box56.Out Box47.vtkRenderer +connect Box56.Out Box49.vtkRenderer + +# Complex input ports +input Rederer3D Box56.In " " +input vtkbaseview1 Box26.WxVtkBaseView " " +input vtkbaseview2 Box26.WxVtkBaseView1 " " +input vtkbaseview3 Box26.WxVtkBaseView2 " " +input title Box41.WinTitle " " + +# Complex output ports +output widgetLayer Box41.Widget " " + +message + +endefine -- 2.47.1