From: Eduardo DAVILA Date: Fri, 27 Nov 2020 11:23:42 +0000 (+0100) Subject: random option VolumVector visu X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=36eca4367f9ef896359762f61b99b6768ef28e06;p=creaVtk.git random option VolumVector visu --- diff --git a/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbg b/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbg index 8d14a6d..6e6c30c 100644 --- a/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbg +++ b/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbg +# - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbg # ---------------------------------- APP_START @@ -10,7 +10,7 @@ AUTHOR:Author ?? COMPLEXBOX:TRUE COMPLEXBOXNAME:VolumeVectorVisu_Interface PACKAGENAME:creaVtk -COMPLEXOUTPUTS:8 +COMPLEXOUTPUTS:9 COMPLEX_PORT boxChange -52.001184:-76.860241:-900.000000 @@ -25,7 +25,7 @@ AcitiveVector FIN_COMPLEX_PORT COMPLEX_PORT Opacity -107.702044:-78.602126:-900.000000 +110.514564:-76.141171:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT ScaleFactor @@ -43,13 +43,17 @@ COMPLEX_PORT ActiveBoxWidget -77.397252:-75.636223:-900.000000 FIN_COMPLEX_PORT +COMPLEX_PORT +RandomTypeOut +80.971822:-72.710043:-900.000000 +FIN_COMPLEX_PORT COMPLEXINPUTS:0 -BOXES:13 +BOXES:16 BOX wx:Slider:Box00 ISEXEC:FALSE -37.599484:64.834591:-900.000000 -88.999484:54.834591:-900.000000 +28.107228:92.608230:-900.000000 +79.507228:82.608230:-900.000000 PORT ChangeResolution:"true" PORT @@ -57,7 +61,7 @@ In:"30" PORT Label:"true" PORT -Max:"50" +Max:"10000" PORT Min:"1" PORT @@ -68,8 +72,8 @@ FIN_BOX BOX std:MultipleInputs:Box02 ISEXEC:FALSE --26.820557:-11.948057:-900.000000 -12.879443:-21.948057:-900.000000 +-23.708229:-13.504221:-900.000000 +15.991771:-23.504221:-900.000000 PORT BoxProcessMode:"Reactive" FIN_BOX @@ -90,8 +94,8 @@ FIN_BOX BOX wx:CheckBox:Box05 ISEXEC:FALSE --1.305237:90.909899:-900.000000 -35.019763:80.909899:-900.000000 +-20.992880:91.261464:-900.000000 +15.332120:81.261464:-900.000000 PORT ReactiveOnKeystroke:"true" PORT @@ -172,8 +176,8 @@ FIN_BOX BOX wx:LayoutLine:Box12 ISEXEC:FALSE --45.693959:64.121913:-900.000000 -11.866041:54.121913:-900.000000 +-56.592475:61.660958:-900.000000 +0.967525:51.660958:-900.000000 PORT Orientation:"H" PORT @@ -182,14 +186,44 @@ FIN_BOX BOX wx:CheckBox:Box13 ISEXEC:FALSE --82.036132:89.953646:-900.000000 --45.711132:79.953646:-900.000000 +-98.559689:94.875557:-900.000000 +-62.234689:84.875557:-900.000000 PORT ReactiveOnKeystroke:"true" PORT Title:"Active Box" FIN_BOX -CONNECTIONS:26 +BOX +wx:RadioButton:Box15 +ISEXEC:FALSE +84.727176:93.036895:-900.000000 +148.447176:83.036895:-900.000000 +PORT +In0:"No random" +PORT +In1:"Random (0)" +FIN_BOX +BOX +std:MathOperation:Box16 +ISEXEC:FALSE +56.218447:68.235579:-900.000000 +97.268447:58.235579:-900.000000 +PORT +In2:"-1" +PORT +Type:"0" +FIN_BOX +BOX +wx:LayoutLine:Box17 +ISEXEC:FALSE +63.876692:6.529194:-900.000000 +121.436692:-3.470806:-900.000000 +PORT +Orientation:"H" +PORT +WinTitle:"Volume flield" +FIN_BOX +CONNECTIONS:31 CONNECTION Box00:BoxChange:Box02:In1 NumberOfControlPoints:0 @@ -251,9 +285,6 @@ CONNECTION Box06:Widget:Box03:Widget6 NumberOfControlPoints:0 CONNECTION -Box00:Widget:Box03:Widget2 -NumberOfControlPoints:0 -CONNECTION Box12:Widget:Box03:Widget1 NumberOfControlPoints:0 CONNECTION @@ -268,4 +299,22 @@ NumberOfControlPoints:0 CONNECTION Box13:Out:ActiveBoxWidget:ActiveBoxWidget NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Box17:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box17:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box03:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box16:In1 +NumberOfControlPoints:0 +CONNECTION +Box16:Out:RandomTypeOut:RandomTypeOut +NumberOfControlPoints:0 +CONNECTION +Box15:BoxChange:Box02:In8 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbs b/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbs index 1540add..173bacf 100644 --- a/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbs +++ b/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) -# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbs +# - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Interface.bbs # ---------------------------------- include std @@ -19,7 +19,7 @@ new wx:Slider Box00 set Box00.ChangeResolution "true" set Box00.In "30" set Box00.Label "true" - set Box00.Max "50" + set Box00.Max "10000" set Box00.Min "1" set Box00.ReactiveOnTrack "true" set Box00.Title "Ratio" @@ -74,6 +74,18 @@ new wx:CheckBox Box13 set Box13.ReactiveOnKeystroke "true" set Box13.Title "Active Box" +new wx:RadioButton Box15 + set Box15.In0 "No random" + set Box15.In1 "Random (0)" + +new std:MathOperation Box16 + set Box16.In2 "-1" + set Box16.Type "0" + +new wx:LayoutLine Box17 + set Box17.Orientation "H" + set Box17.WinTitle "Volume flield" + connect Box00.BoxChange Box02.In1 connect Box03.Widget Box04.Widget1 @@ -88,11 +100,15 @@ connect Box10.Widget Box11.Widget2 connect Box10.BoxChange Box02.In6 connect Box11.Widget Box03.Widget7 connect Box06.Widget Box03.Widget6 -connect Box00.Widget Box03.Widget2 connect Box12.Widget Box03.Widget1 connect Box05.Widget Box12.Widget2 connect Box13.Widget Box12.Widget1 connect Box13.BoxChange Box02.In2 +connect Box00.Widget Box17.Widget2 +connect Box15.Widget Box17.Widget4 +connect Box17.Widget Box03.Widget3 +connect Box15.Out Box16.In1 +connect Box15.BoxChange Box02.In8 # Complex input ports @@ -105,6 +121,7 @@ output ScaleFactor Box09.Out " " output Ratio Box00.Out " " output form Box10.Out " " output ActiveBoxWidget Box13.Out " " +output RandomTypeOut Box16.Out " " endefine diff --git a/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbg b/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbg index b8a5942..10526c8 100644 --- a/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbg +++ b/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbg +# - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbg # ---------------------------------- APP_START @@ -93,7 +93,7 @@ ISEXEC:FALSE -64.370903:22.659312:-900.000000 -24.670903:12.659312:-900.000000 FIN_BOX -CONNECTIONS:24 +CONNECTIONS:25 CONNECTION Box02:AcitiveVector:Box00:Active NumberOfControlPoints:0 @@ -166,4 +166,7 @@ NumberOfControlPoints:0 CONNECTION Box06:Out:Box09:ImageInitSize NumberOfControlPoints:0 +CONNECTION +Box02:RandomTypeOut:Box07:RandomType +NumberOfControlPoints:0 APP_END diff --git a/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbs b/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbs index 3e28e25..3811441 100644 --- a/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbs +++ b/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) -# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbs +# - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VolumeVectorVisu_Widget.bbs # ---------------------------------- include std @@ -57,6 +57,7 @@ connect Box10.BoxChange Box00.BoxExecute connect Box02.ActiveBoxWidget Box09.Active connect Box02.AcitiveVector Box07.Active connect Box06.Out Box09.ImageInitSize +connect Box02.RandomTypeOut Box07.RandomType # Complex input ports input renderer Box04.In " "