From 3711eac30dc6093a6c17614119348a8b12cebda9 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 23 Mar 2023 16:47:55 +0100 Subject: [PATCH] #3497 Mesh_tool_ApplyThresholdConnectivity --- bbtk/bbs/boxes/Mesh_Application.bbg | 64 ++++----- bbtk/bbs/boxes/Mesh_Application.bbs | 4 +- bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg | 134 +++++++++--------- bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs | 2 +- bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg | 85 ++++++----- bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs | 3 +- .../Mesh_tool_ApplyThresholdConnectivity.bbg | 110 +++++++------- .../Mesh_tool_ApplyThresholdConnectivity.bbs | 2 +- bbtk/bbs/boxes/PolyDataToActor_Widget.bbg | 2 +- bbtk/bbs/boxes/PolyDataToActor_Widget.bbs | 2 +- bbtk/src/bbmaracasvisuSliderMinMax.cxx | 40 +++--- 11 files changed, 220 insertions(+), 228 deletions(-) diff --git a/bbtk/bbs/boxes/Mesh_Application.bbg b/bbtk/bbs/boxes/Mesh_Application.bbg index 85e7588..281c5ca 100644 --- a/bbtk/bbs/boxes/Mesh_Application.bbg +++ b/bbtk/bbs/boxes/Mesh_Application.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBG BlackBox Diagram file -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_Application.bbg +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_Application.bbg # ---------------------------------- APP_START @@ -73,7 +73,7 @@ BOX creaMaracasVisu:PolyDataToActor_Widget:Box15 ISEXEC:FALSE -104.267222:-30.685106:-900.000000 --81.247222:-33.185106:-900.000000 +-80.678442:-33.185106:-900.000000 PORT color:"1 0.7 0.7" PORT @@ -93,27 +93,27 @@ BOX wx:LayoutSplit:Box11 ISEXEC:FALSE -96.149542:-151.649281:-900.000000 --73.389542:-154.149281:-900.000000 +-71.246729:-154.149281:-900.000000 PORT Proportion:"5" FIN_BOX BOX wx:LayoutTab:Box12 ISEXEC:FALSE -133.437236:-38.291022:-900.000000 -166.757236:-40.791022:-900.000000 +134.740588:-25.816081:-900.000000 +168.060588:-28.316081:-900.000000 FIN_BOX BOX creaMaracasVisu:SetPositionPointPicker:Box13 ISEXEC:FALSE -138.511818:-28.191873:-900.000000 --115.781818:-30.691873:-900.000000 +-85.883220:-30.691873:-900.000000 FIN_BOX BOX wx:LayoutLine:Box14 ISEXEC:FALSE -34.558347:-6.679515:-900.000000 --1.238347:-9.179515:-900.000000 +-12.898347:-9.179515:-900.000000 PORT WinTitle:"Nothing" FIN_BOX @@ -129,13 +129,13 @@ BOX wx:LayoutTab:Box20 ISEXEC:FALSE -97.190069:-143.295975:-900.000000 --63.870069:-145.795975:-900.000000 +-60.765693:-145.795975:-900.000000 FIN_BOX BOX wx:LayoutLine:Box22 ISEXEC:FALSE -100.046840:-134.742726:-900.000000 --66.726840:-137.242726:-900.000000 +-61.002585:-137.242726:-900.000000 PORT Orientation:"H" PORT @@ -144,8 +144,8 @@ FIN_BOX BOX std:StringSelect:Box23 ISEXEC:FALSE -6.786582:-36.566150:-900.000000 -31.306582:-39.066150:-900.000000 +9.393286:-29.304617:-900.000000 +33.913286:-31.804617:-900.000000 PORT In0:"false false false false false false" PORT @@ -155,7 +155,7 @@ In2:"false false true false false false" PORT In3:"false false false false false false" PORT -In4:"false false false false false true" +In4:"false false false false true false" PORT In5:"false false false false false false" PORT @@ -185,13 +185,13 @@ BOX vtk:SurfaceTexture:Box26 ISEXEC:FALSE -145.884447:-3.104612:-900.000000 --123.824447:-5.604612:-900.000000 +-80.395968:-5.604612:-900.000000 FIN_BOX BOX wx:RadioButton:Box27 ISEXEC:FALSE -138.054594:54.648057:-900.000000 --101.214594:52.148057:-900.000000 +-60.483220:52.148057:-900.000000 PORT In0:"Red" PORT @@ -203,13 +203,13 @@ BOX std:MultipleInputs:Box28 ISEXEC:FALSE -155.246087:44.364360:-900.000000 --133.276087:41.864360:-900.000000 +-77.665609:41.864360:-900.000000 FIN_BOX BOX std:StringSelect:Box29 ISEXEC:FALSE -108.969636:14.830202:-900.000000 --84.449636:12.330202:-900.000000 +-70.434298:12.330202:-900.000000 PORT In0:"false" PORT @@ -221,7 +221,7 @@ BOX std:Add:Box30 ISEXEC:FALSE -133.940296:18.182303:-900.000000 --112.905296:15.682303:-900.000000 +-88.248400:15.682303:-900.000000 PORT In2:"-1" FIN_BOX @@ -229,13 +229,13 @@ BOX creaMaracasVisu:wxVtkBaseView_Info:Box31 ISEXEC:FALSE -111.518153:35.023891:-900.000000 --84.238153:32.523891:-900.000000 +-67.911190:32.523891:-900.000000 FIN_BOX BOX std:GetVectorDoubleElement:Box32 ISEXEC:FALSE -185.764370:25.475119:-900.000000 --162.639370:22.975119:-900.000000 +-90.594531:22.975119:-900.000000 PORT I:"1" FIN_BOX @@ -243,7 +243,7 @@ BOX std:GetVectorDoubleElement:Box33 ISEXEC:FALSE -154.849811:22.322554:-900.000000 --131.724811:19.822554:-900.000000 +-88.146645:19.822554:-900.000000 PORT I:"0" FIN_BOX @@ -251,7 +251,7 @@ BOX wx:LayoutLine:Box34 ISEXEC:FALSE -208.241265:-123.706763:-900.000000 --174.921265:-126.206763:-900.000000 +-69.530705:-126.206763:-900.000000 FIN_BOX BOX creaMaracasVisu:Mesh_tool_ApplyPatch:Box38 @@ -295,7 +295,7 @@ BOX creaVtk:PlaneWidget:Box48 ISEXEC:FALSE -145.259232:-61.985653:-900.000000 --123.414232:-64.485653:-900.000000 +-78.635968:-64.485653:-900.000000 PORT ReactiveType:"0" PORT @@ -307,7 +307,7 @@ BOX creaVtk:PlaneWidget_Base:Box49 ISEXEC:FALSE -286.533170:-79.025808:-900.000000 --264.123170:-81.525808:-900.000000 +-98.569903:-81.525808:-900.000000 PORT Param:"-1" PORT @@ -317,7 +317,7 @@ BOX creaVtk:PlaneWidget_Base:Box50 ISEXEC:FALSE -253.995440:-80.358971:-900.000000 --231.585440:-82.858971:-900.000000 +-95.964088:-82.858971:-900.000000 PORT Param:"1" PORT @@ -327,7 +327,7 @@ BOX wx:CommandButton:Box51 ISEXEC:FALSE -287.789041:-65.458170:-900.000000 --265.514041:-67.958170:-900.000000 +-88.088867:-67.958170:-900.000000 PORT Label:"-" FIN_BOX @@ -335,7 +335,7 @@ BOX wx:CommandButton:Box52 ISEXEC:FALSE -251.116181:-64.335441:-900.000000 --228.841181:-66.835441:-900.000000 +-85.246160:-66.835441:-900.000000 PORT Label:"+" FIN_BOX @@ -343,7 +343,7 @@ BOX wx:LayoutLine:Box53 ISEXEC:FALSE -190.138796:-112.361388:-900.000000 --156.818796:-114.861388:-900.000000 +-68.109352:-114.861388:-900.000000 PORT Orientation:"H" FIN_BOX @@ -351,7 +351,7 @@ BOX wx:CheckBox:Box54 ISEXEC:FALSE -211.761741:-50.048031:-900.000000 --190.131741:-52.548031:-900.000000 +-82.087597:-52.548031:-900.000000 PORT In:"false" PORT @@ -361,7 +361,7 @@ BOX std:MultipleInputs:Box55 ISEXEC:FALSE -150.826236:-42.647094:-900.000000 --128.856236:-45.147094:-900.000000 +-77.270789:-45.147094:-900.000000 FIN_BOX BOX creaVtk:PolyDataNormals:Box56 @@ -389,13 +389,13 @@ BOX creaMaracasVisu:SetPosition:Box59 ISEXEC:FALSE -141.049598:-108.060523:-900.000000 --119.389598:-110.560523:-900.000000 +-85.360112:-110.560523:-900.000000 FIN_BOX BOX std:MathOperationVector:Box60 ISEXEC:FALSE -133.238482:-99.296683:-900.000000 --108.718482:-101.796683:-900.000000 +-72.408400:-101.796683:-900.000000 PORT Type:"3" FIN_BOX @@ -403,7 +403,7 @@ BOX vtk:ImageVtkProperties:Box61 ISEXEC:FALSE -124.789103:-78.215157:-900.000000 --102.254103:-80.715157:-900.000000 +-79.497723:-80.715157:-900.000000 FIN_BOX BOX std:MagicBox:Box63 diff --git a/bbtk/bbs/boxes/Mesh_Application.bbs b/bbtk/bbs/boxes/Mesh_Application.bbs index 8fd8652..69727d8 100644 --- a/bbtk/bbs/boxes/Mesh_Application.bbs +++ b/bbtk/bbs/boxes/Mesh_Application.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_Application.bbs +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_Application.bbs # ---------------------------------- include std @@ -54,7 +54,7 @@ new std:StringSelect Box23 set Box23.In1 "false true false false false false" set Box23.In2 "false false true false false false" set Box23.In3 "false false false false false false" - set Box23.In4 "false false false false false true" + set Box23.In4 "false false false false true false" set Box23.In5 "false false false false false false" set Box23.In6 "false false false false false false" set Box23.In7 "false false false false false false" diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg index d97a336..315cb52 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBG BlackBox Diagram file -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg # ---------------------------------- APP_START @@ -61,7 +61,7 @@ BOX wx:LayoutLine:Box08 ISEXEC:FALSE -191.490538:-129.735971:-900.000000 -33.320000:-132.235971:-900.000000 +-158.170538:-132.235971:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box11 @@ -75,7 +75,7 @@ BOX wx:LayoutLine:Box79 ISEXEC:FALSE -131.034747:-92.367694:-900.000000 -33.320000:-94.867694:-900.000000 +-97.714747:-94.867694:-900.000000 PORT Orientation:"H" PORT @@ -99,19 +99,19 @@ BOX std:MagicBox:Box67 ISEXEC:FALSE -67.526006:124.007723:-900.000000 -8.680000:121.507723:-900.000000 +-45.926006:121.507723:-900.000000 FIN_BOX BOX vtk:vtkImageDataPointerRelay:Box35 ISEXEC:FALSE -107.091396:123.633118:-900.000000 -6.920000:121.133118:-900.000000 +-83.881396:121.133118:-900.000000 FIN_BOX BOX creaMaracasVisu:PolyDataToActor_Widget:Box37 ISEXEC:FALSE -204.608881:-41.015696:-900.000000 -13.960000:-43.515696:-900.000000 +-181.588881:-43.515696:-900.000000 PORT color:"0 1 1" FIN_BOX @@ -119,13 +119,13 @@ BOX wx:LayoutTab:Box40 ISEXEC:FALSE -182.535138:-107.612723:-900.000000 -33.320000:-110.112723:-900.000000 +-149.215138:-110.112723:-900.000000 FIN_BOX BOX wx:CommandButton:Box42 ISEXEC:FALSE -85.800879:-23.706495:-900.000000 -21.000000:-26.206495:-900.000000 +-63.525879:-26.206495:-900.000000 PORT Label:"Apply (Magenta->To Red)" FIN_BOX @@ -133,7 +133,7 @@ BOX wx:CommandButton:Box43 ISEXEC:FALSE -81.165560:-32.420102:-900.000000 -21.000000:-34.920102:-900.000000 +-58.890560:-34.920102:-900.000000 PORT Label:"Reset Tool" FIN_BOX @@ -141,7 +141,7 @@ BOX wx:LayoutLine:Box44 ISEXEC:FALSE -115.630816:-43.110903:-900.000000 -33.320000:-45.610903:-900.000000 +-82.310816:-45.610903:-900.000000 PORT Orientation:"V" PORT @@ -150,8 +150,8 @@ FIN_BOX BOX creaVtk:MeshManager_tool:Box45 ISEXEC:FALSE --88.421365:-133.817588:-900.000000 -10.440000:-136.317588:-900.000000 +-89.855052:-109.240092:-900.000000 +-67.355052:-111.740092:-900.000000 PORT Tool:"32" FIN_BOX @@ -159,49 +159,49 @@ BOX std:MagicBox:Box46 ISEXEC:FALSE -139.784698:124.004612:-900.000000 -8.680000:121.504612:-900.000000 +-118.184698:121.504612:-900.000000 FIN_BOX BOX std:MultipleInputs:Box51 ISEXEC:FALSE --92.949669:-148.627142:-900.000000 -21.000000:-151.127142:-900.000000 +-94.383356:-124.049646:-900.000000 +-72.413356:-126.549646:-900.000000 FIN_BOX BOX std:MagicBox:Box63 ISEXEC:FALSE -23.567293:123.061021:-900.000000 -8.680000:120.561021:-900.000000 +-1.967293:120.561021:-900.000000 FIN_BOX BOX std:MagicBox:Box64 ISEXEC:FALSE -243.113826:124.330340:-900.000000 -8.680000:121.830340:-900.000000 +-221.513826:121.830340:-900.000000 FIN_BOX BOX std:MagicBox:Box65 ISEXEC:FALSE -220.296210:124.504415:-900.000000 -8.680000:122.004415:-900.000000 +-198.696210:122.004415:-900.000000 FIN_BOX BOX std:MagicBox:Box69 ISEXEC:FALSE -197.793508:124.678490:-900.000000 -8.680000:122.178490:-900.000000 +-176.193508:122.178490:-900.000000 FIN_BOX BOX std:MagicBox:Box71 ISEXEC:FALSE -273.359367:124.504415:-900.000000 -8.680000:122.004415:-900.000000 +-251.759367:122.004415:-900.000000 FIN_BOX BOX creaMaracasVisu:MeshContours_Widget:Box72 ISEXEC:FALSE --116.492181:-83.459652:-900.000000 -13.960000:-85.959652:-900.000000 +-120.178805:-84.278902:-900.000000 +-97.383805:-86.778902:-900.000000 PORT colorMesh:"0 1 1" FIN_BOX @@ -209,7 +209,7 @@ BOX wx:LayoutLine:Box81 ISEXEC:FALSE -186.050677:-117.835921:-900.000000 -33.320000:-120.335921:-900.000000 +-152.730677:-120.335921:-900.000000 PORT WinTitle:"Step 1. Surface" FIN_BOX @@ -217,19 +217,19 @@ BOX wx:LayoutTab:Box82 ISEXEC:FALSE -124.770231:-53.363834:-900.000000 -33.320000:-55.863834:-900.000000 +-91.450231:-55.863834:-900.000000 FIN_BOX BOX creaMaracasVisu:wxVtkBaseView_Info:Box96 ISEXEC:FALSE -287.507139:74.319532:-900.000000 -27.280000:71.819532:-900.000000 +-260.227139:71.819532:-900.000000 FIN_BOX BOX creaVtk:MeshManager_tool:Box48 ISEXEC:FALSE --18.488355:-138.446377:-900.000000 -10.440000:-140.946377:-900.000000 +-58.221974:-108.543757:-900.000000 +-35.721974:-111.043757:-900.000000 PORT Tool:"30" FIN_BOX @@ -237,7 +237,7 @@ BOX creaVtk:MeshDeformation:Box39 ISEXEC:FALSE -393.073643:-51.132543:-900.000000 -17.480000:-53.632543:-900.000000 +-370.728643:-53.632543:-900.000000 PORT TypeIn:"1" FIN_BOX @@ -263,15 +263,15 @@ BOX wx:CheckBox:Box50 ISEXEC:FALSE -394.807418:132.862997:-900.000000 -21.000000:130.362997:-900.000000 +-373.177418:130.362997:-900.000000 PORT Title:"Active" FIN_BOX BOX creaVtk:PlaneWidget:Box58 ISEXEC:FALSE --295.778930:-17.364603:-900.000000 --273.933930:-19.864603:-900.000000 +-297.212617:-23.918602:-900.000000 +-275.367617:-26.418602:-900.000000 PORT ReactiveType:"1" PORT @@ -313,7 +313,7 @@ BOX creaVtk:PlaneWidget_Base:Box57 ISEXEC:FALSE -363.831600:-51.704534:-900.000000 -10.440000:-54.204534:-900.000000 +-341.421600:-54.204534:-900.000000 PORT Param:"-1" PORT @@ -323,7 +323,7 @@ BOX creaVtk:PlaneWidget_Base:Box60 ISEXEC:FALSE -335.517560:-51.686120:-900.000000 -10.440000:-54.186120:-900.000000 +-313.107560:-54.186120:-900.000000 PORT Param:"1" PORT @@ -332,26 +332,26 @@ FIN_BOX BOX std:MultipleInputs:Box61 ISEXEC:FALSE --391.119447:-40.831654:-900.000000 -21.000000:-43.331654:-900.000000 +-388.881212:-40.132206:-900.000000 +-366.911212:-42.632206:-900.000000 FIN_BOX BOX creaVtk:MeshManager:Box62 ISEXEC:FALSE -118.710595:82.225283:-900.000000 -9.680000:79.725283:-900.000000 +-96.680595:79.725283:-900.000000 FIN_BOX BOX std:MultipleInputs:Box73 ISEXEC:FALSE -354.803800:-75.117455:-900.000000 -21.000000:-77.617455:-900.000000 +-332.833800:-77.617455:-900.000000 FIN_BOX BOX creaVtk:PointPickerNearest:Box75 ISEXEC:FALSE -238.037741:46.670015:-900.000000 -12.200000:44.170015:-900.000000 +-215.587741:44.170015:-900.000000 PORT Active:"true" FIN_BOX @@ -359,7 +359,7 @@ BOX creaMaracasVisu:wxVtkBaseView_Info:Box76 ISEXEC:FALSE -259.552459:91.687133:-900.000000 -27.280000:89.187133:-900.000000 +-232.272459:89.187133:-900.000000 PORT InteractionType:"6" FIN_BOX @@ -375,31 +375,31 @@ BOX vtk:ImageVtkProperties:Box83 ISEXEC:FALSE -219.373063:72.307772:-900.000000 -16.720000:69.807772:-900.000000 +-196.838063:69.807772:-900.000000 FIN_BOX BOX std:SharedMemory:Box85 ISEXEC:FALSE --313.742294:42.129574:-900.000000 --290.982294:39.629574:-900.000000 +-315.585606:42.539199:-900.000000 +-292.825606:40.039199:-900.000000 FIN_BOX BOX std:SharedMemory:Box86 ISEXEC:FALSE -303.246870:36.722338:-900.000000 -22.760000:34.222338:-900.000000 +-280.486870:34.222338:-900.000000 FIN_BOX BOX std:SharedMemory:Box87 ISEXEC:FALSE -297.141632:30.701141:-900.000000 -22.760000:28.201141:-900.000000 +-274.381632:28.201141:-900.000000 FIN_BOX BOX std:MathOperationVector:Box88 ISEXEC:FALSE -247.017714:-58.438454:-900.000000 -24.520000:-60.938454:-900.000000 +-222.497714:-60.938454:-900.000000 PORT Type:"3" FIN_BOX @@ -407,13 +407,13 @@ BOX creaMaracasVisu:SetPosition:Box89 ISEXEC:FALSE -280.871840:-68.898121:-900.000000 -12.200000:-71.398121:-900.000000 +-259.211840:-71.398121:-900.000000 FIN_BOX BOX creaMaracasVisu:wxVtkBaseView_info_tool:Box90 ISEXEC:FALSE -253.040214:81.680557:-900.000000 -19.240000:79.180557:-900.000000 +-229.960214:79.180557:-900.000000 PORT Type:"1" FIN_BOX @@ -429,15 +429,15 @@ BOX creaVtk:PointPicker:Box92 ISEXEC:FALSE -284.610941:53.006854:-900.000000 -15.720000:50.506854:-900.000000 +-262.915941:50.506854:-900.000000 PORT TypeEvent:"2" FIN_BOX BOX std:ConcatStrings_tool:Box94 ISEXEC:FALSE --215.261074:-7.270627:-900.000000 -10.440000:-9.770627:-900.000000 +-216.694761:-7.885064:-900.000000 +-194.254761:-10.385064:-900.000000 PORT Type:"1" FIN_BOX @@ -450,8 +450,8 @@ FIN_BOX BOX std:ConcatStrings_tool:Box97 ISEXEC:FALSE --183.589771:-31.275624:-900.000000 -10.440000:-33.775624:-900.000000 +-191.577457:-29.432312:-900.000000 +-169.137457:-31.932312:-900.000000 PORT Type:"1" FIN_BOX @@ -465,7 +465,7 @@ BOX std:ConcatStrings_tool:Box99 ISEXEC:FALSE -213.431372:-20.340330:-900.000000 -10.440000:-22.840330:-900.000000 +-190.991372:-22.840330:-900.000000 PORT Type:"1" FIN_BOX @@ -480,8 +480,8 @@ FIN_BOX BOX std:ConcatStrings_tool:Box101 ISEXEC:FALSE --257.610994:18.866599:-900.000000 --235.060994:16.366599:-900.000000 +-256.586932:20.709911:-900.000000 +-234.036932:18.209911:-900.000000 PORT Type:"1" FIN_BOX @@ -494,8 +494,8 @@ FIN_BOX BOX std:ConcatStrings_tool:Box103 ISEXEC:FALSE --279.201420:10.986088:-900.000000 --256.651420:8.486088:-900.000000 +-276.948483:14.672712:-900.000000 +-254.398483:12.172712:-900.000000 PORT Type:"1" FIN_BOX @@ -503,7 +503,7 @@ BOX wx:RadioButton:Box104 ISEXEC:FALSE -401.448024:96.315673:-900.000000 -36.840000:93.815673:-900.000000 +-364.608024:93.815673:-900.000000 PORT In0:"Magenta" PORT @@ -515,7 +515,7 @@ BOX std:StringSelect:Box105 ISEXEC:FALSE -380.523773:80.828432:-900.000000 -24.520000:78.328432:-900.000000 +-356.003773:78.328432:-900.000000 PORT In0:"false" PORT @@ -561,7 +561,7 @@ BOX std:GetVectorDoubleElement:Box111 ISEXEC:FALSE -470.779229:42.331938:-900.000000 -10.440000:39.831938:-900.000000 +-447.544229:39.831938:-900.000000 PORT I:"0" FIN_BOX @@ -569,7 +569,7 @@ BOX std:GetVectorDoubleElement:Box112 ISEXEC:FALSE -499.976555:42.295735:-900.000000 -10.440000:39.795735:-900.000000 +-476.741555:39.795735:-900.000000 PORT I:"1" FIN_BOX @@ -577,7 +577,7 @@ BOX creaMaracasVisu:wxVtkBaseView_Info:Box113 ISEXEC:FALSE -320.718977:101.018811:-900.000000 -27.280000:98.518811:-900.000000 +-293.438977:98.518811:-900.000000 PORT InteractionType:"8" FIN_BOX @@ -585,7 +585,7 @@ BOX creaMaracasVisu:wxVtkBaseView_info_tool:Box114 ISEXEC:FALSE -319.417530:85.078645:-900.000000 -19.240000:82.578645:-900.000000 +-296.227530:82.578645:-900.000000 PORT Type:"1" FIN_BOX @@ -601,7 +601,7 @@ BOX std:ConcatStrings_tool:Box116 ISEXEC:FALSE -202.680134:-3.848758:-900.000000 -10.440000:-6.348758:-900.000000 +-180.130134:-6.348758:-900.000000 PORT Type:"1" FIN_BOX @@ -609,7 +609,7 @@ BOX std:ConcatStrings:Box117 ISEXEC:FALSE -479.325602:127.929555:-900.000000 -22.760000:125.429555:-900.000000 +-456.565602:125.429555:-900.000000 PORT In1:"true" FIN_BOX @@ -617,13 +617,13 @@ BOX std:Mul:Box118 ISEXEC:FALSE -474.686679:98.376440:-900.000000 -8.680000:95.876440:-900.000000 +-453.601679:95.876440:-900.000000 FIN_BOX BOX std:ReplaceCleanString:Box119 ISEXEC:FALSE -469.644099:116.669178:-900.000000 -10.440000:114.169178:-900.000000 +-446.979099:114.169178:-900.000000 PORT Replace:"1" PORT diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs index 0fe362a..f60fd17 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs # ---------------------------------- include std diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg b/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg index 0935238..97c235b 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg +++ b/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBG BlackBox Diagram file -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg # ---------------------------------- APP_START @@ -77,7 +77,7 @@ BOX creaMaracasVisu:ShowNPoints:showNpoints ISEXEC:FALSE 24.787568:83.025910:-900.000000 -61.627568:80.525910:-900.000000 +46.637568:80.525910:-900.000000 PORT Radio:"2" PORT @@ -107,7 +107,7 @@ BOX wx:LayoutLine:Box08 ISEXEC:FALSE -182.125107:-147.642582:-900.000000 --148.805107:-150.142582:-900.000000 +-67.477639:-150.142582:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box11 @@ -121,7 +121,7 @@ BOX creaMaracasVisu:DrawAxisTree3D:Box30 ISEXEC:FALSE 66.011927:-0.645212:-900.000000 -94.051927:-3.145212:-900.000000 +88.191927:-3.145212:-900.000000 PORT Colour:"0 0 1" PORT @@ -147,7 +147,7 @@ BOX creaMaracasVisu:wxPopupMenu:Box57 ISEXEC:FALSE -291.724262:77.620511:-900.000000 --269.659262:75.120511:-900.000000 +-91.924723:75.120511:-900.000000 PORT WithCtrlKey:"true" FIN_BOX @@ -155,7 +155,7 @@ BOX std:AddStringToVector:Box58 ISEXEC:FALSE -304.297403:100.641432:-900.000000 --279.777403:98.141432:-900.000000 +-85.911256:98.141432:-900.000000 PORT In0:"+ Add point" PORT @@ -181,19 +181,19 @@ BOX creaMaracasVisu:ShowNPoints_Tools:Box60 ISEXEC:FALSE -271.434991:53.686536:-900.000000 --248.999991:51.186536:-900.000000 +-95.625442:51.186536:-900.000000 FIN_BOX BOX vtk:ImageVtkProperties:Box68 ISEXEC:FALSE -111.766259:110.196821:-900.000000 --89.231259:107.696821:-900.000000 +-78.471190:107.696821:-900.000000 FIN_BOX BOX std:VectorFilterDouble:Box70 ISEXEC:FALSE 49.750242:60.953814:-900.000000 -76.030242:58.453814:-900.000000 +72.180242:58.453814:-900.000000 PORT Type:"11" FIN_BOX @@ -211,7 +211,7 @@ BOX wx:ComboBox:Box78 ISEXEC:FALSE -153.877713:-5.775167:-900.000000 --127.597713:-8.275167:-900.000000 +-72.227681:-8.275167:-900.000000 PORT In:"Union Intersection Difference" FIN_BOX @@ -219,7 +219,7 @@ BOX wx:LayoutLine:Box79 ISEXEC:FALSE -144.841026:-82.628158:-900.000000 --111.521026:-85.128158:-900.000000 +-64.477004:-85.128158:-900.000000 PORT Orientation:"H" PORT @@ -229,7 +229,7 @@ BOX wx:CommandButton:Box80 ISEXEC:FALSE -107.184095:21.801731:-900.000000 --84.909095:19.301731:-900.000000 +-73.875334:19.301731:-900.000000 PORT Label:"Refresh" FIN_BOX @@ -237,7 +237,7 @@ BOX std:MagicBox:Box66 ISEXEC:FALSE -148.055989:80.219744:-900.000000 --126.455989:77.719744:-900.000000 +-89.432861:77.719744:-900.000000 FIN_BOX BOX std:MagicBox:Box67 @@ -261,7 +261,7 @@ BOX wx:Slider:Box34 ISEXEC:FALSE -198.941120:-3.426364:-900.000000 --169.141120:-5.926364:-900.000000 +-72.261064:-5.926364:-900.000000 PORT In:"50" PORT @@ -279,7 +279,7 @@ BOX std:Div:Box36 ISEXEC:FALSE -190.788172:-9.261990:-900.000000 --169.863172:-11.761990:-900.000000 +-92.749352:-11.761990:-900.000000 PORT In2:"100" FIN_BOX @@ -297,7 +297,7 @@ BOX wx:LayoutLine:Box38 ISEXEC:FALSE -190.854929:-82.522396:-900.000000 --157.534929:-85.022396:-900.000000 +-68.109352:-85.022396:-900.000000 PORT Orientation:"H" PORT @@ -307,13 +307,13 @@ BOX wx:LayoutTab:Box39 ISEXEC:FALSE -195.888488:-89.508403:-900.000000 --162.568488:-92.008403:-900.000000 +-68.504172:-92.008403:-900.000000 FIN_BOX BOX wx:LayoutTab:Box40 ISEXEC:FALSE -148.825313:-89.038628:-900.000000 --115.505313:-91.538628:-900.000000 +-64.792861:-91.538628:-900.000000 FIN_BOX BOX wx:CommandButton:Box42 @@ -335,7 +335,7 @@ BOX wx:LayoutLine:Box44 ISEXEC:FALSE -154.036190:-43.432527:-900.000000 --120.716190:-45.932527:-900.000000 +-65.266645:-45.932527:-900.000000 PORT Orientation:"V" PORT @@ -353,13 +353,13 @@ BOX std:MagicBox:Box46 ISEXEC:FALSE -137.131256:113.921532:-900.000000 --115.531256:111.421532:-900.000000 +-88.564256:111.421532:-900.000000 FIN_BOX BOX wx:ComboBox:Box49 ISEXEC:FALSE -182.639251:-13.479145:-900.000000 --156.359251:-15.979145:-900.000000 +-74.517639:-15.979145:-900.000000 PORT In:"25 50 100 150" PORT @@ -371,7 +371,7 @@ BOX wx:LayoutLine:Box50 ISEXEC:FALSE -57.295971:-56.374591:-900.000000 --23.975971:-58.874591:-900.000000 +-35.635971:-58.874591:-900.000000 PORT Orientation:"V" PORT @@ -395,7 +395,7 @@ BOX std:MultipleInputs:Box53 ISEXEC:FALSE -96.292390:-13.293248:-900.000000 --74.322390:-15.793248:-900.000000 +-73.006729:-15.793248:-900.000000 FIN_BOX BOX std:MultipleInputs:Box55 @@ -407,7 +407,7 @@ BOX creaMaracasVisu:MeshContours_Widget:Box62 ISEXEC:FALSE -228.707140:-3.136982:-900.000000 --205.912140:-5.636982:-900.000000 +-90.469987:-5.636982:-900.000000 PORT colorMesh:"1 1 0" FIN_BOX @@ -421,31 +421,31 @@ BOX std:MagicBox:Box64 ISEXEC:FALSE -243.113826:124.330340:-900.000000 --221.513826:121.830340:-900.000000 +-96.934448:121.830340:-900.000000 FIN_BOX BOX std:MagicBox:Box65 ISEXEC:FALSE -220.296210:124.504415:-900.000000 --198.696210:122.004415:-900.000000 +-95.118274:122.004415:-900.000000 FIN_BOX BOX std:MagicBox:Box69 ISEXEC:FALSE -197.793508:124.678490:-900.000000 --176.193508:122.178490:-900.000000 +-93.302100:122.178490:-900.000000 FIN_BOX BOX std:MagicBox:Box71 ISEXEC:FALSE -273.359367:124.504415:-900.000000 --251.759367:122.004415:-900.000000 +-99.303370:122.004415:-900.000000 FIN_BOX BOX creaMaracasVisu:MeshContours_Widget:Box72 ISEXEC:FALSE -180.819147:-56.018495:-900.000000 --158.024147:-58.518495:-900.000000 +-86.679711:-58.518495:-900.000000 PORT colorMesh:"0 1 1" FIN_BOX @@ -453,7 +453,7 @@ BOX wx:LayoutLine:Box81 ISEXEC:FALSE -184.734921:-96.564525:-900.000000 --151.414921:-99.064525:-900.000000 +-67.635567:-99.064525:-900.000000 PORT WinTitle:"Step 1. Surface" FIN_BOX @@ -461,19 +461,19 @@ BOX wx:LayoutTab:Box82 ISEXEC:FALSE -142.286608:-51.350487:-900.000000 --108.966608:-53.850487:-900.000000 +-64.319076:-53.850487:-900.000000 FIN_BOX BOX wx:OutputText:Box84 ISEXEC:FALSE -127.611417:-38.148449:-900.000000 --105.941417:-40.648449:-900.000000 +-77.214615:-40.648449:-900.000000 FIN_BOX BOX wx:LayoutTab:Box86 ISEXEC:FALSE -57.013911:-62.286670:-900.000000 --23.693911:-64.786670:-900.000000 +-35.398911:-64.786670:-900.000000 FIN_BOX BOX wx:OutputText:Box88 @@ -505,7 +505,7 @@ BOX creaMaracasVisu:wxVtkBaseView_Info:Box96 ISEXEC:FALSE -157.021318:90.558496:-900.000000 --129.741318:88.058496:-900.000000 +-71.543537:88.058496:-900.000000 FIN_BOX BOX creaVtk:PolyDataNormals:Box97 @@ -517,7 +517,7 @@ BOX wx:LayoutLine:Box98 ISEXEC:FALSE -143.911108:-17.437953:-900.000000 --110.591108:-19.937953:-900.000000 +-64.398040:-19.937953:-900.000000 PORT Orientation:"H" FIN_BOX @@ -525,7 +525,7 @@ BOX std:AddStringToVector:Box99 ISEXEC:FALSE -309.024176:108.151656:-900.000000 --284.504176:105.651656:-900.000000 +-86.306076:105.651656:-900.000000 PORT In0:"Auto Add Points (Start/Stop)" FIN_BOX @@ -533,7 +533,7 @@ BOX std:VectorFilterString:Box100 ISEXEC:FALSE -265.790737:67.872984:-900.000000 --237.750737:65.372984:-900.000000 +-79.311657:65.372984:-900.000000 PORT In0:"0 1 2 3 4 5 6 7 8 9 10 " PORT @@ -545,13 +545,13 @@ BOX std:ConcatStrings:Box101 ISEXEC:FALSE -265.899318:61.380437:-900.000000 --243.139318:58.880437:-900.000000 +-84.591657:58.880437:-900.000000 FIN_BOX BOX wx:CheckBox:Box102 ISEXEC:FALSE --40.533540:29.017711:-900.000000 --18.793540:26.517711:-900.000000 +-52.607147:51.862017:-900.000000 +-30.867147:49.362017:-900.000000 PORT In:"true" PORT @@ -601,7 +601,7 @@ ReactiveOnKeystroke:"true" PORT Title:"CloseSurface" FIN_BOX -CONNECTIONS:138 +CONNECTIONS:137 CONNECTION Box06:LstContourPointsX:Box04:LstX NumberOfControlPoints:0 @@ -978,9 +978,6 @@ CONNECTION Box102:Widget:Box50:Widget5 NumberOfControlPoints:0 CONNECTION -Box102:Out:Box04:OpenClose -NumberOfControlPoints:0 -CONNECTION Box102:Out:Box06:OpenClose NumberOfControlPoints:0 CONNECTION diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs b/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs index 72cff1e..056b417 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs +++ b/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs # ---------------------------------- include std @@ -329,7 +329,6 @@ connect Box100.Out1 Box101.In1 connect Box101.Out Box60.Type connect Box57.Out Box100.sk1 connect Box102.Widget Box50.Widget5 -connect Box102.Out Box04.OpenClose connect Box102.Out Box06.OpenClose connect Box102.Out Box29.OpenClose connect Box103.Out Box104.Active diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg b/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg index 51b15f4..6bf45b6 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBG BlackBox Diagram file -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbg # ---------------------------------- APP_START @@ -77,7 +77,7 @@ BOX creaMaracasVisu:ShowNPoints:showNpoints ISEXEC:FALSE 5.070857:104.891899:-900.000000 -36.840000:102.391899:-900.000000 +41.910857:102.391899:-900.000000 PORT Radio:"2" PORT @@ -89,7 +89,7 @@ BOX wx:LayoutLine:Box08 ISEXEC:FALSE -177.739418:-170.301977:-900.000000 -33.320000:-172.801977:-900.000000 +-144.419418:-172.801977:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box11 @@ -109,7 +109,7 @@ BOX creaMaracasVisu:wxPopupMenu:Box57 ISEXEC:FALSE -291.724262:77.620511:-900.000000 -17.480000:75.120511:-900.000000 +-269.659262:75.120511:-900.000000 PORT WithCtrlKey:"true" FIN_BOX @@ -117,7 +117,7 @@ BOX std:AddStringToVector:Box58 ISEXEC:FALSE -304.297403:100.641432:-900.000000 -24.520000:98.141432:-900.000000 +-279.777403:98.141432:-900.000000 PORT In0:"+ Add point" PORT @@ -143,19 +143,19 @@ BOX creaMaracasVisu:ShowNPoints_Tools:Box60 ISEXEC:FALSE -271.434991:53.686536:-900.000000 -12.200000:51.186536:-900.000000 +-248.999991:51.186536:-900.000000 FIN_BOX 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 creaVtk:BooleanOperationPolyDataFilter:Box77 ISEXEC:FALSE -75.291259:-24.273250:-900.000000 -12.200000:-26.773250:-900.000000 +-51.561259:-26.773250:-900.000000 PORT BoxProcessMode:"Manual" PORT @@ -165,7 +165,7 @@ BOX wx:ComboBox:Box78 ISEXEC:FALSE -153.877713:-5.775167:-900.000000 -26.280000:-8.275167:-900.000000 +-127.597713:-8.275167:-900.000000 PORT In:"Union Intersection Difference" FIN_BOX @@ -173,7 +173,7 @@ BOX wx:LayoutLine:Box79 ISEXEC:FALSE -132.780380:-132.698111:-900.000000 -33.320000:-135.198111:-900.000000 +-99.460380:-135.198111:-900.000000 PORT Orientation:"H" PORT @@ -183,7 +183,7 @@ BOX wx:CommandButton:Box80 ISEXEC:FALSE -99.569055:58.854673:-900.000000 -21.000000:56.354673:-900.000000 +-77.294055:56.354673:-900.000000 PORT Label:"Refresh" FIN_BOX @@ -191,13 +191,13 @@ BOX std:MagicBox:Box66 ISEXEC:FALSE -157.358966:97.496702:-900.000000 -8.680000:94.996702:-900.000000 +-135.758966:94.996702:-900.000000 FIN_BOX BOX std:MagicBox:Box67 ISEXEC:FALSE -67.526006:124.007723:-900.000000 -8.680000:121.507723:-900.000000 +-45.926006:121.507723:-900.000000 FIN_BOX BOX creaMaracasVisu:PolyDataToActor_Widget:Box48 @@ -211,13 +211,13 @@ BOX vtk:vtkImageDataPointerRelay:Box35 ISEXEC:FALSE -107.091396:123.633118:-900.000000 -6.920000:121.133118:-900.000000 +-83.881396:121.133118:-900.000000 FIN_BOX BOX creaMaracasVisu:PolyDataToActor_Widget:Box37 ISEXEC:FALSE -67.388857:-39.476785:-900.000000 -13.960000:-41.976785:-900.000000 +-44.368857:-41.976785:-900.000000 PORT color:"0 1 1" PORT @@ -227,7 +227,7 @@ BOX wx:LayoutLine:Box38 ISEXEC:FALSE -178.794283:-132.592349:-900.000000 -33.320000:-135.092349:-900.000000 +-145.474283:-135.092349:-900.000000 PORT Orientation:"H" PORT @@ -237,19 +237,19 @@ BOX wx:LayoutTab:Box39 ISEXEC:FALSE -183.827842:-139.578356:-900.000000 -33.320000:-142.078356:-900.000000 +-150.507842:-142.078356:-900.000000 FIN_BOX BOX wx:LayoutTab:Box40 ISEXEC:FALSE -136.764667:-139.108581:-900.000000 -33.320000:-141.608581:-900.000000 +-103.444667:-141.608581:-900.000000 FIN_BOX BOX wx:CommandButton:Box42 ISEXEC:FALSE -90.674903:52.782696:-900.000000 -21.000000:50.282696:-900.000000 +-68.399903:50.282696:-900.000000 PORT Label:"Apply (Magenta->To Red)" FIN_BOX @@ -257,7 +257,7 @@ BOX wx:CommandButton:Box43 ISEXEC:FALSE -106.419163:69.428140:-900.000000 -21.000000:66.928140:-900.000000 +-84.144163:66.928140:-900.000000 PORT Label:"Reset Tool" FIN_BOX @@ -265,7 +265,7 @@ BOX wx:LayoutLine:Box44 ISEXEC:FALSE -154.036190:-43.432527:-900.000000 -33.320000:-45.932527:-900.000000 +-120.716190:-45.932527:-900.000000 PORT Orientation:"V" PORT @@ -275,7 +275,7 @@ BOX creaVtk:MeshManager_tool:Box45 ISEXEC:FALSE -86.462754:-156.067395:-900.000000 -10.440000:-158.567395:-900.000000 +-63.962754:-158.567395:-900.000000 PORT Tool:"30" FIN_BOX @@ -283,19 +283,19 @@ BOX std:MagicBox:Box46 ISEXEC:FALSE -137.131256:113.921532:-900.000000 -8.680000:111.421532:-900.000000 +-115.531256:111.421532:-900.000000 FIN_BOX BOX std:MultipleInputs:Box51 ISEXEC:FALSE -88.563980:-171.286537:-900.000000 -21.000000:-173.786537:-900.000000 +-66.593980:-173.786537:-900.000000 FIN_BOX BOX creaMaracasVisu:ShowNPoints_Tools:Box52 ISEXEC:FALSE -43.935313:-156.308297:-900.000000 -12.200000:-158.808297:-900.000000 +-21.500313:-158.808297:-900.000000 PORT Type:"120" FIN_BOX @@ -303,19 +303,19 @@ BOX std:MultipleInputs:Box53 ISEXEC:FALSE -81.907379:-1.781615:-900.000000 -21.000000:-4.281615:-900.000000 +-59.937379:-4.281615:-900.000000 FIN_BOX BOX std:MultipleInputs:Box55 ISEXEC:FALSE -53.140304:-173.517708:-900.000000 -21.000000:-176.017708:-900.000000 +-31.170304:-176.017708:-900.000000 FIN_BOX BOX creaMaracasVisu:MeshContours_Widget:Box62 ISEXEC:FALSE -231.981368:-18.117247:-900.000000 -13.960000:-20.617247:-900.000000 +-209.186368:-20.617247:-900.000000 PORT colorMesh:"1 1 0" FIN_BOX @@ -323,37 +323,37 @@ BOX std:MagicBox:Box63 ISEXEC:FALSE -23.878975:123.201464:-900.000000 -8.680000:120.701464:-900.000000 +-2.278975:120.701464:-900.000000 FIN_BOX BOX std:MagicBox:Box64 ISEXEC:FALSE -243.113826:124.330340:-900.000000 -8.680000:121.830340:-900.000000 +-221.513826:121.830340:-900.000000 FIN_BOX BOX std:MagicBox:Box65 ISEXEC:FALSE -220.296210:124.504415:-900.000000 -8.680000:122.004415:-900.000000 +-198.696210:122.004415:-900.000000 FIN_BOX BOX std:MagicBox:Box69 ISEXEC:FALSE -197.793508:124.678490:-900.000000 -8.680000:122.178490:-900.000000 +-176.193508:122.178490:-900.000000 FIN_BOX BOX std:MagicBox:Box71 ISEXEC:FALSE -273.359367:124.504415:-900.000000 -8.680000:122.004415:-900.000000 +-251.759367:122.004415:-900.000000 FIN_BOX BOX creaMaracasVisu:MeshContours_Widget:Box72 ISEXEC:FALSE -168.253628:-93.491307:-900.000000 -13.960000:-95.991307:-900.000000 +-145.458628:-95.991307:-900.000000 PORT colorMesh:"0 1 1" FIN_BOX @@ -361,7 +361,7 @@ BOX wx:LayoutLine:Box81 ISEXEC:FALSE -172.674275:-146.634478:-900.000000 -33.320000:-149.134478:-900.000000 +-139.354275:-149.134478:-900.000000 PORT WinTitle:"Step 1. Surface" FIN_BOX @@ -375,25 +375,25 @@ BOX wx:OutputText:Box84 ISEXEC:FALSE -127.611417:-38.148449:-900.000000 -19.240000:-40.648449:-900.000000 +-105.941417:-40.648449:-900.000000 FIN_BOX BOX wx:LayoutTab:Box86 ISEXEC:FALSE 85.280357:-100.695922:-900.000000 -106.895357:-103.195922:-900.000000 +118.600357:-103.195922:-900.000000 FIN_BOX BOX creaVtk:MeshManager:Box92 ISEXEC:FALSE -38.201426:-32.514189:-900.000000 -9.680000:-35.014189:-900.000000 +-16.171426:-35.014189:-900.000000 FIN_BOX BOX creaVtk:MeshManager_tool:Box93 ISEXEC:FALSE -57.573698:-124.706713:-900.000000 -10.440000:-127.206713:-900.000000 +-35.073698:-127.206713:-900.000000 PORT Tool:"35" FIN_BOX @@ -401,25 +401,25 @@ BOX std:MagicBox:Box94 ISEXEC:FALSE -68.796849:-31.671400:-900.000000 -8.680000:-34.171400:-900.000000 +-47.196849:-34.171400:-900.000000 FIN_BOX BOX creaMaracasVisu:wxVtkBaseView_Info:Box96 ISEXEC:FALSE -167.653292:103.516214:-900.000000 -27.280000:101.016214:-900.000000 +-140.373292:101.016214:-900.000000 FIN_BOX BOX creaVtk:PolyDataNormals:Box97 ISEXEC:FALSE -84.372119:-83.662351:-900.000000 -12.200000:-86.162351:-900.000000 +-62.077119:-86.162351:-900.000000 FIN_BOX BOX wx:LayoutLine:Box98 ISEXEC:FALSE -143.911108:-17.437953:-900.000000 -33.320000:-19.937953:-900.000000 +-110.591108:-19.937953:-900.000000 PORT Orientation:"H" FIN_BOX @@ -427,7 +427,7 @@ BOX std:AddStringToVector:Box99 ISEXEC:FALSE -309.024176:108.151656:-900.000000 -24.520000:105.651656:-900.000000 +-284.504176:105.651656:-900.000000 PORT In0:"Auto Add Points (Start/Stop)" FIN_BOX @@ -435,7 +435,7 @@ BOX std:VectorFilterString:Box100 ISEXEC:FALSE -265.790737:67.872984:-900.000000 -28.040000:65.372984:-900.000000 +-237.750737:65.372984:-900.000000 PORT In0:"0 1 2 3 4 5 6 7 8 9 10 " PORT @@ -447,13 +447,13 @@ BOX std:ConcatStrings:Box101 ISEXEC:FALSE -265.899318:61.380437:-900.000000 -22.760000:58.880437:-900.000000 +-243.139318:58.880437:-900.000000 FIN_BOX BOX creaVtk:ImageThresholdConnectivity:Box102 ISEXEC:FALSE 42.293746:33.734820:-900.000000 -65.703746:31.234820:-900.000000 +65.813746:31.234820:-900.000000 PORT Border:"50" FIN_BOX @@ -461,7 +461,7 @@ BOX wx:LayoutLine:Box105 ISEXEC:FALSE 100.486715:-57.780355:-900.000000 -122.146715:-60.280355:-900.000000 +133.806715:-60.280355:-900.000000 PORT WinTitle:"1.2 Surface" FIN_BOX @@ -469,7 +469,7 @@ BOX creaMaracasVisu:SliderMinMax:Box106 ISEXEC:FALSE 48.946500:105.304887:-900.000000 -70.871500:102.804887:-900.000000 +80.506500:102.804887:-900.000000 PORT InMax:"2000" PORT @@ -485,7 +485,7 @@ BOX wx:Slider:Box107 ISEXEC:FALSE 86.207644:105.029086:-900.000000 -107.362644:102.529086:-900.000000 +116.007644:102.529086:-900.000000 PORT In:"15" PORT @@ -503,7 +503,7 @@ BOX wx:CommandButton:Box108 ISEXEC:FALSE 121.703826:106.297285:-900.000000 -143.978826:103.797285:-900.000000 +144.088826:103.797285:-900.000000 PORT Label:"Refresh" FIN_BOX @@ -511,7 +511,7 @@ BOX std:ConcatStrings:Box110 ISEXEC:FALSE 49.485227:98.922908:-900.000000 -71.565227:96.422908:-900.000000 +72.245227:96.422908:-900.000000 PORT In2:" " FIN_BOX @@ -519,7 +519,7 @@ BOX std:MultipleInputs:Box111 ISEXEC:FALSE -35.999448:19.228424:-900.000000 -21.000000:16.728424:-900.000000 +-13.919448:16.728424:-900.000000 FIN_BOX BOX std:MultipleInputs:Box112 @@ -565,13 +565,13 @@ BOX std:MagicBox:Box120 ISEXEC:FALSE -104.557988:63.517112:-900.000000 -8.680000:61.017112:-900.000000 +-82.847988:61.017112:-900.000000 FIN_BOX BOX creaMaracasVisu:ColorLayerImageView:Box122 ISEXEC:FALSE 29.206703:-47.220552:-900.000000 -52.116703:-49.720552:-900.000000 +69.566703:-49.720552:-900.000000 PORT ColorBarPosition:"-1000 -1000" PORT diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs b/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs index 60785c5..8f2cf48 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyThresholdConnectivity.bbs # ---------------------------------- include std diff --git a/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg b/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg index 7390eca..543007b 100644 --- a/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg +++ b/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBG BlackBox Diagram file -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/PolyDataToActor_Widget.bbg # ---------------------------------- APP_START diff --git a/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs b/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs index d1cc122..3829044 100644 --- a/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs +++ b/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) -# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs +# - /home/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/PolyDataToActor_Widget.bbs # ---------------------------------- include std diff --git a/bbtk/src/bbmaracasvisuSliderMinMax.cxx b/bbtk/src/bbmaracasvisuSliderMinMax.cxx index 0ecd8bf..e9cc90a 100644 --- a/bbtk/src/bbmaracasvisuSliderMinMax.cxx +++ b/bbtk/src/bbmaracasvisuSliderMinMax.cxx @@ -107,7 +107,8 @@ BBTK_BLACK_BOX_IMPLEMENTATION(SliderMinMax,bbtk::WxBlackBox); //------------------------------------------------------ void SliderMinMax::Process() { - if (mwxwidget!=NULL){ + if (mwxwidget!=NULL) + { mwxwidget -> setRepresentedValues( bbGetInputInMin(), bbGetInputInMax() ); if (firsttime==true) { @@ -124,7 +125,6 @@ void SliderMinMax::Process() //------------------------------------------------------ void SliderMinMax::CreateWidget(wxWindow* parent) { - bbtkDebugMessageInc("Core",9,"SliderMinMax::CreateWidget()"< setIfWithActualDrawed(bbGetInputShowActual()); // mwxwidget -> SetStart(bbGetInputInMinShow()); // mwxwidget -> SetEnd(bbGetInputInMaxShow()); - - wxWidgetSliderMinMax *eventHandler = new wxWidgetSliderMinMax(this, mwxwidget); eventHandler->PushEventHandler(); - - + mwxwidget->setRepresentedValues( bbGetInputInMin(), bbGetInputInMax() ); + mwxwidget->SetStart(bbGetInputInMinShow()); + mwxwidget->SetEnd(bbGetInputInMaxShow()); + bbSetOutputOutStart( mwxwidget->GetStart() ); + bbSetOutputOutEnd( mwxwidget->GetEnd() ); + bbSetOutputOutActual( mwxwidget->GetActual() ); bbtkDebugDecTab("Core",9); - bbSetOutputWidget( mwxwidget ); - - } //------------------------------------------------------ @@ -164,26 +163,23 @@ void SliderMinMax::bbUserSetDefaultValues() bbSetInputInMinShow(1); bbSetInputShowLabels(1); bbSetInputShowActual(true); - bbSetOutputOutStart(0); bbSetOutputOutEnd(0); bbSetOutputOutActual(0); } - //----------------------------------------------------------------- - void SliderMinMax::bbUserInitializeProcessing() - { - } - - //----------------------------------------------------------------- - void SliderMinMax::bbUserFinalizeProcessing() - { - } +//----------------------------------------------------------------- +void SliderMinMax::bbUserInitializeProcessing() +{ +} - //----------------------------------------------------------------- - +//----------------------------------------------------------------- +void SliderMinMax::bbUserFinalizeProcessing() +{ } -// EO namespace bbcreaMaracasVisu + +//----------------------------------------------------------------- +} // EO namespace bbcreaMaracasVisu -- 2.47.1