From: Eduardo DAVILA Date: Tue, 24 Nov 2020 09:29:26 +0000 (+0100) Subject: exampleSlicesImages3D X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=bcf0b568558efa08f76683e5061828ffea80acb7;p=creaMiniTools.git exampleSlicesImages3D --- diff --git a/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbg b/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbg new file mode 100644 index 0000000..26427cd --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbg @@ -0,0 +1,146 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /home/davila/Creatis/C11/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:10 +BOX +vtk:LoadHola:Box00 +ISEXEC:FALSE +42.970380:121.375067:-900.000000 +78.520380:111.375067:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +12.381685:53.142024:-900.000000 +76.101685:43.142024:-900.000000 +PORT +nTypeView:"6 1 2 0" +FIN_BOX +BOX +wx:LayoutSplit:Box02 +ISEXEC:TRUE +-40.639086:-106.841772:-900.000000 +-1.559086:-116.841772:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutLine:Box03 +ISEXEC:FALSE +-99.739071:-58.494263:-900.000000 +-42.179071:-68.494263:-900.000000 +FIN_BOX +BOX +wx:Slider:Box06 +ISEXEC:FALSE +-88.015958:64.249653:-900.000000 +-36.615958:54.249653:-900.000000 +PORT +In:"100" +PORT +Max:"100" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +std:Div:Box07 +ISEXEC:FALSE +-32.712798:46.677489:-900.000000 +-3.387798:36.677489:-900.000000 +PORT +In2:"100" +FIN_BOX +BOX +wx:RadioButton:Box17 +ISEXEC:FALSE +-36.357203:77.589847:-900.000000 +27.362797:67.589847:-900.000000 +PORT +In0:"Inside" +PORT +In1:"Outside" +FIN_BOX +BOX +creaMiniTools:SlicesImages3D:Box15 +ISEXEC:FALSE +68.803075:-84.126000:-900.000000 +110.303075:-94.126000:-900.000000 +PORT +TypeImageCutByAxis:"x-y-z+" +FIN_BOX +BOX +creaVtk:ScalarsToColors:Box16 +ISEXEC:FALSE +98.852020:-30.272607:-900.000000 +140.377020:-40.272607:-900.000000 +PORT +Range:"0 2000" +PORT +Type:"1" +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box21 +ISEXEC:FALSE +73.366063:-1.822005:-900.000000 +121.491063:-11.822005:-900.000000 +PORT +A:"100" +PORT +B:"2000" +PORT +Type:"2" +FIN_BOX +CONNECTIONS:14 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box02:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box02:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box03:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box07:In1 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box03:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box15:opacity +NumberOfControlPoints:0 +CONNECTION +Box01:Point:Box15:point +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box15:insidevol +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box15:render +NumberOfControlPoints:0 +CONNECTION +Box01:BoxChange:Box15:boxExecute +NumberOfControlPoints:0 +CONNECTION +Box16:LookupTable:Box15:lookuptable +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box21:In +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box15:InputImage +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbs b/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbs new file mode 100644 index 0000000..69c451d --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbs @@ -0,0 +1,89 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /home/davila/Creatis/C11/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include creaMaracasVisu +include wx +include std +include creaMiniTools +include creaVtk + +author "Author ??" +description "Description ??" +category "" + +new vtk:LoadHola Box00 + +new creaMaracasVisu:ViewerNV Box01 + set Box01.nTypeView "6 1 2 0" + +new wx:LayoutSplit Box02 + set Box02.Orientation "H" + +new wx:LayoutLine Box03 + +new wx:Slider Box06 + set Box06.In "100" + set Box06.Max "100" + set Box06.Min "0" + set Box06.ReactiveOnTrack "true" + +new std:Div Box07 + set Box07.In2 "100" + +new wx:RadioButton Box17 + set Box17.In0 "Inside" + set Box17.In1 "Outside" + +new creaMiniTools:SlicesImages3D Box15 + set Box15.TypeImageCutByAxis "x-y-z+" + +new creaVtk:ScalarsToColors Box16 + set Box16.Range "0 2000" + set Box16.Type "1" + +new vtk:RescaleSlopeIntercept Box21 + set Box21.A "100" + set Box21.B "2000" + set Box21.Type "2" + + +connect Box00.Out Box01.In + +connect Box01.Widget Box02.Widget2 + +connect Box03.Widget Box02.Widget1 + +connect Box06.Widget Box03.Widget1 + +connect Box06.Out Box07.In1 + +connect Box17.Widget Box03.Widget2 + +connect Box07.Out Box15.opacity + +connect Box01.Point Box15.point + +connect Box17.Out Box15.insidevol + +connect Box01.Renderer1 Box15.render + +connect Box01.BoxChange Box15.boxExecute + +connect Box16.LookupTable Box15.lookuptable + +connect Box00.Out Box21.In + +connect Box21.Out Box15.InputImage + + + +# Complex input ports +exec Box02