# ---------------------------------- # - BBTKGEditor v 1.2 BBS BlackBox Script # - /home/pechan/Documents/courses/development/creatis/dev/src/creaMiniTools/examples/bbg/registration/registration3D2PointsExample.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include creaMaracasVisu include PackRegistration include wx include vtk include creaImageIO author "Author ??" description "Description ??" category "" new ViewerNV viewer set viewer.nTypeView "5" new ShowNPoints showNpoints set showNpoints.Radio "10" new ViewerNV viewer2 set viewer2.nTypeView "5" new ShowNPoints showNpoints2 set showNpoints2.Radio "10" new Transform3D2PointsBox transform new ReSlicerBox reslice1 set reslice1.Origin "0,0,0" new ViewerNV viewer3 set viewer3.nTypeView "5 0" new CommandButton butExec set butExec.Label "Execute" new Slider angle set angle.In "0" set angle.Max "180" set angle.Min "-180" new LayoutSplit tab1 set tab1.Orientation "H" new LayoutSplit hello set hello.Orientation "V" new LayoutSplit hello2 new LayoutSplit tab2 set tab2.Orientation "H" new LayoutTab main set main.Orientation "H" new CommandButton Box18 set Box18.Label "Save" new MetaImageWriter Box19 new FileSelector Box20 set Box20.OpenSave "Save" set Box20.Title "Save Image" new LayoutTab Box21 new LayoutLine Box22 set Box22.WinTitle "Options" new ImagesChooserDialogBox Box23 new ImagesChooserDialogBox Box24 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 transform.InX1 connect showNpoints2.lstPointsX transform.InX2 connect showNpoints.lstPointsY transform.InY1 connect showNpoints2.lstPointsY transform.InY2 connect showNpoints.lstPointsZ transform.InZ1 connect showNpoints2.lstPointsZ transform.InZ2 connect showNpoints.lstLabels transform.Labels1 connect showNpoints2.lstLabels transform.Labels2 connect transform.Out reslice1.Transform connect reslice1.Out viewer3.In connect angle.Out transform.SecondAngle connect showNpoints.Widget hello.Widget1 connect butExec.Widget hello2.Widget1 connect angle.Widget hello2.Widget2 connect hello2.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 transform.BoxExecute connect butExec.BoxChange reslice1.BoxExecute connect butExec.BoxChange viewer3.BoxExecute connect tab1.Widget main.Widget1 connect tab2.Widget main.Widget2 connect Box18.BoxChange Box19.BoxExecute connect reslice1.Out Box19.In connect Box20.Out Box19.Filename connect main.Widget Box21.Widget1 connect Box22.Widget Box21.Widget2 connect Box18.Widget Box22.Widget1 connect Box23.Out viewer.In connect Box23.Out showNpoints.Image connect Box24.Out viewer2.In connect Box24.Out showNpoints2.Image connect Box24.Out reslice1.In exec Box21