]> Creatis software - creaRigidRegistration.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 13 Apr 2012 17:18:29 +0000 (17:18 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 13 Apr 2012 17:18:29 +0000 (17:18 +0000)
PackRecalage/bbs/appli/ExampleReSlice3D.bbg [new file with mode: 0644]
PackRecalage/bbs/appli/ExampleReSlice3D.bbs [new file with mode: 0644]

diff --git a/PackRecalage/bbs/appli/ExampleReSlice3D.bbg b/PackRecalage/bbs/appli/ExampleReSlice3D.bbg
new file mode 100644 (file)
index 0000000..fd1eeb8
--- /dev/null
@@ -0,0 +1,398 @@
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleReSlice3D.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:example
+DESCRIPTION:Recalage3D 1-point
+AUTHOR:info-dev@creatis.insa-lyon.fr
+COMPLEXBOX:FALSE
+BOXES:27
+BOX
+creaMaracasVisu:ViewerNV:viewer2
+ISEXEC:FALSE
+-43.668898:-14.346667:900.000000
+16.971102:-24.346667:900.000000
+PORT
+nTypeView:"5"
+FIN_BOX
+BOX
+wx:Slider:sdrAngleX
+ISEXEC:FALSE
+-148.354198:-38.627627:900.000000
+-96.954198:-48.627627:900.000000
+PORT
+In:"0"
+PORT
+Max:"180"
+PORT
+Min:"-180"
+PORT
+ReactiveOnTrack:"true"
+PORT
+Title:"Rotation angle in X Axis"
+FIN_BOX
+BOX
+wx:Slider:sdrAngleY
+ISEXEC:FALSE
+-133.838336:-67.018154:900.000000
+-82.438336:-77.018154:900.000000
+PORT
+In:"0"
+PORT
+Max:"180"
+PORT
+Min:"-180"
+PORT
+ReactiveOnTrack:"true"
+PORT
+Title:"Rotation angle in Y Axis"
+FIN_BOX
+BOX
+wx:Slider:sdrAngleZ
+ISEXEC:FALSE
+-82.741007:-78.381736:900.000000
+-31.341007:-88.381736:900.000000
+PORT
+In:"0"
+PORT
+Max:"180"
+PORT
+Min:"-180"
+PORT
+ReactiveOnTrack:"true"
+PORT
+Title:"Rotation angle in Z Axis"
+FIN_BOX
+BOX
+wx:Slider:sdrScaleX
+ISEXEC:FALSE
+-274.549718:-55.608847:900.000000
+-223.149718:-65.608847:900.000000
+PORT
+In:"100"
+PORT
+Max:"300"
+PORT
+Min:"10"
+PORT
+ReactiveOnTrack:"true"
+PORT
+Title:"Scale in X Axis"
+FIN_BOX
+BOX
+wx:Slider:sdrScaleY
+ISEXEC:FALSE
+-213.239183:-67.473590:900.000000
+-161.839183:-77.473590:900.000000
+PORT
+In:"100"
+PORT
+Max:"300"
+PORT
+Min:"10"
+PORT
+ReactiveOnTrack:"true"
+PORT
+Title:"Scale in Y Axis"
+FIN_BOX
+BOX
+wx:Slider:sdrScaleZ
+ISEXEC:FALSE
+-200.643518:-92.765450:900.000000
+-149.243518:-102.765450:900.000000
+PORT
+In:"100"
+PORT
+Max:"300"
+PORT
+Min:"10"
+PORT
+ReactiveOnTrack:"true"
+PORT
+Title:"Scale in Z Axis"
+FIN_BOX
+BOX
+PackRecalage:Transform3D1PointBox:transform
+ISEXEC:FALSE
+-81.573098:-193.025470:900.000000
+-10.398098:-203.025470:900.000000
+FIN_BOX
+BOX
+PackRecalage:ReSlicerBox:reslicer
+ISEXEC:FALSE
+63.674921:-247.184978:900.000000
+109.249921:-257.184978:900.000000
+PORT
+Interpolate:true
+FIN_BOX
+BOX
+std:MultipleInputs:mult
+ISEXEC:FALSE
+34.528483:-102.203838:900.000000
+80.103483:-112.203838:900.000000
+FIN_BOX
+BOX
+std:MultipleInputs:mult2
+ISEXEC:FALSE
+-84.590342:-121.560922:900.000000
+-39.015342:-131.560922:900.000000
+FIN_BOX
+BOX
+std:MultipleInputs:mult3
+ISEXEC:FALSE
+-16.372541:-158.899434:900.000000
+29.202459:-168.899434:900.000000
+FIN_BOX
+BOX
+creaMaracasVisu:ViewerNV:viewerResult
+ISEXEC:FALSE
+34.084421:-280.475997:900.000000
+94.724421:-290.475997:900.000000
+PORT
+nTypeView:"5"
+FIN_BOX
+BOX
+wx:LayoutLine:toolsLayout
+ISEXEC:FALSE
+-164.436781:-269.828490:900.000000
+-106.876781:-279.828490:900.000000
+PORT
+Orientation:"v"
+PORT
+WinTitle:"Rotation"
+FIN_BOX
+BOX
+wx:LayoutSplit:resultLayout
+ISEXEC:TRUE
+-45.485840:-391.999871:900.000000
+0.089160:-401.999871:900.000000
+PORT
+Orientation:"v"
+PORT
+Proportion:"70"
+FIN_BOX
+BOX
+wx:LayoutSplit:main
+ISEXEC:FALSE
+-18.854396:-362.412729:900.000000
+26.720604:-372.412729:900.000000
+PORT
+Orientation:"h"
+PORT
+Proportion:"50"
+FIN_BOX
+BOX
+vtk:vtkImageDataPointerRelay:Box22
+ISEXEC:FALSE
+-80.407015:12.725826:900.000000
+-9.232015:2.725826:900.000000
+FIN_BOX
+BOX
+creaImageIO:ImagesChooserDialogBox:Box24
+ISEXEC:FALSE
+-44.746941:47.713068:900.000000
+26.428059:37.713068:900.000000
+FIN_BOX
+BOX
+vtk:ImageVtkProperties:Box26
+ISEXEC:FALSE
+48.452567:-168.654490:900.000000
+94.027567:-178.654490:900.000000
+FIN_BOX
+BOX
+std:VectorRescaleSlope:Box27
+ISEXEC:FALSE
+76.631036:-203.218440:900.000000
+147.806036:-213.218440:900.000000
+PORT
+A:0.5
+PORT
+B:0
+PORT
+Type:0
+FIN_BOX
+BOX
+std:ConcatStrings:Box28
+ISEXEC:FALSE
+83.436141:-186.630554:900.000000
+129.011141:-196.630554:900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box29
+ISEXEC:FALSE
+73.686705:-218.551464:900.000000
+119.261705:-228.551464:900.000000
+FIN_BOX
+BOX
+wx:LayoutTab:Box30
+ISEXEC:FALSE
+-95.022678:-336.495585:900.000000
+-37.462678:-346.495585:900.000000
+FIN_BOX
+BOX
+toolsbbtk:SaveMHD-Button:Box31
+ISEXEC:FALSE
+-71.384617:-278.607993:900.000000
+-25.809617:-288.607993:900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:Box32
+ISEXEC:FALSE
+-117.502507:-219.437979:900.000000
+-59.942507:-229.437979:900.000000
+PORT
+WinTitle:"Scale"
+FIN_BOX
+BOX
+wx:LayoutLine:Box33
+ISEXEC:FALSE
+-79.311757:-316.368302:900.000000
+-21.751757:-326.368302:900.000000
+PORT
+WinTitle:"Save"
+FIN_BOX
+BOX
+wx:LayoutCenter:Box34
+ISEXEC:FALSE
+-70.391038:-296.951839:900.000000
+-24.816038:-306.951839:900.000000
+FIN_BOX
+CONNECTIONS:45
+CONNECTION
+viewer2:Point:transform:CenterPoint
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleX:Out:transform:AngleX
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleY:Out:transform:AngleY
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleZ:Out:transform:AngleZ
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleX:Out:transform:ScaleX
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleY:Out:transform:ScaleY
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleZ:Out:transform:ScaleZ
+NumberOfControlPoints:0
+CONNECTION
+transform:Out:reslicer:Transform
+NumberOfControlPoints:0
+CONNECTION
+viewer2:BoxChange:mult:In2
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleX:BoxChange:mult:In3
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleY:BoxChange:mult:In4
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleZ:BoxChange:mult:In5
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleX:BoxChange:mult2:In1
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleY:BoxChange:mult2:In2
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleZ:BoxChange:mult2:In3
+NumberOfControlPoints:0
+CONNECTION
+mult:BoxChange:mult3:In1
+NumberOfControlPoints:0
+CONNECTION
+mult2:BoxChange:mult3:In2
+NumberOfControlPoints:0
+CONNECTION
+mult3:BoxChange:transform:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+mult3:BoxChange:reslicer:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+reslicer:Out:viewerResult:In
+NumberOfControlPoints:0
+CONNECTION
+mult3:BoxChange:viewerResult:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleX:Widget:toolsLayout:Widget1
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleY:Widget:toolsLayout:Widget2
+NumberOfControlPoints:0
+CONNECTION
+sdrAngleZ:Widget:toolsLayout:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box22:Out:viewer2:In
+NumberOfControlPoints:0
+CONNECTION
+Box22:Out:reslicer:In
+NumberOfControlPoints:0
+CONNECTION
+Box24:Out:Box22:In
+NumberOfControlPoints:0
+CONNECTION
+Box22:Out:Box26:In
+NumberOfControlPoints:0
+CONNECTION
+Box26:Size:Box28:In1
+NumberOfControlPoints:0
+CONNECTION
+Box28:Out:Box27:In
+NumberOfControlPoints:0
+CONNECTION
+Box27:Out:Box29:In1
+NumberOfControlPoints:0
+CONNECTION
+Box29:Out:reslicer:Origin
+NumberOfControlPoints:0
+CONNECTION
+viewer2:Widget:main:Widget1
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleX:Widget:Box32:Widget1
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleY:Widget:Box32:Widget2
+NumberOfControlPoints:0
+CONNECTION
+sdrScaleZ:Widget:Box32:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box32:Widget:Box30:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box33:Widget:Box30:Widget3
+NumberOfControlPoints:0
+CONNECTION
+toolsLayout:Widget:Box30:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box30:Widget:resultLayout:Widget2
+NumberOfControlPoints:0
+CONNECTION
+reslicer:Out:Box31:In
+NumberOfControlPoints:0
+CONNECTION
+Box31:Widget:Box34:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box34:Widget:Box33:Widget1
+NumberOfControlPoints:0
+CONNECTION
+viewerResult:Widget:main:Widget2
+NumberOfControlPoints:0
+CONNECTION
+main:Widget:resultLayout:Widget1
+NumberOfControlPoints:0
+APP_END
diff --git a/PackRecalage/bbs/appli/ExampleReSlice3D.bbs b/PackRecalage/bbs/appli/ExampleReSlice3D.bbs
new file mode 100644 (file)
index 0000000..fb9d565
--- /dev/null
@@ -0,0 +1,168 @@
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBS BlackBox Script
+# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleReSlice3D.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include creaMaracasVisu
+include wx
+include PackRecalage
+include std
+include vtk
+include creaImageIO
+include toolsbbtk
+
+author "info-dev@creatis.insa-lyon.fr"
+description "Recalage3D 1-point"
+category "example"
+
+new ViewerNV viewer2
+  set viewer2.nTypeView "5"
+
+new Slider sdrAngleX
+  set sdrAngleX.In "0"
+  set sdrAngleX.Max "180"
+  set sdrAngleX.Min "-180"
+  set sdrAngleX.ReactiveOnTrack "true"
+  set sdrAngleX.Title "Rotation angle in X Axis"
+
+new Slider sdrAngleY
+  set sdrAngleY.In "0"
+  set sdrAngleY.Max "180"
+  set sdrAngleY.Min "-180"
+  set sdrAngleY.ReactiveOnTrack "true"
+  set sdrAngleY.Title "Rotation angle in Y Axis"
+
+new Slider sdrAngleZ
+  set sdrAngleZ.In "0"
+  set sdrAngleZ.Max "180"
+  set sdrAngleZ.Min "-180"
+  set sdrAngleZ.ReactiveOnTrack "true"
+  set sdrAngleZ.Title "Rotation angle in Z Axis"
+
+new Slider sdrScaleX
+  set sdrScaleX.In "100"
+  set sdrScaleX.Max "300"
+  set sdrScaleX.Min "10"
+  set sdrScaleX.ReactiveOnTrack "true"
+  set sdrScaleX.Title "Scale in X Axis"
+
+new Slider sdrScaleY
+  set sdrScaleY.In "100"
+  set sdrScaleY.Max "300"
+  set sdrScaleY.Min "10"
+  set sdrScaleY.ReactiveOnTrack "true"
+  set sdrScaleY.Title "Scale in Y Axis"
+
+new Slider sdrScaleZ
+  set sdrScaleZ.In "100"
+  set sdrScaleZ.Max "300"
+  set sdrScaleZ.Min "10"
+  set sdrScaleZ.ReactiveOnTrack "true"
+  set sdrScaleZ.Title "Scale in Z Axis"
+
+new Transform3D1PointBox transform
+
+new ReSlicerBox reslicer
+  set reslicer.Interpolate true
+
+new MultipleInputs mult
+
+new MultipleInputs mult2
+
+new MultipleInputs mult3
+
+new ViewerNV viewerResult
+  set viewerResult.nTypeView "5"
+
+new LayoutLine toolsLayout
+  set toolsLayout.Orientation "v"
+  set toolsLayout.WinTitle "Rotation"
+
+new LayoutSplit resultLayout
+  set resultLayout.Orientation "v"
+  set resultLayout.Proportion "70"
+
+new LayoutSplit main
+  set main.Orientation "h"
+  set main.Proportion "50"
+
+new vtkImageDataPointerRelay Box22
+
+new ImagesChooserDialogBox Box24
+
+new ImageVtkProperties Box26
+
+new VectorRescaleSlope Box27
+  set Box27.A 0.5
+  set Box27.B 0
+  set Box27.Type 0
+
+new ConcatStrings Box28
+
+new ConcatStrings Box29
+
+new LayoutTab Box30
+
+new SaveMHD-Button Box31
+
+new LayoutLine Box32
+  set Box32.WinTitle "Scale"
+
+new LayoutLine Box33
+  set Box33.WinTitle "Save"
+
+new LayoutCenter Box34
+
+
+connect viewer2.Point transform.CenterPoint
+connect sdrAngleX.Out transform.AngleX
+connect sdrAngleY.Out transform.AngleY
+connect sdrAngleZ.Out transform.AngleZ
+connect sdrScaleX.Out transform.ScaleX
+connect sdrScaleY.Out transform.ScaleY
+connect sdrScaleZ.Out transform.ScaleZ
+connect transform.Out reslicer.Transform
+connect viewer2.BoxChange mult.In2
+connect sdrAngleX.BoxChange mult.In3
+connect sdrAngleY.BoxChange mult.In4
+connect sdrAngleZ.BoxChange mult.In5
+connect sdrScaleX.BoxChange mult2.In1
+connect sdrScaleY.BoxChange mult2.In2
+connect sdrScaleZ.BoxChange mult2.In3
+connect mult.BoxChange mult3.In1
+connect mult2.BoxChange mult3.In2
+connect mult3.BoxChange transform.BoxExecute
+connect mult3.BoxChange reslicer.BoxExecute
+connect reslicer.Out viewerResult.In
+connect mult3.BoxChange viewerResult.BoxExecute
+connect sdrAngleX.Widget toolsLayout.Widget1
+connect sdrAngleY.Widget toolsLayout.Widget2
+connect sdrAngleZ.Widget toolsLayout.Widget3
+connect Box22.Out viewer2.In
+connect Box22.Out reslicer.In
+connect Box24.Out Box22.In
+connect Box22.Out Box26.In
+connect Box26.Size Box28.In1
+connect Box28.Out Box27.In
+connect Box27.Out Box29.In1
+connect Box29.Out reslicer.Origin
+connect viewer2.Widget main.Widget1
+connect sdrScaleX.Widget Box32.Widget1
+connect sdrScaleY.Widget Box32.Widget2
+connect sdrScaleZ.Widget Box32.Widget3
+connect Box32.Widget Box30.Widget2
+connect Box33.Widget Box30.Widget3
+connect toolsLayout.Widget Box30.Widget1
+connect Box30.Widget resultLayout.Widget2
+connect reslicer.Out Box31.In
+connect Box31.Widget Box34.Widget2
+connect Box34.Widget Box33.Widget1
+connect viewerResult.Widget main.Widget2
+connect main.Widget resultLayout.Widget1
+
+exec resultLayout