# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) # - /home/davila/Creatis/C10/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/ManualPaint2.bbs # ---------------------------------- include std include itkvtk include creaMaracasVisu include wx include std include vtk define ManualPaint2 creaMaracasVisu author "Author ??" description "Description ??" category "" new creaMaracasVisu:ManualPaint_Model Box00 set Box00.2D3D "1" set Box00.Active "true" set Box00.BrushForm "1" set Box00.BrushSize "3" set Box00.DistanceFill "25" set Box00.GrayLevel "1000" set Box00.Range "-10000 10000" set Box00.Tool "1" new wx:RadioButton Box01 set Box01.In0 "Deselect" set Box01.In1 "BigBlue" set Box01.In2 "SmallBlue" set Box01.In3 "BigClean" set Box01.In4 "SmallClean" new std:StringSelect Box02 new creaMaracasVisu:ColorLayerImageView Box03 set Box03.TypeControlsInterface "2" set Box03.lstTransparenceBoundaries "0" new std:TransposeVectorVectorString Box04 set Box04.In0 "Desactivate Big-Blue Small-Blue Big-Clean Small-Clean" set Box04.In1 "false true true true true" set Box04.In2 "-1 10 3 10 3" set Box04.In3 "-1 4000 4000 0 0" set Box04.In4 "-1 1200 1200 3999 3999" set Box04.In5 "-1 1500 1500 4001 4001" new std:GetVectorStringElement Box05 set Box05.I "1" new wx:LayoutLine Box09 new std:GetVectorStringElement Box11 set Box11.I "2" new std:GetVectorStringElement Box12 set Box12.I "3" new std:ConcatStrings Box13 set Box13.In2 " " new std:GetVectorStringElement Box14 set Box14.I "5" new std:GetVectorStringElement Box15 set Box15.I "4" new std:TransposeVectorVectorString Box17 set Box17.In0 "Desactivate Big-Blue Small-Blue Big-Clean Small-Clean" new wx:RadioButton Box18 set Box18.In "1" set Box18.In0 "Brush" set Box18.In1 "Fill" new wx:LayoutLine Box19 set Box19.Orientation "H" new std:MagicBox Box20 new std:GetVectorStringElement Box21 set Box21.I "6" new vtk:vtkImageDataPointerRelay Box22 new vtk:UpdateRender Box23 set Box23.Active "true" new std:MagicBox Box24 new std:MagicBox Box25 new std:MagicBox Box26 new vtk:UpdateRender Box27 set Box27.Active "true" new vtk:UpdateRender Box28 set Box28.Active "true" new wx:LayoutLine Box29 new wx:CommandButton Box30 set Box30.Label "Undo" new wx:CommandButton Box31 set Box31.Label "Redo" new creaMaracasVisu:ManualPaint_UndoRedo Box32 set Box32.Type "2" new creaMaracasVisu:ManualPaint_UndoRedo Box33 set Box33.Type "1" new vtk:UpdateRender Box34 new std:MagicBox Box38 new wx:LayoutLine Box36 set Box36.Orientation "H" new wx:RadioButton Box37 set Box37.In "1" set Box37.In0 "2D" set Box37.In1 "3D" new wx:RadioButton Box39 set Box39.In "1" set Box39.In0 "YZ" set Box39.In1 "XZ" set Box39.In2 "XY" connect Box01.Out Box02.In connect Box04.Out0 Box02.In0 connect Box04.Out1 Box02.In1 connect Box04.Out2 Box02.In2 connect Box04.Out3 Box02.In3 connect Box04.Out4 Box02.In4 connect Box04.Out5 Box02.In5 connect Box04.Out6 Box02.In6 connect Box04.Out7 Box02.In7 connect Box04.Out8 Box02.In8 connect Box04.Out9 Box02.In9 connect Box02.Out Box05.In connect Box03.Widget Box09.Widget2 connect Box05.Out Box00.Active connect Box02.Out Box11.In connect Box11.Out Box00.DistanceFill connect Box02.Out Box12.In connect Box12.Out Box00.GrayLevel connect Box02.Out Box15.In connect Box02.Out Box14.In connect Box15.Out Box13.In1 connect Box14.Out Box13.In3 connect Box13.Out Box00.Range connect Box17.Out0 Box01.In0 connect Box17.Out1 Box01.In1 connect Box17.Out2 Box01.In2 connect Box17.Out3 Box01.In3 connect Box17.Out4 Box01.In4 connect Box17.Out5 Box01.In5 connect Box17.Out6 Box01.In6 connect Box17.Out7 Box01.In7 connect Box17.Out8 Box01.In8 connect Box17.Out9 Box01.In9 connect Box01.Widget Box19.Widget2 connect Box19.Widget Box09.Widget1 connect Box18.Out Box00.Tool connect Box11.Out Box00.BrushSize connect Box20.Out Box17.In0 connect Box20.Out Box04.In0 connect Box02.Out Box21.In connect Box21.Out Box00.ToleranceFill connect Box22.Out Box00.Image2 connect Box22.Out Box03.In connect Box24.Out Box03.WxVtkBaseView connect Box25.Out Box03.WxVtkBaseView1 connect Box26.Out Box03.WxVtkBaseView2 connect Box24.Out Box23.Renderer connect Box00.BoxChange Box23.BoxExecute connect Box25.Out Box27.Renderer connect Box26.Out Box28.Renderer connect Box00.BoxChange Box27.BoxExecute connect Box00.BoxChange Box28.BoxExecute connect Box29.Widget Box19.Widget1 connect Box30.Widget Box29.Widget2 connect Box31.Widget Box29.Widget3 connect Box00.Manualpaintmodel Box32.Manualpaintmodel connect Box31.BoxChange Box32.BoxExecute connect Box30.BoxChange Box33.BoxExecute connect Box00.Manualpaintmodel Box33.Manualpaintmodel connect Box38.Out Box00.Point connect Box24.Out Box33.wxvtkbaseview connect Box24.Out Box32.wxvtkbaseview connect Box36.Widget Box29.Widget1 connect Box18.Widget Box36.Widget1 connect Box37.Widget Box36.Widget2 connect Box37.Out Box00.2D3D connect Box39.Widget Box36.Widget4 connect Box39.Out Box00.Direction # Complex input ports input TitleOptions Box20.In " " input Active_ManualPaint_Model Box04.In1 " " input SizeDistance_ManualPaint_Model Box04.In2 " " input GrayLevel_ManualPaint_Model Box04.In3 " " input MinRange_ManualPaint_Model Box04.In4 " " input MaxRange_ManualPaint_Model Box04.In5 " " input Image_ManualPaint_Model Box00.Image " " input BoxExecute_ManualPaint_Model Box00.BoxExecute " " input Tolerance_Fill_ManualPaint_Model Box04.In6 " " input colorBarPosition Box03.ColorBarPosition " " input Image2_ManualPaint_Model Box22.In " " input wxvtkbaseview1 Box24.In " " input wxvtkbaseview2 Box25.In " " input wxvtkbaseview3 Box26.In " " input Point_ManualPaint_Model Box38.In " " # Complex output ports output widgetOut Box09.Widget " " output boxChange Box01.BoxChange " " endefine