From: Eduardo DAVILA Date: Mon, 19 Aug 2013 14:04:36 +0000 (+0200) Subject: 2112 Feature TransformWidget bbtk Box X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=30662a7f797f2cc665111effd2e05c7cc207c048;p=bbtk.git 2112 Feature TransformWidget bbtk Box --- diff --git a/packages/vtk/bbs/boxes/TransformWidget.bbg b/packages/vtk/bbs/boxes/TransformWidget.bbg new file mode 100644 index 0000000..5a54fba --- /dev/null +++ b/packages/vtk/bbs/boxes/TransformWidget.bbg @@ -0,0 +1,493 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /home/davila/Creatis/All/creatools_source/bbtk/packages/vtk/bbs/boxes/TransformWidget.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:TransformWidget +PACKAGENAME:vtk +COMPLEXOUTPUTS:3 +COMPLEX_PORT +Transform +-91.972612:-170.022477:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Window +18.379834:-171.995414:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +BoxChange +-190.649216:-158.865916:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:0 +BOXES:29 +BOX +wx:LayoutTab:Box00 +ISEXEC:FALSE +14.507537:-147.233687:-900.000000 +60.082537:-157.233687:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box01 +ISEXEC:FALSE +-41.534584:-108.537426:-900.000000 +4.040416:-118.537426:-900.000000 +PORT +WinTitle:"Rotation" +FIN_BOX +BOX +wx:Slider:Box03 +ISEXEC:FALSE +-197.665356:146.434686:-900.000000 +-132.404978:136.434686:-900.000000 +PORT +ChangeResolution:"true" +PORT +Label:"true" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation X" +FIN_BOX +BOX +wx:Slider:Box04 +ISEXEC:FALSE +-153.996282:129.813557:-900.000000 +-119.179436:119.813557:-900.000000 +PORT +ChangeResolution:"true" +PORT +Label:"true" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation Y" +FIN_BOX +BOX +wx:Slider:Box05 +ISEXEC:FALSE +-68.019168:146.959188:-900.000000 +-35.244168:136.959188:-900.000000 +PORT +ChangeResolution:"true" +PORT +Label:"true" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation Z" +FIN_BOX +BOX +wx:LayoutLine:Box06 +ISEXEC:FALSE +23.720064:-108.213700:-900.000000 +69.295064:-118.213700:-900.000000 +PORT +WinTitle:"Translate" +FIN_BOX +BOX +wx:Slider:Box07 +ISEXEC:FALSE +-11.514057:86.479654:-900.000000 +21.260943:76.479654:-900.000000 +PORT +ChangeResolution:"true" +PORT +Label:"true" +PORT +Max:"1800" +PORT +Min:"-1800" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Translation X" +FIN_BOX +BOX +wx:Slider:Box08 +ISEXEC:FALSE +6.385006:71.964258:-900.000000 +39.160006:61.964258:-900.000000 +PORT +ChangeResolution:"true" +PORT +Label:"true" +PORT +Max:"1800" +PORT +Min:"-1800" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Translation Y" +FIN_BOX +BOX +wx:Slider:Box09 +ISEXEC:FALSE +28.124282:58.249919:-900.000000 +60.899282:48.249919:-900.000000 +PORT +ChangeResolution:"true" +PORT +Label:"true" +PORT +Max:"1800" +PORT +Min:"-1800" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Translation Z" +FIN_BOX +BOX +wx:LayoutLine:Box10 +ISEXEC:FALSE +101.086854:-111.014230:-900.000000 +146.661854:-121.014230:-900.000000 +PORT +WinTitle:"Scale" +FIN_BOX +BOX +wx:Slider:Box11 +ISEXEC:FALSE +70.956408:111.372736:-900.000000 +103.731408:101.372736:-900.000000 +PORT +ChangeResolution:"true" +PORT +In:"100" +PORT +Label:"true" +PORT +Max:"500" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale X" +FIN_BOX +BOX +wx:Slider:Box12 +ISEXEC:FALSE +88.855471:96.857340:-900.000000 +121.630471:86.857340:-900.000000 +PORT +ChangeResolution:"true" +PORT +In:"100" +PORT +Label:"true" +PORT +Max:"500" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale Y" +FIN_BOX +BOX +wx:Slider:Box13 +ISEXEC:FALSE +102.852794:83.842614:-900.000000 +135.627794:73.842614:-900.000000 +PORT +ChangeResolution:"true" +PORT +In:"100" +PORT +Label:"true" +PORT +Max:"500" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale Z" +FIN_BOX +BOX +vtk:Transform:Box14 +ISEXEC:FALSE +-142.765044:-108.141609:-900.000000 +-97.190044:-118.141609:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box15 +ISEXEC:FALSE +-223.525177:80.984845:-900.000000 +-152.540071:70.984845:-900.000000 +PORT +In2:" " +PORT +In3:"1 0 0" +FIN_BOX +BOX +std:ConcatStrings:Box16 +ISEXEC:FALSE +-3.619251:-23.648681:-900.000000 +41.955749:-33.648681:-900.000000 +PORT +In2:" " +PORT +In4:" " +FIN_BOX +BOX +std:MultipleInputs:Box17 +ISEXEC:FALSE +-168.208835:-23.486191:-900.000000 +-122.633835:-33.486191:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box18 +ISEXEC:FALSE +-27.838379:20.199010:-900.000000 +17.736621:10.199010:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box19 +ISEXEC:FALSE +70.610673:4.873998:-900.000000 +116.185673:-5.126002:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box20 +ISEXEC:FALSE +-164.607981:-67.717573:-900.000000 +-119.032981:-77.717573:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box21 +ISEXEC:FALSE +59.120818:-60.175869:-900.000000 +104.695818:-70.175869:-900.000000 +PORT +In2:" " +PORT +In4:" " +FIN_BOX +BOX +std:Div:Box22 +ISEXEC:FALSE +65.449748:-31.557751:-900.000000 +98.224748:-41.557751:-900.000000 +PORT +In2:"100" +FIN_BOX +BOX +std:Div:Box23 +ISEXEC:FALSE +89.585883:-13.970497:-900.000000 +122.360883:-23.970497:-900.000000 +PORT +In2:"100" +FIN_BOX +BOX +std:Div:Box24 +ISEXEC:FALSE +134.402698:-27.748939:-900.000000 +167.177698:-37.748939:-900.000000 +PORT +In2:"100" +FIN_BOX +BOX +vtk:Transform:Box28 +ISEXEC:FALSE +-235.026591:62.160050:-900.000000 +-171.547037:52.160050:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box29 +ISEXEC:FALSE +-148.940720:71.248536:-900.000000 +-103.365720:61.248536:-900.000000 +PORT +In2:" " +PORT +In3:"0 1 0" +FIN_BOX +BOX +vtk:Transform:Box30 +ISEXEC:FALSE +-152.702546:51.609048:-900.000000 +-107.127546:41.609048:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box31 +ISEXEC:FALSE +-112.239505:28.109798:-900.000000 +-66.664505:18.109798:-900.000000 +PORT +In2:" " +PORT +In3:"0 0 1" +FIN_BOX +BOX +vtk:Transform:Box32 +ISEXEC:FALSE +-116.001331:8.470310:-900.000000 +-70.426331:-1.529690:-900.000000 +FIN_BOX +CONNECTIONS:48 +CONNECTION +Box01:Widget:Box00:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box01:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box01:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box01:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:Box06:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box06:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box10:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box10:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box10:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box00:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box00:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box14:Translate +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box16:In1 +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box16:In3 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box16:In5 +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box17:In1 +NumberOfControlPoints:0 +CONNECTION +Box04:BoxChange:Box17:In2 +NumberOfControlPoints:0 +CONNECTION +Box05:BoxChange:Box17:In3 +NumberOfControlPoints:0 +CONNECTION +Box07:BoxChange:Box18:In1 +NumberOfControlPoints:0 +CONNECTION +Box08:BoxChange:Box18:In2 +NumberOfControlPoints:0 +CONNECTION +Box09:BoxChange:Box18:In3 +NumberOfControlPoints:0 +CONNECTION +Box11:BoxChange:Box19:In1 +NumberOfControlPoints:0 +CONNECTION +Box12:BoxChange:Box19:In2 +NumberOfControlPoints:0 +CONNECTION +Box13:BoxChange:Box19:In3 +NumberOfControlPoints:0 +CONNECTION +Box17:BoxChange:Box20:In1 +NumberOfControlPoints:0 +CONNECTION +Box18:BoxChange:Box20:In2 +NumberOfControlPoints:0 +CONNECTION +Box19:BoxChange:Box20:In3 +NumberOfControlPoints:0 +CONNECTION +Box20:BoxChange:Box14:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box14:Out:Transform:Transform +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Window:Window +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box22:In1 +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box21:In1 +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box23:In1 +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box24:In1 +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box21:In3 +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box21:In5 +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box14:Scale +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:BoxChange:BoxChange +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box15:In1 +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box28:RotateWXYZ +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box30:RotateWXYZ +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box29:In1 +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box32:RotateWXYZ +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box31:In1 +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box30:In +NumberOfControlPoints:0 +CONNECTION +Box30:Out:Box32:In +NumberOfControlPoints:0 +CONNECTION +Box32:Out:Box14:In +NumberOfControlPoints:0 +APP_END diff --git a/packages/vtk/bbs/boxes/TransformWidget.bbs b/packages/vtk/bbs/boxes/TransformWidget.bbs new file mode 100644 index 0000000..0135c82 --- /dev/null +++ b/packages/vtk/bbs/boxes/TransformWidget.bbs @@ -0,0 +1,205 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /home/davila/Creatis/All/creatools_source/bbtk/packages/vtk/bbs/boxes/TransformWidget.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include vtk +include std + +define TransformWidget vtk + +author "Author ??" +description "Description ??" + +category "" + +new LayoutTab Box00 + +new LayoutLine Box01 + set Box01.WinTitle "Rotation" + +new Slider Box03 + set Box03.ChangeResolution "true" + set Box03.Label "true" + set Box03.Max "180" + set Box03.Min "-180" + set Box03.ReactiveOnTrack "true" + set Box03.Title "Rotation X" + +new Slider Box04 + set Box04.ChangeResolution "true" + set Box04.Label "true" + set Box04.Max "180" + set Box04.Min "-180" + set Box04.ReactiveOnTrack "true" + set Box04.Title "Rotation Y" + +new Slider Box05 + set Box05.ChangeResolution "true" + set Box05.Label "true" + set Box05.Max "180" + set Box05.Min "-180" + set Box05.ReactiveOnTrack "true" + set Box05.Title "Rotation Z" + +new LayoutLine Box06 + set Box06.WinTitle "Translate" + +new Slider Box07 + set Box07.ChangeResolution "true" + set Box07.Label "true" + set Box07.Max "1800" + set Box07.Min "-1800" + set Box07.ReactiveOnTrack "true" + set Box07.Title "Translation X" + +new Slider Box08 + set Box08.ChangeResolution "true" + set Box08.Label "true" + set Box08.Max "1800" + set Box08.Min "-1800" + set Box08.ReactiveOnTrack "true" + set Box08.Title "Translation Y" + +new Slider Box09 + set Box09.ChangeResolution "true" + set Box09.Label "true" + set Box09.Max "1800" + set Box09.Min "-1800" + set Box09.ReactiveOnTrack "true" + set Box09.Title "Translation Z" + +new LayoutLine Box10 + set Box10.WinTitle "Scale" + +new Slider Box11 + set Box11.ChangeResolution "true" + set Box11.In "100" + set Box11.Label "true" + set Box11.Max "500" + set Box11.Min "0" + set Box11.ReactiveOnTrack "true" + set Box11.Title "Scale X" + +new Slider Box12 + set Box12.ChangeResolution "true" + set Box12.In "100" + set Box12.Label "true" + set Box12.Max "500" + set Box12.Min "0" + set Box12.ReactiveOnTrack "true" + set Box12.Title "Scale Y" + +new Slider Box13 + set Box13.ChangeResolution "true" + set Box13.In "100" + set Box13.Label "true" + set Box13.Max "500" + set Box13.Min "0" + set Box13.ReactiveOnTrack "true" + set Box13.Title "Scale Z" + +new Transform Box14 + +new ConcatStrings Box15 + set Box15.In2 " " + set Box15.In3 "1 0 0" + +new ConcatStrings Box16 + set Box16.In2 " " + set Box16.In4 " " + +new MultipleInputs Box17 + +new MultipleInputs Box18 + +new MultipleInputs Box19 + +new MultipleInputs Box20 + +new ConcatStrings Box21 + set Box21.In2 " " + set Box21.In4 " " + +new Div Box22 + set Box22.In2 "100" + +new Div Box23 + set Box23.In2 "100" + +new Div Box24 + set Box24.In2 "100" + +new Transform Box28 + +new ConcatStrings Box29 + set Box29.In2 " " + set Box29.In3 "0 1 0" + +new Transform Box30 + +new ConcatStrings Box31 + set Box31.In2 " " + set Box31.In3 "0 0 1" + +new Transform Box32 + + +connect Box01.Widget Box00.Widget1 +connect Box05.Widget Box01.Widget3 +connect Box04.Widget Box01.Widget2 +connect Box03.Widget Box01.Widget1 +connect Box09.Widget Box06.Widget3 +connect Box08.Widget Box06.Widget2 +connect Box07.Widget Box06.Widget1 +connect Box13.Widget Box10.Widget3 +connect Box12.Widget Box10.Widget2 +connect Box11.Widget Box10.Widget1 +connect Box06.Widget Box00.Widget2 +connect Box10.Widget Box00.Widget3 +connect Box16.Out Box14.Translate +connect Box07.Out Box16.In1 +connect Box08.Out Box16.In3 +connect Box09.Out Box16.In5 +connect Box03.BoxChange Box17.In1 +connect Box04.BoxChange Box17.In2 +connect Box05.BoxChange Box17.In3 +connect Box07.BoxChange Box18.In1 +connect Box08.BoxChange Box18.In2 +connect Box09.BoxChange Box18.In3 +connect Box11.BoxChange Box19.In1 +connect Box12.BoxChange Box19.In2 +connect Box13.BoxChange Box19.In3 +connect Box17.BoxChange Box20.In1 +connect Box18.BoxChange Box20.In2 +connect Box19.BoxChange Box20.In3 +connect Box20.BoxChange Box14.BoxExecute +connect Box11.Out Box22.In1 +connect Box22.Out Box21.In1 +connect Box12.Out Box23.In1 +connect Box13.Out Box24.In1 +connect Box23.Out Box21.In3 +connect Box24.Out Box21.In5 +connect Box21.Out Box14.Scale +connect Box03.Out Box15.In1 +connect Box15.Out Box28.RotateWXYZ +connect Box29.Out Box30.RotateWXYZ +connect Box04.Out Box29.In1 +connect Box31.Out Box32.RotateWXYZ +connect Box05.Out Box31.In1 +connect Box28.Out Box30.In +connect Box30.Out Box32.In +connect Box32.Out Box14.In + +# Complex input ports + +# Complex output ports +output Transform Box14.Out " " +output Window Box00.Widget " " +output BoxChange Box14.BoxChange " " + + +endefine