From f8de8445e5399b0f4c5235f9f0775accfa49625e Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 25 Aug 2022 16:43:54 +0200 Subject: [PATCH] #3490 MeshManager --- bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg | 296 ++++++++++++++-------- bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs | 90 ++++--- bbtk/bbs/boxes/PolyDataToActor_Widget.bbg | 77 ++++-- bbtk/bbs/boxes/PolyDataToActor_Widget.bbs | 11 +- 4 files changed, 313 insertions(+), 161 deletions(-) diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg b/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg index 3307d1d..a79b7a6 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg +++ b/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg @@ -13,9 +13,9 @@ PACKAGENAME:creaMaracasVisu COMPLEXOUTPUTS:1 COMPLEX_PORT widget --175.519751:-90.728005:-900.000000 +-185.515637:-154.347846:-900.000000 FIN_COMPLEX_PORT -COMPLEXINPUTS:9 +COMPLEXINPUTS:11 COMPLEX_PORT render -32.390937:141.689813:-900.000000 @@ -52,12 +52,20 @@ COMPLEX_PORT wxvtkbaseview4 -194.359638:132.854505:-900.000000 FIN_COMPLEX_PORT -BOXES:28 +COMPLEX_PORT +title +-167.581636:131.715380:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +meshmanagermodel +-150.374274:130.740991:-900.000000 +FIN_COMPLEX_PORT +BOXES:35 BOX creaMaracasVisu:ShowNPoints:showNpoints ISEXEC:FALSE --1.656419:115.283823:-900.000000 -36.840000:112.783823:-900.000000 +24.787568:83.025910:-900.000000 +61.627568:80.525910:-900.000000 PORT Radio:"1" PORT @@ -73,7 +81,7 @@ BOX creaMaracasVisu:ManualContourModel_Box:Box06 ISEXEC:FALSE 19.252527:28.454709:-900.000000 -42.462527:25.954709:-900.000000 +43.772527:25.954709:-900.000000 PORT DoubleContour:"1" PORT @@ -86,8 +94,8 @@ FIN_BOX BOX wx:LayoutLine:Box08 ISEXEC:FALSE --177.086770:-62.188611:-900.000000 -33.320000:-64.688611:-900.000000 +-187.091673:-141.817931:-900.000000 +-153.771673:-144.317931:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box11 @@ -101,7 +109,9 @@ BOX creaMaracasVisu:DrawAxisTree3D:Box30 ISEXEC:FALSE 66.830537:-0.099472:-900.000000 -89.010537:-2.599472:-900.000000 +94.870537:-2.599472:-900.000000 +PORT +Colour:"0 0 1" PORT LineWidth:"2" FIN_BOX @@ -115,7 +125,7 @@ BOX creaMaracasVisu:ManualContourModel_Box:Box29 ISEXEC:FALSE 59.049338:28.545969:-900.000000 -82.259338:26.045969:-900.000000 +83.569338:26.045969:-900.000000 PORT NbPoints:"40" PORT @@ -189,29 +199,31 @@ BOX vtk:ImageVtkProperties:Box68 ISEXEC:FALSE -111.766259:110.196821:-900.000000 -16.720000:107.696821:-900.000000 +-89.231259:107.696821:-900.000000 FIN_BOX BOX std:VectorFilterDouble:Box70 ISEXEC:FALSE 49.750242:60.953814:-900.000000 -72.180242:58.453814:-900.000000 +76.030242:58.453814:-900.000000 PORT Type:"11" FIN_BOX BOX creaVtk:BooleanOperationPolyDataFilter:Box77 ISEXEC:FALSE --26.895621:-56.012997:-900.000000 -12.200000:-58.512997:-900.000000 +-81.271858:-21.560635:-900.000000 +-57.541858:-24.060635:-900.000000 +PORT +BoxProcessMode:"Manual" PORT ReorientDifferenceCells:"false" FIN_BOX BOX wx:ComboBox:Box78 ISEXEC:FALSE --150.967153:-5.901226:-900.000000 -26.280000:-8.401226:-900.000000 +-153.877713:-5.775167:-900.000000 +-127.597713:-8.275167:-900.000000 PORT In:"Union Intersection Difference" PORT @@ -220,42 +232,50 @@ FIN_BOX BOX wx:LayoutLine:Box79 ISEXEC:FALSE --134.770074:-30.418324:-900.000000 -33.320000:-32.918324:-900.000000 +-144.841026:-82.628158:-900.000000 +-111.521026:-85.128158:-900.000000 PORT Orientation:"H" +PORT +WinTitle:"New Surface" FIN_BOX BOX wx:CommandButton:Box80 ISEXEC:FALSE --159.720977:-13.371599:-900.000000 -21.000000:-15.871599:-900.000000 +-93.628284:-4.957775:-900.000000 +-71.353284:-7.457775:-900.000000 PORT Label:"Run" FIN_BOX BOX -vtk:PolyDataToActor:Box81 +std:MagicBox:Box66 ISEXEC:FALSE --41.883613:-69.616618:-900.000000 -26.280000:-72.116618:-900.000000 -PORT -Colour:"0 1 1" -PORT -Opacity:"1" +-39.496513:124.163432:-900.000000 +-17.896513:121.663432:-900.000000 FIN_BOX BOX -vtk:UpdateRender:Box82 +std:MagicBox:Box67 ISEXEC:FALSE --46.422194:-85.379391:-900.000000 -8.680000:-87.879391:-900.000000 -PORT -Active:"true" +-67.526006:124.007723:-900.000000 +-45.926006:121.507723:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:PolyDataToActor_Widget:Box48 +ISEXEC:FALSE +13.436541:-16.292093:-900.000000 +36.456541:-18.792093:-900.000000 FIN_BOX BOX -wx:Slider:Box83 +vtk:vtkImageDataPointerRelay:Box35 ISEXEC:FALSE --120.899061:-7.502299:-900.000000 -29.800000:-10.002299:-900.000000 +-107.091396:123.633118:-900.000000 +-83.881396:121.133118:-900.000000 +FIN_BOX +BOX +wx:Slider:Box34 +ISEXEC:FALSE +-191.557215:-82.602633:-900.000000 +-161.757215:-85.102633:-900.000000 PORT In:"50" PORT @@ -267,67 +287,105 @@ Min:"0" PORT ReactiveOnTrack:"true" PORT -Title:"Opacity Mesh" +Title:"Opacity Splines" FIN_BOX BOX -std:Div:Box84 +std:Div:Box36 ISEXEC:FALSE --122.177246:-17.910716:-900.000000 -8.680000:-20.410716:-900.000000 +-189.085872:-88.665523:-900.000000 +-168.160872:-91.165523:-900.000000 PORT In2:"100" FIN_BOX BOX -std:MagicBox:Box66 +creaMaracasVisu:PolyDataToActor_Widget:Box37 ISEXEC:FALSE --39.496513:124.163432:-900.000000 -8.680000:121.663432:-900.000000 +-79.919475:-35.929691:-900.000000 +-56.899475:-38.429691:-900.000000 +PORT +color:"0 1 1" FIN_BOX BOX -std:MagicBox:Box67 +wx:LayoutLine:Box38 ISEXEC:FALSE --67.526006:124.007723:-900.000000 -8.680000:121.507723:-900.000000 +-191.115189:-97.487359:-900.000000 +-157.795189:-99.987359:-900.000000 +PORT +Orientation:"H" +PORT +WinTitle:"Interpolated Surface" FIN_BOX BOX -creaMaracasVisu:PolyDataToActor_Widget:Box48 +wx:LayoutTab:Box39 ISEXEC:FALSE -12.686357:-16.854731:-900.000000 -35.706357:-19.354731:-900.000000 +-192.009898:-106.771357:-900.000000 +-158.689898:-109.271357:-900.000000 FIN_BOX BOX -vtk:vtkImageDataPointerRelay:Box35 +wx:LayoutTab:Box40 ISEXEC:FALSE --107.091396:123.633118:-900.000000 -6.920000:121.133118:-900.000000 +-149.066535:-91.692070:-900.000000 +-115.746535:-94.192070:-900.000000 FIN_BOX BOX -wx:Slider:Box34 +wx:LayoutLine:Box41 ISEXEC:FALSE -102.343450:11.678332:-900.000000 -123.498450:9.178332:-900.000000 +-139.293876:-129.639404:-900.000000 +-105.973876:-132.139404:-900.000000 PORT -In:"50" +Orientation:"H" PORT -Label:"true" +WinTitle:"New Surface" +FIN_BOX +BOX +wx:CommandButton:Box42 +ISEXEC:FALSE +-133.798351:-105.618129:-900.000000 +-111.523351:-108.118129:-900.000000 PORT -Max:"100" +Label:"Apply" +FIN_BOX +BOX +wx:CommandButton:Box43 +ISEXEC:FALSE +-108.369154:-105.228826:-900.000000 +-86.094154:-107.728826:-900.000000 PORT -Min:"0" +Label:"Reset" +FIN_BOX +BOX +wx:LayoutLine:Box44 +ISEXEC:FALSE +-153.658490:-37.966354:-900.000000 +-120.338490:-40.466354:-900.000000 PORT -ReactiveOnTrack:"true" +Orientation:"V" PORT -Title:"Opacity Splines" +WinTitle:"New Surface" FIN_BOX BOX -std:Div:Box36 +creaVtk:MeshManager_tool:Box45 ISEXEC:FALSE -100.900507:6.542167:-900.000000 -121.825507:4.042167:-900.000000 +-104.441668:-121.362132:-900.000000 +-81.941668:-123.862132:-900.000000 PORT -In2:"100" +Tool:"3" +FIN_BOX +BOX +std:MagicBox:Box46 +ISEXEC:FALSE +-137.131256:113.921532:-900.000000 +-115.531256:111.421532:-900.000000 FIN_BOX -CONNECTIONS:67 +BOX +creaVtk:MeshManager_tool:Box47 +ISEXEC:FALSE +-70.871863:-121.548692:-900.000000 +-48.371863:-124.048692:-900.000000 +PORT +Tool:"4" +FIN_BOX +CONNECTIONS:79 CONNECTION Box06:LstContourPointsX:Box04:LstX NumberOfControlPoints:0 @@ -413,33 +471,9 @@ CONNECTION Box70:Out2:Box29:LstControlPointsZ NumberOfControlPoints:0 CONNECTION -Box78:Widget:Box79:Widget1 -NumberOfControlPoints:0 -CONNECTION -Box80:Widget:Box79:Widget3 -NumberOfControlPoints:0 -CONNECTION -Box79:Widget:Box08:Widget9 -NumberOfControlPoints:0 -CONNECTION Box80:BoxChange:Box77:BoxExecute NumberOfControlPoints:0 CONNECTION -Box77:Out:Box81:In -NumberOfControlPoints:0 -CONNECTION -Box81:BoxChange:Box82:BoxExecute -NumberOfControlPoints:0 -CONNECTION -Box83:Out:Box84:In1 -NumberOfControlPoints:0 -CONNECTION -Box84:Out:Box81:Opacity -NumberOfControlPoints:0 -CONNECTION -Box83:Widget:Box79:Widget4 -NumberOfControlPoints:0 -CONNECTION Box78:Out:Box77:Operation NumberOfControlPoints:0 CONNECTION @@ -449,12 +483,6 @@ CONNECTION render:render:Box66:In NumberOfControlPoints:0 CONNECTION -Box66:Out:Box81:Renderer -NumberOfControlPoints:0 -CONNECTION -Box66:Out:Box82:Renderer -NumberOfControlPoints:0 -CONNECTION Box66:Out:Box11:Renderer NumberOfControlPoints:0 CONNECTION @@ -485,9 +513,6 @@ CONNECTION Box66:Out:Box48:render NumberOfControlPoints:0 CONNECTION -Box48:widget:Box08:Widget7 -NumberOfControlPoints:0 -CONNECTION showNpoints:BoxChange:Box31:BoxExecute NumberOfControlPoints:0 CONNECTION @@ -512,9 +537,6 @@ CONNECTION Box36:Out:Box30:Opacity NumberOfControlPoints:0 CONNECTION -Box34:Widget:Box08:Widget8 -NumberOfControlPoints:0 -CONNECTION Box34:BoxChange:Box31:In2 NumberOfControlPoints:0 CONNECTION @@ -529,4 +551,76 @@ NumberOfControlPoints:0 CONNECTION Box57:BoxChange:Box08:BoxExecute NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box77:In2 +NumberOfControlPoints:0 +CONNECTION +title:title:Box08:WinTitle +NumberOfControlPoints:0 +CONNECTION +Box77:Out:Box37:polydata +NumberOfControlPoints:0 +CONNECTION +Box66:Out:Box37:render +NumberOfControlPoints:0 +CONNECTION +Box37:widget:Box79:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box48:widget:Box38:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box38:Widget:Box39:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box39:Widget:Box08:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box79:Widget:Box40:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box40:Widget:Box08:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box43:Widget:Box41:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box42:Widget:Box41:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box41:Widget:Box08:Widget8 +NumberOfControlPoints:0 +CONNECTION +Box34:Widget:Box38:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box78:Widget:Box44:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box80:Widget:Box44:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box44:Widget:Box79:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box80:BoxChange:Box37:boxexecute +NumberOfControlPoints:0 +CONNECTION +meshmanagermodel:meshmanagermodel:Box46:In +NumberOfControlPoints:0 +CONNECTION +Box46:Out:Box45:MeshManagerModel +NumberOfControlPoints:0 +CONNECTION +Box46:Out:Box47:MeshManagerModel +NumberOfControlPoints:0 +CONNECTION +Box42:BoxChange:Box45:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box43:BoxChange:Box47:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box77:Out:Box45:Mesh +NumberOfControlPoints:0 APP_END diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs b/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs index c82b10f..946c787 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs +++ b/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs @@ -36,6 +36,7 @@ new vtk:UpdateRender Box11 set Box11.Active "true" new creaMaracasVisu:DrawAxisTree3D Box30 + set Box30.Colour "0 0 1" set Box30.LineWidth "2" new std:MultipleInputs Box31 @@ -78,6 +79,7 @@ new std:VectorFilterDouble Box70 set Box70.Type "11" new creaVtk:BooleanOperationPolyDataFilter Box77 + set Box77.BoxProcessMode "Manual" set Box77.ReorientDifferenceCells "false" new wx:ComboBox Box78 @@ -86,28 +88,11 @@ new wx:ComboBox Box78 new wx:LayoutLine Box79 set Box79.Orientation "H" + set Box79.WinTitle "New Surface" new wx:CommandButton Box80 set Box80.Label "Run" -new vtk:PolyDataToActor Box81 - set Box81.Colour "0 1 1" - set Box81.Opacity "1" - -new vtk:UpdateRender Box82 - set Box82.Active "true" - -new wx:Slider Box83 - set Box83.In "50" - set Box83.Label "true" - set Box83.Max "100" - set Box83.Min "0" - set Box83.ReactiveOnTrack "true" - set Box83.Title "Opacity Mesh" - -new std:Div Box84 - set Box84.In2 "100" - new std:MagicBox Box66 new std:MagicBox Box67 @@ -127,6 +112,39 @@ new wx:Slider Box34 new std:Div Box36 set Box36.In2 "100" +new creaMaracasVisu:PolyDataToActor_Widget Box37 + set Box37.color "0 1 1" + +new wx:LayoutLine Box38 + set Box38.Orientation "H" + set Box38.WinTitle "Interpolated Surface" + +new wx:LayoutTab Box39 + +new wx:LayoutTab Box40 + +new wx:LayoutLine Box41 + set Box41.Orientation "H" + set Box41.WinTitle "New Surface" + +new wx:CommandButton Box42 + set Box42.Label "Apply" + +new wx:CommandButton Box43 + set Box43.Label "Reset" + +new wx:LayoutLine Box44 + set Box44.Orientation "V" + set Box44.WinTitle "New Surface" + +new creaVtk:MeshManager_tool Box45 + set Box45.Tool "3" + +new std:MagicBox Box46 + +new creaVtk:MeshManager_tool Box47 + set Box47.Tool "4" + connect Box06.LstContourPointsX Box04.LstX connect showNpoints.lstIndexs Box06.LstIndexsIn @@ -156,25 +174,14 @@ connect Box70.Out2 Box06.LstControlPointsZ connect Box70.Out0 Box29.LstControlPointsX connect Box70.Out1 Box29.LstControlPointsY connect Box70.Out2 Box29.LstControlPointsZ -connect Box78.Widget Box79.Widget1 -connect Box80.Widget Box79.Widget3 -connect Box79.Widget Box08.Widget9 connect Box80.BoxChange Box77.BoxExecute -connect Box77.Out Box81.In -connect Box81.BoxChange Box82.BoxExecute -connect Box83.Out Box84.In1 -connect Box84.Out Box81.Opacity -connect Box83.Widget Box79.Widget4 connect Box78.Out Box77.Operation -connect Box66.Out Box81.Renderer -connect Box66.Out Box82.Renderer connect Box66.Out Box11.Renderer connect Box66.Out Box30.Renderer connect Box66.Out showNpoints.Renderer connect Box67.Out Box77.In1 connect Box04.Out Box48.polydata connect Box66.Out Box48.render -connect Box48.widget Box08.Widget7 connect showNpoints.BoxChange Box31.BoxExecute connect Box48.boxchange Box31.In1 connect Box35.Out Box68.In @@ -182,9 +189,30 @@ connect Box68.Spacing Box70.k1 connect Box35.Out showNpoints.Image connect Box34.Out Box36.In1 connect Box36.Out Box30.Opacity -connect Box34.Widget Box08.Widget8 connect Box34.BoxChange Box31.In2 connect Box57.BoxChange Box08.BoxExecute +connect Box04.Out Box77.In2 +connect Box77.Out Box37.polydata +connect Box66.Out Box37.render +connect Box37.widget Box79.Widget5 +connect Box48.widget Box38.Widget2 +connect Box38.Widget Box39.Widget2 +connect Box39.Widget Box08.Widget4 +connect Box79.Widget Box40.Widget2 +connect Box40.Widget Box08.Widget6 +connect Box43.Widget Box41.Widget4 +connect Box42.Widget Box41.Widget2 +connect Box41.Widget Box08.Widget8 +connect Box34.Widget Box38.Widget1 +connect Box78.Widget Box44.Widget2 +connect Box80.Widget Box44.Widget5 +connect Box44.Widget Box79.Widget2 +connect Box80.BoxChange Box37.boxexecute +connect Box46.Out Box45.MeshManagerModel +connect Box46.Out Box47.MeshManagerModel +connect Box42.BoxChange Box45.BoxExecute +connect Box43.BoxChange Box47.BoxExecute +connect Box77.Out Box45.Mesh # Complex input ports input render Box66.In " " @@ -196,6 +224,8 @@ input image Box35.In " " input wxvtkbaseview2 Box57.wxVtkBaseView2 " " input wxvtkbaseview3 Box57.wxVtkBaseView3 " " input wxvtkbaseview4 Box57.wxVtkBaseView4 " " +input title Box08.WinTitle " " +input meshmanagermodel Box46.In " " # Complex output ports output widget Box08.Widget " " diff --git a/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg b/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg index da8d794..0d20df4 100644 --- a/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg +++ b/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg @@ -13,27 +13,35 @@ PACKAGENAME:creaMaracasVisu COMPLEXOUTPUTS:2 COMPLEX_PORT widget -33.855535:-84.982371:-900.000000 +-2.037812:-82.749770:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT boxchange 48.028303:-85.261950:-900.000000 FIN_COMPLEX_PORT -COMPLEXINPUTS:2 +COMPLEXINPUTS:4 COMPLEX_PORT render -96.763935:28.050903:-900.000000 +89.850563:10.360805:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT polydata -47.816490:30.237559:-900.000000 +52.086514:10.717451:-900.000000 FIN_COMPLEX_PORT -BOXES:7 +COMPLEX_PORT +color +34.196671:10.024718:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxexecute +-29.195546:6.611932:-900.000000 +FIN_COMPLEX_PORT +BOXES:8 BOX wx:LayoutLine:Box04 ISEXEC:FALSE -4.432957:-33.559334:-900.000000 -37.752957:-36.059334:-900.000000 +-4.766527:-48.767110:-900.000000 +28.553473:-51.267110:-900.000000 PORT Orientation:"H" FIN_BOX @@ -46,22 +54,22 @@ FIN_BOX BOX std:MagicBox:Box10 ISEXEC:FALSE -86.244886:-34.223182:-900.000000 -107.844886:-36.723182:-900.000000 +91.397041:-6.745021:-900.000000 +112.997041:-9.245021:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box11 ISEXEC:FALSE -64.486244:-64.455280:-900.000000 -86.511244:-66.955280:-900.000000 +67.749276:-53.635754:-900.000000 +89.774276:-56.135754:-900.000000 PORT Active:"true" FIN_BOX BOX wx:Slider:Box13 ISEXEC:FALSE -33.485995:-13.417044:-900.000000 -63.285995:-15.917044:-900.000000 +-13.704404:-6.213707:-900.000000 +16.095596:-8.713707:-900.000000 PORT In:"50" PORT @@ -78,16 +86,16 @@ FIN_BOX BOX std:Div:Box14 ISEXEC:FALSE -57.129761:-23.008929:-900.000000 -78.054761:-25.508929:-900.000000 +-4.082559:-10.382832:-900.000000 +16.842441:-12.882832:-900.000000 PORT In2:"100" FIN_BOX BOX wx:ComboBox:Box15 ISEXEC:FALSE -99.621034:-14.381564:-900.000000 -125.901034:-16.881564:-900.000000 +55.700791:-9.704871:-900.000000 +81.980791:-12.204871:-900.000000 PORT In:"Points WireFrame Surface" PORT @@ -95,7 +103,13 @@ Selection:"2" PORT Title:"Representation" FIN_BOX -CONNECTIONS:13 +BOX +std:MultipleInputs:Box08 +ISEXEC:FALSE +-27.821638:-25.674906:-900.000000 +-5.851638:-28.174906:-900.000000 +FIN_BOX +CONNECTIONS:16 CONNECTION Box10:Out:Box11:Renderer NumberOfControlPoints:0 @@ -109,12 +123,6 @@ CONNECTION Box14:Out:Box09:Opacity NumberOfControlPoints:0 CONNECTION -Box13:Widget:Box04:Widget2 -NumberOfControlPoints:0 -CONNECTION -Box13:BoxChange:Box09:BoxExecute -NumberOfControlPoints:0 -CONNECTION Box10:Out:Box09:Renderer NumberOfControlPoints:0 CONNECTION @@ -127,12 +135,27 @@ CONNECTION polydata:polydata:Box09:In NumberOfControlPoints:0 CONNECTION -Box15:Widget:Box04:Widget4 -NumberOfControlPoints:0 -CONNECTION Box15:Out:Box09:Representation NumberOfControlPoints:0 CONNECTION Box09:BoxChange:boxchange:boxchange NumberOfControlPoints:0 +CONNECTION +color:color:Box09:Colour +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box04:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box04:Widget3 +NumberOfControlPoints:0 +CONNECTION +boxexecute:boxexecute:Box08:In3 +NumberOfControlPoints:0 +CONNECTION +Box13:BoxChange:Box08:In1 +NumberOfControlPoints:0 +CONNECTION +Box08:BoxChange:Box09:BoxExecute +NumberOfControlPoints:0 APP_END diff --git a/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs b/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs index 2417744..3bf46bb 100644 --- a/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs +++ b/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs @@ -42,20 +42,25 @@ new wx:ComboBox Box15 set Box15.Selection "2" set Box15.Title "Representation" +new std:MultipleInputs Box08 + connect Box10.Out Box11.Renderer connect Box09.BoxChange Box11.BoxExecute connect Box13.Out Box14.In1 connect Box14.Out Box09.Opacity -connect Box13.Widget Box04.Widget2 -connect Box13.BoxChange Box09.BoxExecute connect Box10.Out Box09.Renderer -connect Box15.Widget Box04.Widget4 connect Box15.Out Box09.Representation +connect Box15.Widget Box04.Widget1 +connect Box13.Widget Box04.Widget3 +connect Box13.BoxChange Box08.In1 +connect Box08.BoxChange Box09.BoxExecute # Complex input ports input render Box10.In " " input polydata Box09.In " " +input color Box09.Colour " " +input boxexecute Box08.In3 " " # Complex output ports output widget Box04.Widget " " -- 2.47.1