]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/bbs/appli/ExampleRecalage.bbs
no message
[creaRigidRegistration.git] / PackRecalage / bbs / appli / ExampleRecalage.bbs
index ea5ea42ab76cbd49a61d4480a09391e0936243e0..9e593c8292e109cdbaa93b254025cbdb4b336d25 100644 (file)
-description "Example of posible Recalage implementation"
-author "jn.trillos44@uniandes.edu.co"
-category "demo"
-
-load vtk
-include wxvtk
-load std
-load itk
-include vtk
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBS BlackBox Script
+# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include creaMaracasVisu
+include PackRecalage
 include wx
-load itkvtk
-load creaMaracasVisu
-load PackRecalage
-
-//File selection and file reader for the first image
-
-new FileSelector openFileDialog
-  set openFileDialog.Wildcard  "(*.mhd)|*.mhd"
-new MetaImageReader reader
-   connect openFileDialog.Out reader.In
-
-//File selection and file reader for the second image
-
-new FileSelector openFileDialog2
-  set openFileDialog2.Wildcard  "(*.mhd)|*.mhd"
-new MetaImageReader reader2
-   connect openFileDialog2.Out reader2.In
+include vtk
+include creaImageIO
 
-//Viewer NV and ShowPoints for the first image
+author "jn.trillos44@uniandes.edu.co"
+description "Example of posible Recalage implementation"
+category "demo"
 
 new ViewerNV viewer
-  connect reader.Out viewer.In
   set viewer.nTypeView "5"
 
 new ShowNPoints showNpoints
-  connect reader.Out showNpoints.Image
-  connect viewer.Renderer1 showNpoints.Renderer
-  connect viewer.Point showNpoints.In
-  connect viewer.BoxChange showNpoints.BoxExecute
-  set showNpoints.Radio 10
-
-//Viewer NV and ShowPoints for the second image
+  set showNpoints.Radio "10"
 
 new ViewerNV viewer2
-  connect reader2.Out viewer2.In
   set viewer2.nTypeView "5"
 
 new ShowNPoints showNpoints2
-  connect reader2.Out showNpoints2.Image
-  connect viewer2.Renderer1 showNpoints2.Renderer
-  connect viewer2.Point showNpoints2.In
-  connect viewer2.BoxChange showNpoints2.BoxExecute
-  set showNpoints2.Radio 10
-
-/////////////////////////////////////////////////////
-#Calculate Vector Box
-/////////////////////////////////////////////////////
+  set showNpoints2.Radio "10"
 
 new CalculateVectorBox vector1
-  connect showNpoints.lstPointsX vector1.PointsX1
-  connect showNpoints2.lstPointsX vector1.PointsX2
-  connect showNpoints.lstPointsY vector1.PointsY1
-  connect showNpoints2.lstPointsY vector1.PointsY2
-  connect showNpoints.lstPointsZ vector1.PointsZ1
-  connect showNpoints2.lstPointsZ vector1.PointsZ2  
-  
-////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////
-#Transformation Boxes
-//////////////////////////////////////////////////
 
 new Transform2DBox transform
-  //connect vector1.Origin transform.CenterPoint
-
   set transform.CenterPoint "0,0,0"
 
-  //connect vector1.OutAngle transform.Angle
-  //connect vector1.OutScaleX transform.ScaleX
-  //connect vector1.OutScaleY transform.ScaleY
-  //connect vector1.OutScaleZ transform.ScaleZ
-  //connect vector1.TransformAxis transform.Axis
-  //set transform.3D false
-
 new ReSlicerBox reslice1
-//  connect vector1.OriginReslicer reslice1.Origin
-
   set reslice1.Origin "0,0,0"
 
-  connect transform.Out reslice1.Transform
-  connect reader2.Out reslice1.In
-
-//ViewerNV and ComandButton for the result image
-
 new ViewerNV viewer3
   set viewer3.nTypeView "5"
-  connect reslice1.Out viewer3.In
 
 new CommandButton butExec
-  //set butExec.Label "Execute"
-
-//Tab for the first image
 
 new LayoutSplit tab1
-   set tab1.Orientation H
-
-////////////////////
+  set tab1.Orientation "H"
 
 new LayoutSplit hello
-  set hello.Orientation V
-
-  connect showNpoints.Widget hello.Widget1
-  connect butExec.Widget hello.Widget2
-
-   connect hello.Widget tab1.Widget1
-   connect viewer.Widget tab1.Widget2
-
-//Tab for the second image
+  set hello.Orientation "V"
 
 new LayoutSplit tab2
-   set tab2.Orientation H
-   connect showNpoints2.Widget tab2.Widget1
-   connect viewer2.Widget tab2.Widget2
-
-//Tab for the result image
-
-//new LayoutSplit result
-  //set result.Orientation H
-  //connect butExec.Widget result.Widget1
-  //connect viewer3.Widget result.Widget2
-  connect butExec.BoxChange viewer3.BoxExecute
-
-
-//Main window
+  set tab2.Orientation "H"
 
 new LayoutTab main
-set main.Orientation H
+  set main.Orientation "H"
+
+new vtkImageDataPointerRelay Box17
+
+new ImagesChooserDialogBox Box18
+
+new ImagesChooserDialogBox Box19
+
+new vtkImageDataPointerRelay Box20
+
+
+connect viewer.Renderer1 showNpoints.Renderer
+connect viewer.Point showNpoints.In
+connect viewer.BoxChange showNpoints.BoxExecute
+connect viewer2.Renderer1 showNpoints2.Renderer
+connect viewer2.Point showNpoints2.In
+connect viewer2.BoxChange showNpoints2.BoxExecute
+connect showNpoints.lstPointsX vector1.PointsX1
+connect showNpoints2.lstPointsX vector1.PointsX2
+connect showNpoints.lstPointsY vector1.PointsY1
+connect showNpoints2.lstPointsY vector1.PointsY2
+connect showNpoints.lstPointsZ vector1.PointsZ1
+connect showNpoints2.lstPointsZ vector1.PointsZ2
+connect transform.Out reslice1.Transform
+connect reslice1.Out viewer3.In
+connect showNpoints.Widget hello.Widget1
+connect butExec.Widget hello.Widget2
+connect hello.Widget tab1.Widget1
+connect viewer.Widget tab1.Widget2
+connect showNpoints2.Widget tab2.Widget1
+connect viewer2.Widget tab2.Widget2
+connect butExec.BoxChange viewer3.BoxExecute
 connect tab1.Widget main.Widget1
 connect tab2.Widget main.Widget2
-//connect result.Widget main.Widget3
+connect Box17.Out viewer2.In
+connect Box17.Out reslice1.In
+connect Box17.Out showNpoints2.Image
+connect Box18.Out Box17.In
+connect Box20.Out viewer.In
+connect Box20.Out showNpoints.Image
+connect Box19.Out Box20.In
 
 exec main