From: Eduardo DAVILA Date: Fri, 6 Jan 2023 16:04:29 +0000 (+0100) Subject: #3499 box Mesh_tool_ApplyExternalMask X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fa221b980ee360416235e790158666b3a62d9a1d;p=creaMaracasVisu.git #3499 box Mesh_tool_ApplyExternalMask --- diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbg b/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbg index d2f0a03..08433a9 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbg +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbg @@ -52,7 +52,7 @@ COMPLEX_PORT meshmanagermodel -131.800179:136.578564:-900.000000 FIN_COMPLEX_PORT -BOXES:45 +BOXES:51 BOX wx:LayoutLine:Box08 ISEXEC:FALSE @@ -86,8 +86,8 @@ FIN_BOX BOX wx:CommandButton:Box80 ISEXEC:FALSE --101.602098:27.184371:-900.000000 --79.327098:24.684371:-900.000000 +-99.608528:24.991444:-900.000000 +-77.333528:22.491444:-900.000000 PORT Label:"Refresh" FIN_BOX @@ -128,16 +128,16 @@ FIN_BOX BOX wx:CommandButton:Box42 ISEXEC:FALSE --91.903796:13.441695:-900.000000 --69.628796:10.941695:-900.000000 +-92.103153:16.432051:-900.000000 +-69.828153:13.932051:-900.000000 PORT Label:"Apply (Magenta->To Red)" FIN_BOX BOX wx:CommandButton:Box43 ISEXEC:FALSE --80.312782:7.645253:-900.000000 --58.037782:5.145253:-900.000000 +-107.425339:33.561668:-900.000000 +-85.150339:31.061668:-900.000000 PORT Label:"Reset Tool" FIN_BOX @@ -318,36 +318,34 @@ FIN_BOX BOX wx:LayoutTab:Box49 ISEXEC:FALSE --326.256937:-72.884253:-900.000000 --292.936937:-75.384253:-900.000000 +-327.245485:-110.119535:-900.000000 +-293.925485:-112.619535:-900.000000 FIN_BOX BOX wx:LayoutLine:Box50 ISEXEC:FALSE --322.035028:-64.215370:-900.000000 --288.715028:-66.715370:-900.000000 -PORT -WinTitle:"External Mask" +-367.013930:-85.139621:-900.000000 +-333.693930:-87.639621:-900.000000 FIN_BOX BOX wx:ButtonSelectFilesDirectory:Box52 ISEXEC:FALSE --384.260712:3.096548:-900.000000 --354.460712:0.596548:-900.000000 +-396.842223:17.625198:-900.000000 +-367.042223:15.125198:-900.000000 PORT Label:"Read .mhd" FIN_BOX BOX vtk:MetaImageReader:Box53 ISEXEC:FALSE --396.302344:-11.848891:-900.000000 --373.842344:-14.348891:-900.000000 +-406.322619:6.304432:-900.000000 +-383.862619:3.804432:-900.000000 FIN_BOX BOX creaMaracasVisu:ColorLayerImageView:Box54 ISEXEC:FALSE --316.302899:-53.427355:-900.000000 --275.942899:-55.927355:-900.000000 +-353.702938:-66.113712:-900.000000 +-313.342938:-68.613712:-900.000000 PORT ColorBarPosition:"-100 -100" PORT @@ -384,12 +382,58 @@ PORT Upper:"100000" FIN_BOX BOX -wx:LayoutCenter:Box62 +vtk:InversCrop:Box83 +ISEXEC:FALSE +-245.378582:-162.481954:-900.000000 +-223.703582:-164.981954:-900.000000 +PORT +BoxProcessMode:"manual" +PORT +Origin:"0 0 0" +PORT +Type:"1" +FIN_BOX +BOX +vtk:CreateImage:Box85 ISEXEC:FALSE --344.363820:-51.965690:-900.000000 --322.433820:-54.465690:-900.000000 +-232.965770:-150.499494:-900.000000 +-211.035770:-152.999494:-900.000000 FIN_BOX -CONNECTIONS:70 +BOX +vtk:ImageVtkProperties:Box87 +ISEXEC:FALSE +-237.909382:-131.040153:-900.000000 +-215.374382:-133.540153:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box88 +ISEXEC:FALSE +-333.078226:-98.745809:-900.000000 +-299.758226:-101.245809:-900.000000 +PORT +Orientation:"H" +PORT +WinTitle:"External Mask" +FIN_BOX +BOX +wx:OutputText:Box89 +ISEXEC:FALSE +-329.723985:-84.752826:-900.000000 +-308.053985:-87.252826:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box90 +ISEXEC:FALSE +-305.838512:-84.684110:-900.000000 +-284.168512:-87.184110:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box91 +ISEXEC:FALSE +-390.688822:-74.633879:-900.000000 +-369.018822:-77.133879:-900.000000 +FIN_BOX +CONNECTIONS:79 CONNECTION Box08:Widget:widget:widget NumberOfControlPoints:0 @@ -547,9 +591,6 @@ CONNECTION Box43:Widget:Box44:Widget2 NumberOfControlPoints:0 CONNECTION -Box50:Widget:Box49:Widget2 -NumberOfControlPoints:0 -CONNECTION Box49:Widget:Box81:Widget1 NumberOfControlPoints:0 CONNECTION @@ -571,33 +612,63 @@ CONNECTION Box54:Widget:Box50:Widget4 NumberOfControlPoints:0 CONNECTION -Box52:BoxChange:Box54:BoxExecute +Box52:BoxChange:Box56:BoxExecute NumberOfControlPoints:0 CONNECTION -Box53:Out:Box56:In1 +Box97:Out:Box60:In NumberOfControlPoints:0 CONNECTION -Box52:BoxChange:Box56:BoxExecute +Box60:Out:Box56:In2 NumberOfControlPoints:0 CONNECTION -Box97:Out:Box60:In +Box56:Out:Box61:In NumberOfControlPoints:0 CONNECTION -Box60:Out:Box56:In2 +Box61:Out:Box99:In +NumberOfControlPoints:0 +CONNECTION +Box53:Out:Box56:In1 NumberOfControlPoints:0 CONNECTION Box53:Out:Box54:In NumberOfControlPoints:0 CONNECTION -Box56:Out:Box61:In +Box53:Out:Box83:ImageFix NumberOfControlPoints:0 CONNECTION -Box61:Out:Box99:In +Box85:Out:Box83:ImageMove +NumberOfControlPoints:0 +CONNECTION +Box42:BoxChange:Box83:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box53:Out:Box87:In +NumberOfControlPoints:0 +CONNECTION +Box87:TypeName:Box85:OutputFormat +NumberOfControlPoints:0 +CONNECTION +Box87:Spacing:Box85:Spacing +NumberOfControlPoints:0 +CONNECTION +Box87:Size:Box85:Dimensions +NumberOfControlPoints:0 +CONNECTION +Box50:Widget:Box88:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box89:Widget:Box88:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box90:Widget:Box88:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box88:Widget:Box49:Widget2 NumberOfControlPoints:0 CONNECTION -Box52:Widget:Box62:Widget2 +Box52:Widget:Box50:Widget3 NumberOfControlPoints:0 CONNECTION -Box62:Widget:Box50:Widget2 +Box91:Widget:Box50:Widget2 NumberOfControlPoints:0 APP_END diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbs b/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbs index e55534d..bd6aecf 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbs +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbs @@ -116,7 +116,6 @@ new creaVtk:PolyDataNormals Box39 new wx:LayoutTab Box49 new wx:LayoutLine Box50 - set Box50.WinTitle "External Mask" new wx:ButtonSelectFilesDirectory Box52 set Box52.Label "Read .mhd" @@ -139,7 +138,24 @@ new creaVtk:ImageThreshold Box61 set Box61.OutValue "0" set Box61.Upper "100000" -new wx:LayoutCenter Box62 +new vtk:InversCrop Box83 + set Box83.BoxProcessMode "manual" + set Box83.Origin "0 0 0" + set Box83.Type "1" + +new vtk:CreateImage Box85 + +new vtk:ImageVtkProperties Box87 + +new wx:LayoutLine Box88 + set Box88.Orientation "H" + set Box88.WinTitle "External Mask" + +new wx:OutputText Box89 + +new wx:OutputText Box90 + +new wx:OutputText Box91 connect Box66.Out Box11.Renderer @@ -184,7 +200,6 @@ connect Box37.boxchange Box11.BoxExecute connect Box41.Out Box39.In connect Box39.Out Box93.Mesh connect Box43.Widget Box44.Widget2 -connect Box50.Widget Box49.Widget2 connect Box49.Widget Box81.Widget1 connect Box40.Widget Box81.Widget4 connect Box52.Out Box53.In @@ -192,16 +207,26 @@ connect Box64.Out Box54.WxVtkBaseView connect Box65.Out Box54.WxVtkBaseView1 connect Box69.Out Box54.WxVtkBaseView2 connect Box54.Widget Box50.Widget4 -connect Box52.BoxChange Box54.BoxExecute -connect Box53.Out Box56.In1 connect Box52.BoxChange Box56.BoxExecute connect Box97.Out Box60.In connect Box60.Out Box56.In2 -connect Box53.Out Box54.In connect Box56.Out Box61.In connect Box61.Out Box99.In -connect Box52.Widget Box62.Widget2 -connect Box62.Widget Box50.Widget2 +connect Box53.Out Box56.In1 +connect Box53.Out Box54.In +connect Box53.Out Box83.ImageFix +connect Box85.Out Box83.ImageMove +connect Box42.BoxChange Box83.BoxExecute +connect Box53.Out Box87.In +connect Box87.TypeName Box85.OutputFormat +connect Box87.Spacing Box85.Spacing +connect Box87.Size Box85.Dimensions +connect Box50.Widget Box88.Widget1 +connect Box89.Widget Box88.Widget2 +connect Box90.Widget Box88.Widget3 +connect Box88.Widget Box49.Widget2 +connect Box52.Widget Box50.Widget3 +connect Box91.Widget Box50.Widget2 # Complex input ports input mesh Box67.In " "