# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) # - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/boxes/CompareImagesWidget3D.bbs # ---------------------------------- include std include itkvtk include creaMaracasVisu include vtk include wx include wxvtk include std define CompareImagesWidget3D PackRecalage author "info-dev@creatis.insa-lyon.fr" description "Recalage3D 1-point" category "example" new ViewerNV viewerResult set viewerResult.nTypeView "6" new vtkImageDataPointerRelay Box23 new LayoutTab Box26 set Box26.WinTitle "2D-Compare" new LayoutSplit Box28 set Box28.Orientation "H" set Box28.Proportion "50" set Box28.WinTitle "3D-Comparing" new LayoutLine Box29 new IsoSurfaceWidget Box30 set Box30.Colour "1 1 0" set Box30.Title "1. Reference image" set Box30.Vertical "V" new IsoSurfaceWidget Box31 set Box31.Colour "1 1 1" set Box31.Title "2. Registration image" set Box31.Vertical "V" new LayoutTab Box38 new LayoutTab Box39 new MultipleInputs Box19 new vtkImageDataPointerRelay Box20 new SphereListWidget Box11 set Box11.WinTitle "3. Center Point" set Box11.lstPointX "10 10" set Box11.lstPointY "10 20" set Box11.lstPointZ "10 30" new LayoutTab Box12 new MagicBox Box13 new GetVectorIntElement Box14 set Box14.I "0" new ConcatStrings Box15 new GetVectorIntElement Box16 set Box16.I "1" new ConcatStrings Box17 new GetVectorIntElement Box18 set Box18.I "2" new ConcatStrings Box21 new ImageVtkProperties Box22 new ConcatStrings Box24 connect viewerResult.Widget Box28.Widget2 connect Box28.Widget Box26.Widget1 connect Box29.Widget Box28.Widget1 connect Box31.Widget Box38.Widget2 connect Box38.Widget Box29.Widget2 connect Box39.Widget Box29.Widget1 connect Box30.Widget Box39.Widget1 connect Box23.Out Box30.In connect viewerResult.Renderer1 Box30.vtkRenderer connect viewerResult.Renderer1 Box31.vtkRenderer connect Box30.BoxChange Box19.In1 connect Box31.BoxChange Box19.In2 connect Box19.BoxChange viewerResult.BoxExecute connect Box20.Out viewerResult.In connect Box20.Out Box31.In connect Box11.Widget Box12.Widget1 connect Box12.Widget Box29.Widget3 connect viewerResult.Renderer1 Box11.Renderer connect Box13.Out Box14.In connect Box14.Out Box15.In1 connect Box15.Out Box11.lstPointX connect Box16.Out Box17.In1 connect Box18.Out Box21.In1 connect Box13.Out Box16.In connect Box17.Out Box11.lstPointY connect Box13.Out Box18.In connect Box21.Out Box11.lstPointZ connect Box23.Out Box22.In connect Box22.Spacing Box24.In1 connect Box24.Out Box11.spc # Complex input ports input BoxExecute Box19.In3 " " input Image1 Box23.In " " input Image2 Box20.In " " input CenterPoint Box13.In " " input WinTitle Box28.WinTitle " " # Complex output ports output Widget Box26.Widget " " output Point viewerResult.Point " " output BoxChange viewerResult.BoxChange " " endefine