From: eduardo.davila@creatis.insa-lyon.fr Date: Tue, 23 Jan 2024 17:31:06 +0000 (+0100) Subject: #3390 ContourReferece Grid and Step X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5de11be0bfc76094782cbd5ddf61c80c78b41df3;p=creaContours.git #3390 ContourReferece Grid and Step --- diff --git a/bbtk/bbs/boxes/ContourReferenceGrid.bbg b/bbtk/bbs/boxes/ContourReferenceGrid.bbg index 793a578..2b40d49 100644 --- a/bbtk/bbs/boxes/ContourReferenceGrid.bbg +++ b/bbtk/bbs/boxes/ContourReferenceGrid.bbg @@ -18,44 +18,44 @@ FIN_COMPLEX_PORT COMPLEXINPUTS:7 COMPLEX_PORT boxExecute -14.414652:33.521370:-900.000000 +11.820454:98.700585:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT NameFileContour -120.038404:34.988588:-900.000000 +117.444206:100.167803:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT Image --2.123624:33.826366:-900.000000 +-4.717822:99.005581:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT RenderXY --75.554275:32.945507:-900.000000 +-78.148473:98.124722:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT RenderYZ --40.198400:33.302518:-900.000000 +-42.792598:98.481733:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT opacity --120.813450:31.901122:-900.000000 +-123.407648:97.080337:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT iaxis -224.927082:32.673873:-900.000000 +222.332884:97.853088:-900.000000 FIN_COMPLEX_PORT BOXES:42 BOX std:VectorFilterDouble:Box05 ISEXEC:FALSE 162.824305:3.857849:-900.000000 -185.254305:1.357849:-900.000000 +189.104305:1.357849:-900.000000 FIN_BOX BOX creaMaracasVisu:ReadCreaContourFile:Box26 ISEXEC:FALSE -108.598922:16.572952:-900.000000 -131.313922:14.072952:-900.000000 +88.818165:61.322861:-900.000000 +111.533165:58.822861:-900.000000 PORT FromDirection:"0" FIN_BOX @@ -63,25 +63,25 @@ BOX std:MixingVectors:Box31 ISEXEC:FALSE 158.593201:-40.673851:-900.000000 -180.603201:-43.173851:-900.000000 +181.353201:-43.173851:-900.000000 FIN_BOX BOX vtk:vtkImageDataPointerRelay:Box32 ISEXEC:FALSE -18.705355:8.266287:-900.000000 -6.920000:5.766287:-900.000000 +4.504645:5.766287:-900.000000 FIN_BOX BOX vtk:ImageVtkProperties:Box33 ISEXEC:FALSE --30.211798:-16.300700:-900.000000 -16.720000:-18.800700:-900.000000 +-23.365929:-7.642690:-900.000000 +-0.830929:-10.142690:-900.000000 FIN_BOX BOX std:GetVectorDoubleElement:Box37 ISEXEC:FALSE -20.873933:-31.890526:-900.000000 -10.440000:-34.390526:-900.000000 +2.251067:-34.390526:-900.000000 PORT I:"2" FIN_BOX @@ -105,7 +105,7 @@ BOX std:MixingVectors:Box45 ISEXEC:FALSE 44.705113:-77.816441:-900.000000 -66.715113:-80.316441:-900.000000 +67.465113:-80.316441:-900.000000 FIN_BOX BOX std:CreateArithmeticSuiteVector:Box46 @@ -121,7 +121,7 @@ BOX std:ConcatStrings:Box47 ISEXEC:FALSE -22.082122:-22.787523:-900.000000 -22.760000:-25.287523:-900.000000 +0.677878:-25.287523:-900.000000 FIN_BOX BOX vtk:Transform:Box49 @@ -145,7 +145,7 @@ BOX std:MixingVectors:Box51 ISEXEC:FALSE 288.382693:-101.643452:-900.000000 -310.392693:-104.143452:-900.000000 +311.142693:-104.143452:-900.000000 FIN_BOX BOX std:CreateArithmeticSuiteVector:Box59 @@ -169,31 +169,31 @@ BOX std:ConcatStrings:Box58 ISEXEC:FALSE -133.602557:7.116336:-900.000000 -22.760000:4.616336:-900.000000 +-110.842557:4.616336:-900.000000 FIN_BOX BOX std:MagicBox:Box61 ISEXEC:FALSE -11.590346:24.902758:-900.000000 -33.190346:22.402758:-900.000000 +8.996148:90.081973:-900.000000 +30.596148:87.581973:-900.000000 FIN_BOX BOX std:ConcatStrings:Box63 ISEXEC:FALSE -115.165789:21.916678:-900.000000 -137.135789:19.416678:-900.000000 +112.571591:87.095893:-900.000000 +135.331591:84.595893:-900.000000 FIN_BOX BOX std:MagicBox:Box64 ISEXEC:FALSE -95.447926:6.545017:-900.000000 -8.680000:4.045017:-900.000000 +-73.847926:4.045017:-900.000000 FIN_BOX BOX std:MagicBox:Box65 ISEXEC:FALSE -51.683403:7.784355:-900.000000 -8.680000:5.284355:-900.000000 +-30.083403:5.284355:-900.000000 FIN_BOX BOX creaVtk:Actor:Box30 @@ -229,7 +229,7 @@ BOX std:VectorFilterDouble:Box40 ISEXEC:FALSE 160.702584:-2.838499:-900.000000 -183.132584:-5.338499:-900.000000 +186.982584:-5.338499:-900.000000 PORT Type:"8" FIN_BOX @@ -237,7 +237,7 @@ BOX std:ConcatStrings:Box44 ISEXEC:FALSE 218.088465:3.322278:-900.000000 -240.058465:0.822278:-900.000000 +240.848465:0.822278:-900.000000 FIN_BOX BOX std:MultipleInputs:Box48 @@ -261,7 +261,7 @@ BOX std:MathOperationVector:Box66 ISEXEC:FALSE 110.762501:3.086121:-900.000000 -133.517501:0.586121:-900.000000 +135.282501:0.586121:-900.000000 PORT Type:"-17" FIN_BOX @@ -297,7 +297,7 @@ BOX std:MathOperationVector:Box73 ISEXEC:FALSE 71.078020:3.323195:-900.000000 -93.833020:0.823195:-900.000000 +95.598020:0.823195:-900.000000 PORT Type:"-16" FIN_BOX diff --git a/bbtk/bbs/boxes/ContourReferenceStep.bbg b/bbtk/bbs/boxes/ContourReferenceStep.bbg new file mode 100644 index 0000000..ea4763e --- /dev/null +++ b/bbtk/bbs/boxes/ContourReferenceStep.bbg @@ -0,0 +1,1010 @@ +# ---------------------------------- +# - BBTKGEditor v 1.5 BBG BlackBox Diagram file +# - /Users/davila/Creatis/C23/creatools_source/creaContours/bbtk/bbs/boxes/ContourReferenceStep.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ContourReferenceStep +PACKAGENAME:creaContours +COMPLEXOUTPUTS:3 +COMPLEX_PORT +_widget +-63.491296:-134.823351:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_initExec +-0.123743:-139.211179:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_iaxis +44.663851:-138.928196:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:10 +COMPLEX_PORT +_point +-95.177952:132.490235:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_wxvtkbaseview2 +-23.007148:131.240817:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_wxvtkbaseview3 +-8.135462:130.908009:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_wxvtkbaseview4 +5.368938:130.904544:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_boxExecViewer +30.874800:130.349763:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_wxcontourmainframe +54.076450:130.437436:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_lstPssblIncnsnstntCntrY +94.496836:133.008477:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_lstX +125.561850:132.305340:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_image +164.159531:133.213929:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_wxvtkbaseview1 +-55.620375:130.484914:-900.000000 +FIN_COMPLEX_PORT +BOXES:75 +BOX +creaContours:SetViewerPosition:Box83 +ISEXEC:FALSE +-86.213980:-13.989874:-900.000000 +-63.878980:-16.489874:-900.000000 +PORT +Direction:"1" +FIN_BOX +BOX +wx:LayoutLine:Box84 +ISEXEC:FALSE +-40.823021:57.864276:-900.000000 +-7.503021:55.364276:-900.000000 +PORT +WinTitle:"Config" +FIN_BOX +BOX +wx:Slider:Box86 +ISEXEC:FALSE +-42.314768:64.249613:-900.000000 +-12.514768:61.749613:-900.000000 +PORT +In:"0" +PORT +Label:"true" +PORT +Max:"29" +PORT +Min:"0" +PORT +Title:"Shift slice" +FIN_BOX +BOX +wx:CommandButton:Box152 +ISEXEC:FALSE +-0.916533:16.537159:-900.000000 +21.468467:14.037159:-900.000000 +PORT +Label:"+" +FIN_BOX +BOX +wx:CommandButton:Box153 +ISEXEC:FALSE +-35.191919:36.930269:-900.000000 +-12.806919:34.430269:-900.000000 +PORT +Label:"-" +FIN_BOX +BOX +wx:LayoutLine:Box154 +ISEXEC:FALSE +-41.709384:-47.420434:-900.000000 +-8.389384:-49.920434:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +creaMaracasVisu:SetPosition:Box155 +ISEXEC:FALSE +-217.935580:9.606191:-900.000000 +-196.165580:7.106191:-900.000000 +FIN_BOX +BOX +std:GetVectorIntElement:Box156 +ISEXEC:FALSE +-206.361274:69.968619:-900.000000 +-183.591274:67.468619:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +std:GetVectorIntElement:Box157 +ISEXEC:FALSE +-123.231010:77.315498:-900.000000 +-100.461010:74.815498:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +std:GetVectorIntElement:Box158 +ISEXEC:FALSE +-34.599758:81.290931:-900.000000 +-11.829758:78.790931:-900.000000 +PORT +I:"2" +FIN_BOX +BOX +std:ConcatStrings:Box159 +ISEXEC:FALSE +-228.395046:22.719032:-900.000000 +-205.635046:20.219032:-900.000000 +PORT +In2:" " +PORT +In4:" " +FIN_BOX +BOX +std:Add:Box160 +ISEXEC:FALSE +-211.921426:31.303611:-900.000000 +-190.776426:28.803611:-900.000000 +PORT +In2:"10" +FIN_BOX +BOX +creaMaracasVisu:SetPosition:Box161 +ISEXEC:FALSE +-29.536634:24.111192:-900.000000 +-7.766634:21.611192:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box162 +ISEXEC:FALSE +-3.973803:31.723101:-900.000000 +18.786197:29.223101:-900.000000 +PORT +In2:" " +PORT +In4:" " +FIN_BOX +BOX +std:MathOperation:Box164 +ISEXEC:FALSE +4.910005:40.896024:-900.000000 +27.120005:38.396024:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:MathOperation:Box174 +ISEXEC:FALSE +-134.774996:57.170031:-900.000000 +-112.564996:54.670031:-900.000000 +PORT +Type:"2" +FIN_BOX +BOX +std:MathOperation:Box175 +ISEXEC:FALSE +-129.667108:67.791768:-900.000000 +-107.457108:65.291768:-900.000000 +PORT +Type:"3" +FIN_BOX +BOX +std:MathOperation:Box176 +ISEXEC:FALSE +-131.369853:62.845699:-900.000000 +-109.159853:60.345699:-900.000000 +PORT +Type:"22" +FIN_BOX +BOX +wx:OutputText:Box224 +ISEXEC:FALSE +-44.913433:-29.765597:-900.000000 +-23.133433:-32.265597:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box225 +ISEXEC:FALSE +-26.776287:-32.155108:-900.000000 +-4.996287:-34.655108:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box256 +ISEXEC:FALSE +-81.028668:-32.273814:-900.000000 +-58.948668:-34.773814:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box258 +ISEXEC:FALSE +-139.810881:-72.603272:-900.000000 +-118.030881:-75.103272:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box261 +ISEXEC:FALSE +-136.143816:-91.615476:-900.000000 +-102.823816:-94.115476:-900.000000 +FIN_BOX +BOX +std:ReplaceCleanString:Box265 +ISEXEC:FALSE +-144.304123:-46.132014:-900.000000 +-121.639123:-48.632014:-900.000000 +PORT +Search:".000000" +FIN_BOX +BOX +std:VectorFilterDouble:Box283 +ISEXEC:FALSE +90.361482:93.520704:-900.000000 +116.641482:91.020704:-900.000000 +FIN_BOX +BOX +std:CreateArithmeticSuiteVector:Box284 +ISEXEC:FALSE +95.399927:38.482410:-900.000000 +118.929927:35.982410:-900.000000 +PORT +Delta:"0" +PORT +FirstValue:"0" +FIN_BOX +BOX +std:GetDoubleVectorSize:Box285 +ISEXEC:FALSE +96.721181:48.435719:-900.000000 +119.546181:45.935719:-900.000000 +FIN_BOX +BOX +std:VectorFilterDouble:Box286 +ISEXEC:FALSE +87.579072:18.959204:-900.000000 +113.859072:16.459204:-900.000000 +PORT +Type:"10" +FIN_BOX +BOX +std:ConcatStrings:Box287 +ISEXEC:FALSE +105.651592:27.163599:-900.000000 +128.411592:24.663599:-900.000000 +PORT +In1:"0 " +PORT +In3:" 0" +FIN_BOX +BOX +std:ConcatStrings:Box288 +ISEXEC:FALSE +89.620365:12.609270:-900.000000 +112.380365:10.109270:-900.000000 +FIN_BOX +BOX +std:MathOperation:Box291 +ISEXEC:FALSE +-164.476412:-57.188764:-900.000000 +-142.266412:-59.688764:-900.000000 +PORT +Type:"30" +FIN_BOX +BOX +std:StringSelect:Box295 +ISEXEC:FALSE +-139.956865:-64.211659:-900.000000 +-115.436865:-66.711659:-900.000000 +PORT +In0:"Warning !" +PORT +In1:" " +FIN_BOX +BOX +std:GetVectorDoubleElement:Box298 +ISEXEC:FALSE +73.259254:4.129028:-900.000000 +96.494254:1.629028:-900.000000 +FIN_BOX +BOX +std:ReplaceCleanString:Box299 +ISEXEC:FALSE +-198.947744:-45.713136:-900.000000 +-176.282744:-48.213136:-900.000000 +PORT +Search:".000000" +FIN_BOX +BOX +wx:OutputText:Box300 +ISEXEC:FALSE +-169.198258:-78.797816:-900.000000 +-147.418258:-81.297816:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box302 +ISEXEC:FALSE +-129.286174:-58.003659:-900.000000 +-107.506174:-60.503659:-900.000000 +FIN_BOX +BOX +wx:ComboBox:Box314 +ISEXEC:FALSE +-80.767930:80.311626:-900.000000 +-54.487930:77.811626:-900.000000 +PORT +In:"void" +PORT +Selection:"9" +PORT +Title:"Slice step -/+" +FIN_BOX +BOX +std:CreateArithmeticSuiteVector:Box315 +ISEXEC:FALSE +-74.081616:97.236712:-900.000000 +-50.551616:94.736712:-900.000000 +PORT +Delta:"1" +PORT +FirstValue:"1" +PORT +Size:"30" +FIN_BOX +BOX +std:ConcatStrings:Box316 +ISEXEC:FALSE +-80.727897:87.290080:-900.000000 +-57.967897:84.790080:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box317 +ISEXEC:FALSE +-81.729138:71.218704:-900.000000 +-58.969138:68.718704:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box318 +ISEXEC:FALSE +-93.002181:-4.343389:-900.000000 +-68.482181:-6.843389:-900.000000 +PORT +In3:"-1" +FIN_BOX +BOX +std:Add:Box321 +ISEXEC:FALSE +-213.077353:37.122911:-900.000000 +-191.932353:34.622911:-900.000000 +FIN_BOX +BOX +std:Add:Box322 +ISEXEC:FALSE +3.609911:51.088021:-900.000000 +24.754911:48.588021:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box324 +ISEXEC:FALSE +-142.658615:30.103534:-900.000000 +-119.898615:27.603534:-900.000000 +PORT +In2:" " +PORT +In4:" " +FIN_BOX +BOX +std:GetVectorDoubleElement:Box326 +ISEXEC:FALSE +-125.975309:-38.875754:-900.000000 +-102.740309:-41.375754:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +std:ConcatStrings:Box327 +ISEXEC:FALSE +-204.328084:-63.612224:-900.000000 +-181.568084:-66.112224:-900.000000 +PORT +In2:" &&2P&& MPR Nearest Contour" +FIN_BOX +BOX +std:ConcatStrings:Box328 +ISEXEC:FALSE +-121.391161:-52.733998:-900.000000 +-98.631161:-55.233998:-900.000000 +PORT +In2:" &&2P&& 2D Slice Contour" +FIN_BOX +BOX +std:ConcatStrings:Box329 +ISEXEC:FALSE +22.891103:12.675794:-900.000000 +45.651103:10.175794:-900.000000 +PORT +In2:" " +PORT +In4:" " +FIN_BOX +BOX +wx:ComboBox:Box330 +ISEXEC:FALSE +-66.849709:36.915486:-900.000000 +-40.569709:34.415486:-900.000000 +PORT +In:"Direct Grid Contour Nothing" +PORT +Selection:"1" +PORT +Title:"MPR to 2D " +FIN_BOX +BOX +wx:LayoutLine:Box331 +ISEXEC:FALSE +-54.136649:-85.097407:-900.000000 +-20.816649:-87.597407:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutLine:Box336 +ISEXEC:FALSE +-76.236316:-101.790425:-900.000000 +-42.916316:-104.290425:-900.000000 +PORT +Orientation:"H" +PORT +WinTitle:"Slice step" +FIN_BOX +BOX +wx:OutputText:Box348 +ISEXEC:FALSE +-90.476947:-82.873612:-900.000000 +-68.696947:-85.373612:-900.000000 +PORT +Title:"Warning" +FIN_BOX +BOX +std:ReplaceCleanString:Box349 +ISEXEC:FALSE +-85.236794:-65.249500:-900.000000 +-62.571794:-67.749500:-900.000000 +PORT +Replace:"," +PORT +Search:" " +FIN_BOX +BOX +std:VectorFilterDouble:Box352 +ISEXEC:FALSE +-95.835925:-75.693628:-900.000000 +-69.555925:-78.193628:-900.000000 +FIN_BOX +BOX +std:VectorFilterDouble:Box354 +ISEXEC:FALSE +-86.939188:-69.931682:-900.000000 +-60.659188:-72.431682:-900.000000 +PORT +Type:"8" +FIN_BOX +BOX +wx:OutputText:Box355 +ISEXEC:FALSE +-118.787170:-84.390545:-900.000000 +-97.007170:-86.890545:-900.000000 +FIN_BOX +BOX +std:GetVectorIntElement:Box436 +ISEXEC:FALSE +116.175614:68.682532:-900.000000 +138.945614:66.182532:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +vtk:ImageVtkProperties:Box437 +ISEXEC:FALSE +132.503677:93.189286:-900.000000 +155.148677:90.689286:-900.000000 +FIN_BOX +BOX +std:VectorFilterDouble:Box438 +ISEXEC:FALSE +120.206320:75.021336:-900.000000 +146.486320:72.521336:-900.000000 +PORT +Type:"11" +FIN_BOX +BOX +creaMaracasVisu:wxVtkBaseView_Info:Box447 +ISEXEC:FALSE +6.369882:82.111167:-900.000000 +35.409882:79.611167:-900.000000 +PORT +InteractionType:"6" +FIN_BOX +BOX +std:MultipleInputs:Box448 +ISEXEC:FALSE +25.118365:61.790957:-900.000000 +47.198365:59.290957:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:wxVtkBaseView_Info:Box449 +ISEXEC:FALSE +39.132893:78.338539:-900.000000 +68.172893:75.838539:-900.000000 +PORT +InteractionType:"8" +FIN_BOX +BOX +std:MagicBox:Box450 +ISEXEC:FALSE +-101.518386:119.605213:-900.000000 +-79.808386:117.105213:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box451 +ISEXEC:FALSE +-62.179115:118.867368:-900.000000 +-40.469115:116.367368:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box452 +ISEXEC:FALSE +-27.117246:119.513310:-900.000000 +-5.407246:117.013310:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box453 +ISEXEC:FALSE +-12.784438:115.029846:-900.000000 +8.925562:112.529846:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box454 +ISEXEC:FALSE +2.380392:110.379977:-900.000000 +24.090392:107.879977:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box455 +ISEXEC:FALSE +25.409122:119.132043:-900.000000 +47.119122:116.632043:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box456 +ISEXEC:FALSE +-66.962918:-120.191983:-900.000000 +-33.642918:-122.691983:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box457 +ISEXEC:FALSE +48.491316:121.680522:-900.000000 +70.201316:119.180522:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box458 +ISEXEC:FALSE +88.987369:123.438518:-900.000000 +110.697369:120.938518:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box459 +ISEXEC:FALSE +119.944211:125.358797:-900.000000 +141.654211:122.858797:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box460 +ISEXEC:FALSE +159.076462:124.392572:-900.000000 +180.786462:121.892572:-900.000000 +FIN_BOX +BOX +std:Div:Box81 +ISEXEC:FALSE +69.617562:-8.459008:-900.000000 +90.542562:-10.959008:-900.000000 +FIN_BOX +BOX +std:GetVectorDoubleElement:Box82 +ISEXEC:FALSE +142.469319:58.169232:-900.000000 +165.594319:55.669232:-900.000000 +PORT +I:"1" +FIN_BOX +CONNECTIONS:123 +CONNECTION +Box86:Widget:Box84:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box153:Widget:Box154:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box156:Out:Box159:In1 +NumberOfControlPoints:0 +CONNECTION +Box158:Out:Box159:In5 +NumberOfControlPoints:0 +CONNECTION +Box159:Out:Box155:Point +NumberOfControlPoints:0 +CONNECTION +Box152:BoxChange:Box155:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box153:BoxChange:Box161:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box156:Out:Box162:In1 +NumberOfControlPoints:0 +CONNECTION +Box158:Out:Box162:In5 +NumberOfControlPoints:0 +CONNECTION +Box162:Out:Box161:Point +NumberOfControlPoints:0 +CONNECTION +Box164:Out:Box162:In3 +NumberOfControlPoints:0 +CONNECTION +Box157:Out:Box175:In1 +NumberOfControlPoints:0 +CONNECTION +Box175:Out:Box176:In1 +NumberOfControlPoints:0 +CONNECTION +Box176:Out:Box174:In1 +NumberOfControlPoints:0 +CONNECTION +Box152:Widget:Box154:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box224:Widget:Box154:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box164:BoxChange:Box256:In2 +NumberOfControlPoints:0 +CONNECTION +Box283:Out0:Box285:In +NumberOfControlPoints:0 +CONNECTION +Box285:VectorSize:Box284:Size +NumberOfControlPoints:0 +CONNECTION +Box284:ArithmeticSuiteVector:Box286:In2 +NumberOfControlPoints:0 +CONNECTION +Box287:Out:Box286:In3 +NumberOfControlPoints:0 +CONNECTION +Box284:ArithmeticSuiteVector:Box286:In0 +NumberOfControlPoints:0 +CONNECTION +Box283:Out0:Box286:In1 +NumberOfControlPoints:0 +CONNECTION +Box286:Out0:Box288:In1 +NumberOfControlPoints:0 +CONNECTION +Box258:Widget:Box261:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box265:Out:Box291:In1 +NumberOfControlPoints:0 +CONNECTION +Box291:Out:Box295:In +NumberOfControlPoints:0 +CONNECTION +Box288:Out:Box298:I +NumberOfControlPoints:0 +CONNECTION +Box283:Out0:Box298:In +NumberOfControlPoints:0 +CONNECTION +Box299:Out:Box291:In2 +NumberOfControlPoints:0 +CONNECTION +Box295:Out:Box300:In +NumberOfControlPoints:0 +CONNECTION +Box258:BoxChange:Box300:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box295:BoxChange:Box258:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box302:Widget:Box261:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box302:BoxChange:Box295:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box256:BoxChange:Box302:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box225:Widget:Box154:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box316:Out:Box314:In +NumberOfControlPoints:0 +CONNECTION +Box315:ArithmeticSuiteVector:Box316:In1 +NumberOfControlPoints:0 +CONNECTION +Box314:OutString:Box317:In1 +NumberOfControlPoints:0 +CONNECTION +Box317:Out:Box175:In2 +NumberOfControlPoints:0 +CONNECTION +Box317:Out:Box174:In2 +NumberOfControlPoints:0 +CONNECTION +Box317:Out:Box160:In2 +NumberOfControlPoints:0 +CONNECTION +Box317:Out:Box164:In2 +NumberOfControlPoints:0 +CONNECTION +Box318:Out:Box83:Position +NumberOfControlPoints:0 +CONNECTION +Box160:BoxChange:Box256:In1 +NumberOfControlPoints:0 +CONNECTION +Box174:Out:Box321:In1 +NumberOfControlPoints:0 +CONNECTION +Box321:Out:Box160:In1 +NumberOfControlPoints:0 +CONNECTION +Box160:Out:Box159:In3 +NumberOfControlPoints:0 +CONNECTION +Box174:Out:Box322:In1 +NumberOfControlPoints:0 +CONNECTION +Box322:Out:Box164:In1 +NumberOfControlPoints:0 +CONNECTION +Box86:Out:Box322:In2 +NumberOfControlPoints:0 +CONNECTION +Box86:Out:Box321:In2 +NumberOfControlPoints:0 +CONNECTION +Box156:Out:Box324:In1 +NumberOfControlPoints:0 +CONNECTION +Box174:Out:Box324:In3 +NumberOfControlPoints:0 +CONNECTION +Box158:Out:Box324:In5 +NumberOfControlPoints:0 +CONNECTION +Box324:Out:Box318:In1 +NumberOfControlPoints:0 +CONNECTION +Box326:Out:Box265:In +NumberOfControlPoints:0 +CONNECTION +Box318:Out:Box326:In +NumberOfControlPoints:0 +CONNECTION +Box299:Out:Box327:In1 +NumberOfControlPoints:0 +CONNECTION +Box327:Out:Box258:In +NumberOfControlPoints:0 +CONNECTION +Box265:Out:Box328:In1 +NumberOfControlPoints:0 +CONNECTION +Box328:Out:Box302:In +NumberOfControlPoints:0 +CONNECTION +Box156:Out:Box329:In1 +NumberOfControlPoints:0 +CONNECTION +Box158:Out:Box329:In5 +NumberOfControlPoints:0 +CONNECTION +Box329:Out:Box318:In2 +NumberOfControlPoints:0 +CONNECTION +Box330:Out:Box318:In +NumberOfControlPoints:0 +CONNECTION +Box330:Widget:Box331:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box314:Widget:Box331:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box154:Widget:Box336:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box300:Widget:Box261:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box261:Widget:Box336:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box331:Widget:Box336:Widget7 +NumberOfControlPoints:0 +CONNECTION +Box348:Widget:Box261:Widget7 +NumberOfControlPoints:0 +CONNECTION +Box300:BoxChange:Box348:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box352:Out0:Box348:In +NumberOfControlPoints:0 +CONNECTION +Box349:Out:Box354:In0 +NumberOfControlPoints:0 +CONNECTION +Box354:Out0:Box352:In0 +NumberOfControlPoints:0 +CONNECTION +Box355:Widget:Box261:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box436:Out:Box287:In2 +NumberOfControlPoints:0 +CONNECTION +Box438:Out0:Box436:In +NumberOfControlPoints:0 +CONNECTION +Box437:Spacing:Box438:k1 +NumberOfControlPoints:0 +CONNECTION +Box447:BoxChange:Box448:In1 +NumberOfControlPoints:0 +CONNECTION +Box448:BoxChange:Box83:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box449:BoxChange:Box448:In3 +NumberOfControlPoints:0 +CONNECTION +_point:_point:Box450:In +NumberOfControlPoints:0 +CONNECTION +Box450:Out:Box157:In +NumberOfControlPoints:0 +CONNECTION +Box450:Out:Box156:In +NumberOfControlPoints:0 +CONNECTION +Box450:Out:Box318:In0 +NumberOfControlPoints:0 +CONNECTION +Box450:Out:Box158:In +NumberOfControlPoints:0 +CONNECTION +Box451:Out:Box155:wxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box451:Out:Box161:wxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +_wxvtkbaseview2:_wxvtkbaseview2:Box452:In +NumberOfControlPoints:0 +CONNECTION +Box452:Out:Box447:wxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box452:Out:Box449:wxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +_wxvtkbaseview3:_wxvtkbaseview3:Box453:In +NumberOfControlPoints:0 +CONNECTION +_wxvtkbaseview4:_wxvtkbaseview4:Box454:In +NumberOfControlPoints:0 +CONNECTION +Box453:Out:Box447:wxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box453:Out:Box449:wxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box454:Out:Box447:wxVtkBaseView3 +NumberOfControlPoints:0 +CONNECTION +Box454:Out:Box449:wxVtkBaseView3 +NumberOfControlPoints:0 +CONNECTION +_boxExecViewer:_boxExecViewer:Box455:In +NumberOfControlPoints:0 +CONNECTION +Box455:Out:Box448:In9 +NumberOfControlPoints:0 +CONNECTION +Box336:Widget:Box456:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box84:Widget:Box456:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box456:Widget:_widget:_widget +NumberOfControlPoints:0 +CONNECTION +Box448:BoxChange:_initExec:_initExec +NumberOfControlPoints:0 +CONNECTION +_wxcontourmainframe:_wxcontourmainframe:Box457:In +NumberOfControlPoints:0 +CONNECTION +Box457:Out:Box83:wxContourMainFrame +NumberOfControlPoints:0 +CONNECTION +_lstPssblIncnsnstntCntrY:_lstPssblIncnsnstntCntrY:Box458:In +NumberOfControlPoints:0 +CONNECTION +Box458:Out:Box349:In +NumberOfControlPoints:0 +CONNECTION +Box288:Out:_iaxis:_iaxis +NumberOfControlPoints:0 +CONNECTION +_lstX:_lstX:Box459:In +NumberOfControlPoints:0 +CONNECTION +Box459:Out:Box283:In0 +NumberOfControlPoints:0 +CONNECTION +_image:_image:Box460:In +NumberOfControlPoints:0 +CONNECTION +Box460:Out:Box437:In +NumberOfControlPoints:0 +CONNECTION +Box450:Out:Box438:In0 +NumberOfControlPoints:0 +CONNECTION +_wxvtkbaseview1:_wxvtkbaseview1:Box451:In +NumberOfControlPoints:0 +CONNECTION +Box298:Out:Box81:In1 +NumberOfControlPoints:0 +CONNECTION +Box437:Spacing:Box82:In +NumberOfControlPoints:0 +CONNECTION +Box82:Out:Box81:In2 +NumberOfControlPoints:0 +CONNECTION +Box81:Out:Box329:In3 +NumberOfControlPoints:0 +CONNECTION +Box81:Out:Box299:In +NumberOfControlPoints:0 +APP_END diff --git a/bbtk/bbs/boxes/ContourReferenceStep.bbs b/bbtk/bbs/boxes/ContourReferenceStep.bbs new file mode 100644 index 0000000..bb119c8 --- /dev/null +++ b/bbtk/bbs/boxes/ContourReferenceStep.bbs @@ -0,0 +1,362 @@ +# ---------------------------------- +# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/C23/creatools_source/creaContours/bbtk/bbs/boxes/ContourReferenceStep.bbs +# ---------------------------------- + +include std +include itkvtk +include creaContours +include wx +include creaMaracasVisu +include std +include vtk + +define ContourReferenceStep creaContours + +author "Author ??" +description "Description ??" + +category "" + +new creaContours:SetViewerPosition Box83 + set Box83.Direction "1" + +new wx:LayoutLine Box84 + set Box84.WinTitle "Config" + +new wx:Slider Box86 + set Box86.In "0" + set Box86.Label "true" + set Box86.Max "29" + set Box86.Min "0" + set Box86.Title "Shift slice" + +new wx:CommandButton Box152 + set Box152.Label "+" + +new wx:CommandButton Box153 + set Box153.Label "-" + +new wx:LayoutLine Box154 + set Box154.Orientation "H" + +new creaMaracasVisu:SetPosition Box155 + +new std:GetVectorIntElement Box156 + set Box156.I "0" + +new std:GetVectorIntElement Box157 + set Box157.I "1" + +new std:GetVectorIntElement Box158 + set Box158.I "2" + +new std:ConcatStrings Box159 + set Box159.In2 " " + set Box159.In4 " " + +new std:Add Box160 + set Box160.In2 "10" + +new creaMaracasVisu:SetPosition Box161 + +new std:ConcatStrings Box162 + set Box162.In2 " " + set Box162.In4 " " + +new std:MathOperation Box164 + set Box164.Type "1" + +new std:MathOperation Box174 + set Box174.Type "2" + +new std:MathOperation Box175 + set Box175.Type "3" + +new std:MathOperation Box176 + set Box176.Type "22" + +new wx:OutputText Box224 + +new wx:OutputText Box225 + +new std:MultipleInputs Box256 + +new wx:OutputText Box258 + +new wx:LayoutLine Box261 + +new std:ReplaceCleanString Box265 + set Box265.Search ".000000" + +new std:VectorFilterDouble Box283 + +new std:CreateArithmeticSuiteVector Box284 + set Box284.Delta "0" + set Box284.FirstValue "0" + +new std:GetDoubleVectorSize Box285 + +new std:VectorFilterDouble Box286 + set Box286.Type "10" + +new std:ConcatStrings Box287 + set Box287.In1 "0 " + set Box287.In3 " 0" + +new std:ConcatStrings Box288 + +new std:MathOperation Box291 + set Box291.Type "30" + +new std:StringSelect Box295 + set Box295.In0 "Warning !" + set Box295.In1 " " + +new std:GetVectorDoubleElement Box298 + +new std:ReplaceCleanString Box299 + set Box299.Search ".000000" + +new wx:OutputText Box300 + +new wx:OutputText Box302 + +new wx:ComboBox Box314 + set Box314.In "void" + set Box314.Selection "9" + set Box314.Title "Slice step -/+" + +new std:CreateArithmeticSuiteVector Box315 + set Box315.Delta "1" + set Box315.FirstValue "1" + set Box315.Size "30" + +new std:ConcatStrings Box316 + +new std:ConcatStrings Box317 + +new std:StringSelect Box318 + set Box318.In3 "-1" + +new std:Add Box321 + +new std:Add Box322 + +new std:ConcatStrings Box324 + set Box324.In2 " " + set Box324.In4 " " + +new std:GetVectorDoubleElement Box326 + set Box326.I "1" + +new std:ConcatStrings Box327 + set Box327.In2 " : MPR Nearest Contour" + +new std:ConcatStrings Box328 + set Box328.In2 " : 2D Slice Contour" + +new std:ConcatStrings Box329 + set Box329.In2 " " + set Box329.In4 " " + +new wx:ComboBox Box330 + set Box330.In "Direct Grid Contour Nothing" + set Box330.Selection "1" + set Box330.Title "MPR to 2D " + +new wx:LayoutLine Box331 + set Box331.Orientation "H" + +new wx:LayoutLine Box336 + set Box336.Orientation "H" + set Box336.WinTitle "Slice step" + +new wx:OutputText Box348 + set Box348.Title "Warning" + +new std:ReplaceCleanString Box349 + set Box349.Replace "," + set Box349.Search " " + +new std:VectorFilterDouble Box352 + +new std:VectorFilterDouble Box354 + set Box354.Type "8" + +new wx:OutputText Box355 + +new std:GetVectorIntElement Box436 + set Box436.I "1" + +new vtk:ImageVtkProperties Box437 + +new std:VectorFilterDouble Box438 + set Box438.Type "11" + +new creaMaracasVisu:wxVtkBaseView_Info Box447 + set Box447.InteractionType "6" + +new std:MultipleInputs Box448 + +new creaMaracasVisu:wxVtkBaseView_Info Box449 + set Box449.InteractionType "8" + +new std:MagicBox Box450 + +new std:MagicBox Box451 + +new std:MagicBox Box452 + +new std:MagicBox Box453 + +new std:MagicBox Box454 + +new std:MagicBox Box455 + +new wx:LayoutTab Box456 + +new std:MagicBox Box457 + +new std:MagicBox Box458 + +new std:MagicBox Box459 + +new std:MagicBox Box460 + +new std:Div Box81 + +new std:GetVectorDoubleElement Box82 + set Box82.I "1" + + +connect Box86.Widget Box84.Widget2 +connect Box153.Widget Box154.Widget2 +connect Box156.Out Box159.In1 +connect Box158.Out Box159.In5 +connect Box159.Out Box155.Point +connect Box152.BoxChange Box155.BoxExecute +connect Box153.BoxChange Box161.BoxExecute +connect Box156.Out Box162.In1 +connect Box158.Out Box162.In5 +connect Box162.Out Box161.Point +connect Box164.Out Box162.In3 +connect Box157.Out Box175.In1 +connect Box175.Out Box176.In1 +connect Box176.Out Box174.In1 +connect Box152.Widget Box154.Widget4 +connect Box224.Widget Box154.Widget1 +connect Box164.BoxChange Box256.In2 +connect Box283.Out0 Box285.In +connect Box285.VectorSize Box284.Size +connect Box284.ArithmeticSuiteVector Box286.In2 +connect Box287.Out Box286.In3 +connect Box284.ArithmeticSuiteVector Box286.In0 +connect Box283.Out0 Box286.In1 +connect Box286.Out0 Box288.In1 +connect Box258.Widget Box261.Widget4 +connect Box265.Out Box291.In1 +connect Box291.Out Box295.In +connect Box288.Out Box298.I +connect Box283.Out0 Box298.In +connect Box299.Out Box291.In2 +connect Box295.Out Box300.In +connect Box258.BoxChange Box300.BoxExecute +connect Box295.BoxChange Box258.BoxExecute +connect Box302.Widget Box261.Widget5 +connect Box302.BoxChange Box295.BoxExecute +connect Box256.BoxChange Box302.BoxExecute +connect Box225.Widget Box154.Widget5 +connect Box316.Out Box314.In +connect Box315.ArithmeticSuiteVector Box316.In1 +connect Box314.OutString Box317.In1 +connect Box317.Out Box175.In2 +connect Box317.Out Box174.In2 +connect Box317.Out Box160.In2 +connect Box317.Out Box164.In2 +connect Box318.Out Box83.Position +connect Box160.BoxChange Box256.In1 +connect Box174.Out Box321.In1 +connect Box321.Out Box160.In1 +connect Box160.Out Box159.In3 +connect Box174.Out Box322.In1 +connect Box322.Out Box164.In1 +connect Box86.Out Box322.In2 +connect Box86.Out Box321.In2 +connect Box156.Out Box324.In1 +connect Box174.Out Box324.In3 +connect Box158.Out Box324.In5 +connect Box324.Out Box318.In1 +connect Box326.Out Box265.In +connect Box318.Out Box326.In +connect Box299.Out Box327.In1 +connect Box327.Out Box258.In +connect Box265.Out Box328.In1 +connect Box328.Out Box302.In +connect Box156.Out Box329.In1 +connect Box158.Out Box329.In5 +connect Box329.Out Box318.In2 +connect Box330.Out Box318.In +connect Box330.Widget Box331.Widget6 +connect Box314.Widget Box331.Widget3 +connect Box154.Widget Box336.Widget2 +connect Box300.Widget Box261.Widget2 +connect Box261.Widget Box336.Widget5 +connect Box331.Widget Box336.Widget7 +connect Box348.Widget Box261.Widget7 +connect Box300.BoxChange Box348.BoxExecute +connect Box352.Out0 Box348.In +connect Box349.Out Box354.In0 +connect Box354.Out0 Box352.In0 +connect Box355.Widget Box261.Widget6 +connect Box436.Out Box287.In2 +connect Box438.Out0 Box436.In +connect Box437.Spacing Box438.k1 +connect Box447.BoxChange Box448.In1 +connect Box448.BoxChange Box83.BoxExecute +connect Box449.BoxChange Box448.In3 +connect Box450.Out Box157.In +connect Box450.Out Box156.In +connect Box450.Out Box318.In0 +connect Box450.Out Box158.In +connect Box451.Out Box155.wxVtkBaseView +connect Box451.Out Box161.wxVtkBaseView +connect Box452.Out Box447.wxVtkBaseView1 +connect Box452.Out Box449.wxVtkBaseView1 +connect Box453.Out Box447.wxVtkBaseView2 +connect Box453.Out Box449.wxVtkBaseView2 +connect Box454.Out Box447.wxVtkBaseView3 +connect Box454.Out Box449.wxVtkBaseView3 +connect Box455.Out Box448.In9 +connect Box336.Widget Box456.Widget2 +connect Box84.Widget Box456.Widget3 +connect Box457.Out Box83.wxContourMainFrame +connect Box458.Out Box349.In +connect Box459.Out Box283.In0 +connect Box460.Out Box437.In +connect Box450.Out Box438.In0 +connect Box298.Out Box81.In1 +connect Box437.Spacing Box82.In +connect Box82.Out Box81.In2 +connect Box81.Out Box329.In3 +connect Box81.Out Box299.In + +# Complex input ports +input _point Box450.In " " +input _wxvtkbaseview2 Box452.In " " +input _wxvtkbaseview3 Box453.In " " +input _wxvtkbaseview4 Box454.In " " +input _boxExecViewer Box455.In " " +input _wxcontourmainframe Box457.In " " +input _lstPssblIncnsnstntCntrY Box458.In " " +input _lstX Box459.In " " +input _image Box460.In " " +input _wxvtkbaseview1 Box451.In " " + +# Complex output ports +output _widget Box456.Widget " " +output _initExec Box448.BoxChange " " +output _iaxis Box288.Out " " + + +endefine diff --git a/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx b/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx index 92600cd..888e51f 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx @@ -1977,6 +1977,7 @@ void wxContourMainFrame::GetImageDataRange(double *range) _theViewPanel->GetImageDataRange(range); } +// Used from wxContourMainFrame_tool bbtk box void wxContourMainFrame::onSegmentationAllSlices2(int step ,double isovalue,int sampling,int method,int minZ, int maxZ,vtkImageData* imagedata) { //JCP 20-10-08 Undo redo implementation @@ -1994,16 +1995,20 @@ void wxContourMainFrame::onSegmentationAllSlices2(int step ,double isovalue,int int sizeZ = ext[5]-ext[4]+1; if (minZ<0) { minZ=0; } if (maxZ>=sizeZ) { maxZ=sizeZ-1; } - for( z=minZ ; z<=maxZ ; z=z+step ) - { -// porcent = 100.0* (z-minZ)/totalZ; -// tmpString.Printf(_T(" %d %c %d/%d %d"), (int)porcent , 37 , z-minZ+1, (int)totalZ,z ); -// interfMainPanel::getInstance()->setLabelSegmentationPanelVTK(tmpString); - //_staticTextSegmentation->SetLabel(tmpString); - SegmentationOneSlice( 100,100,z,isovalue, sampling,method , imagedata ); - } -// interfMainPanel::getInstance()->setLabelSegmentationPanelVTK(_T(" ")); - RefreshInterface(); + if (step>=1) { + int _minZ = minZ/step; + _minZ=_minZ*step; + for( z=_minZ ; z<=maxZ ; z=z+step ) + { + // porcent = 100.0* (z-minZ)/totalZ; + // tmpString.Printf(_T(" %d %c %d/%d %d"), (int)porcent , 37 , z-minZ+1, (int)totalZ,z ); + // interfMainPanel::getInstance()->setLabelSegmentationPanelVTK(tmpString); + //_staticTextSegmentation->SetLabel(tmpString); + SegmentationOneSlice( 100,100,z,isovalue, sampling,method , imagedata ); + } + // interfMainPanel::getInstance()->setLabelSegmentationPanelVTK(_T(" ")); + RefreshInterface(); + } // if step } void wxContourMainFrame::onSegmentationAllSlices(int minZ,int maxZ,double isovalue,int sampling,int method)