From: eduardo.davila@creatis.insa-lyon.fr Date: Wed, 18 Sep 2024 15:07:08 +0000 (+0200) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=3cf7081547d4824e80d9a373b09d51bfd53ad74c;p=creaContours.git Clean code --- diff --git a/bbtk/bbs/boxes/ContourReferenceGrid.bbg b/bbtk/bbs/boxes/ContourReferenceGrid.bbg index 2b40d49..2020d19 100644 --- a/bbtk/bbs/boxes/ContourReferenceGrid.bbg +++ b/bbtk/bbs/boxes/ContourReferenceGrid.bbg @@ -1,5 +1,5 @@ # ---------------------------------- -# - BBTKGEditor v 1.5 BBG BlackBox Diagram file +# - BBTKGEditor v 1.6 BBG BlackBox Diagram file # - /Users/davila/Creatis/C23/creatools_source/creaContours/bbtk/bbs/boxes/ContourReferenceGrid.bbg # ---------------------------------- @@ -7,13 +7,14 @@ APP_START CATEGORY: DESCRIPTION:Description ?? AUTHOR:Author ?? +EXPORTFORMAT:0 COMPLEXBOX:TRUE COMPLEXBOXNAME:ContourReferenceGrid PACKAGENAME:creaContours COMPLEXOUTPUTS:1 COMPLEX_PORT boxChange -116.538660:-148.539367:-900.000000 +113.858704:-168.760855:-900.000000 FIN_COMPLEX_PORT COMPLEXINPUTS:7 COMPLEX_PORT @@ -44,7 +45,7 @@ COMPLEX_PORT iaxis 222.332884:97.853088:-900.000000 FIN_COMPLEX_PORT -BOXES:42 +BOXES:55 BOX std:VectorFilterDouble:Box05 ISEXEC:FALSE @@ -62,8 +63,8 @@ FIN_BOX BOX std:MixingVectors:Box31 ISEXEC:FALSE -158.593201:-40.673851:-900.000000 -181.353201:-43.173851:-900.000000 +37.887050:-76.675268:-900.000000 +60.647050:-79.175268:-900.000000 FIN_BOX BOX vtk:vtkImageDataPointerRelay:Box32 @@ -88,8 +89,8 @@ FIN_BOX BOX std:CreateArithmeticSuiteVector:Box38 ISEXEC:FALSE -316.733823:-46.535918:-900.000000 -340.153823:-49.035918:-900.000000 +132.785051:-54.323268:-900.000000 +156.205051:-56.823268:-900.000000 PORT Delta:"0" PORT @@ -104,14 +105,14 @@ FIN_BOX BOX std:MixingVectors:Box45 ISEXEC:FALSE -44.705113:-77.816441:-900.000000 -67.465113:-80.316441:-900.000000 +11.461406:-77.113693:-900.000000 +34.221406:-79.613693:-900.000000 FIN_BOX BOX std:CreateArithmeticSuiteVector:Box46 ISEXEC:FALSE -195.303702:-39.931988:-900.000000 -218.723702:-42.431988:-900.000000 +63.804506:-76.122838:-900.000000 +87.224506:-78.622838:-900.000000 PORT Delta:"0" PORT @@ -126,8 +127,8 @@ FIN_BOX BOX vtk:Transform:Box49 ISEXEC:FALSE -68.500280:-84.127461:-900.000000 -90.055280:-86.627461:-900.000000 +127.678604:-61.177993:-900.000000 +149.233604:-63.677993:-900.000000 FIN_BOX BOX creaMaracasVisu:DrawAxisTree3D:Box50 @@ -144,24 +145,24 @@ FIN_BOX BOX std:MixingVectors:Box51 ISEXEC:FALSE -288.382693:-101.643452:-900.000000 -311.142693:-104.143452:-900.000000 +235.533156:-67.005947:-900.000000 +258.293156:-69.505947:-900.000000 FIN_BOX BOX std:CreateArithmeticSuiteVector:Box59 ISEXEC:FALSE -265.073687:-38.457083:-900.000000 -288.493687:-40.957083:-900.000000 +196.047717:-67.392762:-900.000000 +219.467717:-69.892762:-900.000000 PORT Delta:"0" PORT -FirstValue:"1000" +FirstValue:"1500" FIN_BOX BOX std:Mul:Box62 ISEXEC:FALSE -279.325579:-32.285577:-900.000000 -300.300579:-34.785577:-900.000000 +198.487353:-56.080711:-900.000000 +219.462353:-58.580711:-900.000000 PORT In2:"2" FIN_BOX @@ -186,8 +187,8 @@ FIN_BOX BOX std:MagicBox:Box64 ISEXEC:FALSE --95.447926:6.545017:-900.000000 --73.847926:4.045017:-900.000000 +-94.119022:9.645793:-900.000000 +-72.519022:7.145793:-900.000000 FIN_BOX BOX std:MagicBox:Box65 @@ -198,8 +199,8 @@ FIN_BOX BOX creaVtk:Actor:Box30 ISEXEC:FALSE -210.320746:-117.728198:-900.000000 -231.480746:-120.228198:-900.000000 +206.422628:-128.204390:-900.000000 +227.582628:-130.704390:-900.000000 PORT Active:"true" PORT @@ -212,8 +213,8 @@ FIN_BOX BOX creaVtk:Actor:Box35 ISEXEC:FALSE -58.854186:-112.682559:-900.000000 -80.014186:-115.182559:-900.000000 +4.812094:-118.884111:-900.000000 +25.972094:-121.384111:-900.000000 PORT Active:"true" PORT @@ -242,19 +243,21 @@ FIN_BOX BOX std:MultipleInputs:Box48 ISEXEC:FALSE -116.312760:-139.367458:-900.000000 -138.282760:-141.867458:-900.000000 +111.927377:-151.792709:-900.000000 +133.897377:-154.292709:-900.000000 FIN_BOX BOX creaMaracasVisu:DrawAxisTree3D:Box54 ISEXEC:FALSE -55.101956:-104.241450:-900.000000 -83.141956:-106.741450:-900.000000 +15.832017:-102.295877:-900.000000 +43.872017:-104.795877:-900.000000 PORT Colour:"1 1 0" PORT LineWidth:"1" PORT +Opacity:"0" +PORT iAxis:"12" FIN_BOX BOX @@ -276,8 +279,8 @@ FIN_BOX BOX std:CreateArithmeticSuiteVector:Box71 ISEXEC:FALSE -304.166962:-90.232297:-900.000000 -327.586962:-92.732297:-900.000000 +239.951081:-56.826470:-900.000000 +263.371081:-59.326470:-900.000000 PORT Delta:"0" PORT @@ -322,8 +325,8 @@ FIN_BOX BOX std:CreateArithmeticSuiteVector:Box77 ISEXEC:FALSE -346.256293:-89.603106:-900.000000 -369.676293:-92.103106:-900.000000 +233.015109:-52.652581:-900.000000 +256.435109:-55.152581:-900.000000 PORT Delta:"0" PORT @@ -351,7 +354,7 @@ ISEXEC:FALSE 58.042408:-14.838112:-900.000000 79.017408:-17.338112:-900.000000 PORT -In2:"-1" +In2:"1" FIN_BOX BOX std:Add:Box85 @@ -365,7 +368,7 @@ ISEXEC:FALSE 112.311307:-16.612031:-900.000000 133.286307:-19.112031:-900.000000 PORT -In2:"-1" +In2:"1" FIN_BOX BOX std:Add:Box87 @@ -376,12 +379,90 @@ FIN_BOX BOX std:Mul:Box70 ISEXEC:FALSE -202.180129:-32.581809:-900.000000 -223.155129:-35.081809:-900.000000 +79.049276:-66.196832:-900.000000 +100.024276:-68.696832:-900.000000 PORT In2:"2" FIN_BOX -CONNECTIONS:73 +BOX +wx:OutputText:Box75 +ISEXEC:FALSE +-213.774135:-265.454597:-900.000000 +-192.104135:-267.954597:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box78 +ISEXEC:FALSE +-203.514805:-260.928807:-900.000000 +-181.844805:-263.428807:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box79 +ISEXEC:FALSE +-181.614748:-253.694423:-900.000000 +-159.944748:-256.194423:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box80 +ISEXEC:FALSE +-200.871368:-274.217704:-900.000000 +-167.551368:-276.717704:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box81 +ISEXEC:FALSE +-110.701482:-335.586507:-900.000000 +-77.381482:-338.086507:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box88 +ISEXEC:FALSE +-111.823814:-256.771050:-900.000000 +-90.153814:-259.271050:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box89 +ISEXEC:FALSE +-61.841067:-256.413933:-900.000000 +-40.171067:-258.913933:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box90 +ISEXEC:FALSE +-87.510871:-256.490122:-900.000000 +-65.840871:-258.990122:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box91 +ISEXEC:FALSE +-87.112139:-279.051583:-900.000000 +-53.792139:-281.551583:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box92 +ISEXEC:FALSE +-21.572850:-256.776864:-900.000000 +0.097150:-259.276864:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box93 +ISEXEC:FALSE +2.417837:-256.832318:-900.000000 +24.087837:-259.332318:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box94 +ISEXEC:FALSE +26.531768:-257.321080:-900.000000 +48.201768:-259.821080:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box95 +ISEXEC:FALSE +-10.888636:-280.020065:-900.000000 +22.431364:-282.520065:-900.000000 +FIN_BOX +CONNECTIONS:94 CONNECTION Box26:LstZ:Box05:In0 NumberOfControlPoints:0 @@ -407,12 +488,6 @@ CONNECTION Box38:ArithmeticSuiteVector:Box50:lstIndexs NumberOfControlPoints:0 CONNECTION -Box31:Out:Box50:lstPointY -NumberOfControlPoints:0 -CONNECTION -Box59:ArithmeticSuiteVector:Box50:lstPointX -NumberOfControlPoints:0 -CONNECTION Box39:VectorSize:Box62:In1 NumberOfControlPoints:0 CONNECTION @@ -467,9 +542,6 @@ CONNECTION Box61:BoxChange:Box48:BoxExecute NumberOfControlPoints:0 CONNECTION -Box58:Out:Box54:Opacity -NumberOfControlPoints:0 -CONNECTION Box65:Out:Box54:Renderer NumberOfControlPoints:0 CONNECTION @@ -482,12 +554,6 @@ CONNECTION Box45:Out:Box54:lstPointX NumberOfControlPoints:0 CONNECTION -Box31:Out:Box54:lstPointY -NumberOfControlPoints:0 -CONNECTION -Box46:ArithmeticSuiteVector:Box54:lstPointZ -NumberOfControlPoints:0 -CONNECTION Box54:OutAxis:Box35:In NumberOfControlPoints:0 CONNECTION @@ -515,9 +581,6 @@ CONNECTION Box66:Out:Box68:In NumberOfControlPoints:0 CONNECTION -Box51:Out:Box50:lstPointZ -NumberOfControlPoints:0 -CONNECTION Box39:VectorSize:Box71:Size NumberOfControlPoints:0 CONNECTION @@ -601,4 +664,85 @@ NumberOfControlPoints:0 CONNECTION Box48:BoxChange:boxChange:boxChange NumberOfControlPoints:0 +CONNECTION +Box75:Widget:Box80:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box78:Widget:Box80:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box79:Widget:Box80:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box26:LstX:Box75:In +NumberOfControlPoints:0 +CONNECTION +Box26:LstY:Box78:In +NumberOfControlPoints:0 +CONNECTION +Box26:LstZ:Box79:In +NumberOfControlPoints:0 +CONNECTION +Box80:Widget:Box81:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box91:Widget:Box81:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box89:In +NumberOfControlPoints:0 +CONNECTION +Box59:ArithmeticSuiteVector:Box50:lstPointX +NumberOfControlPoints:0 +CONNECTION +Box51:Out:Box50:lstPointY +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box50:lstPointZ +NumberOfControlPoints:0 +CONNECTION +Box88:Widget:Box91:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box90:Widget:Box91:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box89:Widget:Box91:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box58:Out:Box54:Opacity +NumberOfControlPoints:0 +CONNECTION +Box51:Out:Box90:In +NumberOfControlPoints:0 +CONNECTION +Box59:ArithmeticSuiteVector:Box88:In +NumberOfControlPoints:0 +CONNECTION +Box92:Widget:Box95:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box95:Widget:Box81:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box45:Out:Box92:In +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box94:In +NumberOfControlPoints:0 +CONNECTION +Box46:ArithmeticSuiteVector:Box93:In +NumberOfControlPoints:0 +CONNECTION +Box46:ArithmeticSuiteVector:Box54:lstPointY +NumberOfControlPoints:0 +CONNECTION +Box93:Widget:Box95:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box94:Widget:Box95:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box54:lstPointZ +NumberOfControlPoints:0 APP_END diff --git a/bbtk/bbs/boxes/ContourReferenceGrid.bbs b/bbtk/bbs/boxes/ContourReferenceGrid.bbs index 32e0d40..b3f7be7 100644 --- a/bbtk/bbs/boxes/ContourReferenceGrid.bbs +++ b/bbtk/bbs/boxes/ContourReferenceGrid.bbs @@ -1,5 +1,5 @@ # ---------------------------------- -# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) +# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box) # - /Users/davila/Creatis/C23/creatools_source/creaContours/bbtk/bbs/boxes/ContourReferenceGrid.bbs # ---------------------------------- @@ -9,6 +9,7 @@ include std include creaMaracasVisu include vtk include creaVtk +include wx define ContourReferenceGrid creaContours @@ -56,7 +57,7 @@ new std:MixingVectors Box51 new std:CreateArithmeticSuiteVector Box59 set Box59.Delta "0" - set Box59.FirstValue "1000" + set Box59.FirstValue "1500" new std:Mul Box62 set Box62.In2 "2" @@ -94,6 +95,7 @@ new std:MultipleInputs Box48 new creaMaracasVisu:DrawAxisTree3D Box54 set Box54.Colour "1 1 0" set Box54.LineWidth "1" + set Box54.Opacity "0" set Box54.iAxis "12" new std:MathOperationVector Box66 @@ -131,18 +133,44 @@ new std:GetVectorDoubleElement Box83 set Box83.I "1" new std:Mul Box84 - set Box84.In2 "-1" + set Box84.In2 "1" new std:Add Box85 new std:Mul Box86 - set Box86.In2 "-1" + set Box86.In2 "1" new std:Add Box87 new std:Mul Box70 set Box70.In2 "2" +new wx:OutputText Box75 + +new wx:OutputText Box78 + +new wx:OutputText Box79 + +new wx:LayoutLine Box80 + +new wx:LayoutTab Box81 + +new wx:OutputText Box88 + +new wx:OutputText Box89 + +new wx:OutputText Box90 + +new wx:LayoutLine Box91 + +new wx:OutputText Box92 + +new wx:OutputText Box93 + +new wx:OutputText Box94 + +new wx:LayoutLine Box95 + connect Box26.LstZ Box05.In0 connect Box32.Out Box33.In @@ -152,8 +180,6 @@ connect Box39.VectorSize Box38.Size connect Box33.Spacing Box49.Scale connect Box49.Out Box50.Transform connect Box38.ArithmeticSuiteVector Box50.lstIndexs -connect Box31.Out Box50.lstPointY -connect Box59.ArithmeticSuiteVector Box50.lstPointX connect Box39.VectorSize Box62.In1 connect Box62.Out Box59.Size connect Box58.Out Box50.Opacity @@ -165,13 +191,10 @@ connect Box05.Out0 Box40.In0 connect Box30.BoxChange Box48.In4 connect Box35.BoxChange Box48.In1 connect Box61.BoxChange Box48.BoxExecute -connect Box58.Out Box54.Opacity connect Box65.Out Box54.Renderer connect Box49.Out Box54.Transform connect Box38.ArithmeticSuiteVector Box54.lstIndexs connect Box45.Out Box54.lstPointX -connect Box31.Out Box54.lstPointY -connect Box46.ArithmeticSuiteVector Box54.lstPointZ connect Box54.OutAxis Box35.In connect Box44.Out Box54.iAxis connect Box44.Out Box50.iAxis @@ -181,7 +204,6 @@ connect Box40.Out0 Box31.In2 connect Box26.LstX Box66.In0 connect Box26.LstY Box66.In1 connect Box66.Out Box68.In -connect Box51.Out Box50.lstPointZ connect Box39.VectorSize Box71.Size connect Box72.ArithmeticSuiteVector Box45.In2 connect Box68.Out Box72.FirstValue @@ -209,6 +231,33 @@ connect Box87.Out Box77.FirstValue connect Box82.Out Box86.In1 connect Box70.Out Box46.Size connect Box39.VectorSize Box70.In1 +connect Box75.Widget Box80.Widget1 +connect Box78.Widget Box80.Widget2 +connect Box79.Widget Box80.Widget3 +connect Box26.LstX Box75.In +connect Box26.LstY Box78.In +connect Box26.LstZ Box79.In +connect Box80.Widget Box81.Widget1 +connect Box91.Widget Box81.Widget2 +connect Box31.Out Box89.In +connect Box59.ArithmeticSuiteVector Box50.lstPointX +connect Box51.Out Box50.lstPointY +connect Box31.Out Box50.lstPointZ +connect Box88.Widget Box91.Widget2 +connect Box90.Widget Box91.Widget4 +connect Box89.Widget Box91.Widget6 +connect Box58.Out Box54.Opacity +connect Box51.Out Box90.In +connect Box59.ArithmeticSuiteVector Box88.In +connect Box92.Widget Box95.Widget2 +connect Box95.Widget Box81.Widget4 +connect Box45.Out Box92.In +connect Box31.Out Box94.In +connect Box46.ArithmeticSuiteVector Box93.In +connect Box46.ArithmeticSuiteVector Box54.lstPointY +connect Box93.Widget Box95.Widget3 +connect Box94.Widget Box95.Widget4 +connect Box31.Out Box54.lstPointZ # Complex input ports input boxExecute Box61.BoxExecute " " diff --git a/bbtk/bbs/boxes/ContourReferenceStep.bbg b/bbtk/bbs/boxes/ContourReferenceStep.bbg index ea4763e..2530287 100644 --- a/bbtk/bbs/boxes/ContourReferenceStep.bbg +++ b/bbtk/bbs/boxes/ContourReferenceStep.bbg @@ -1,5 +1,5 @@ # ---------------------------------- -# - BBTKGEditor v 1.5 BBG BlackBox Diagram file +# - BBTKGEditor v 1.6 BBG BlackBox Diagram file # - /Users/davila/Creatis/C23/creatools_source/creaContours/bbtk/bbs/boxes/ContourReferenceStep.bbg # ---------------------------------- @@ -7,6 +7,7 @@ APP_START CATEGORY: DESCRIPTION:Description ?? AUTHOR:Author ?? +EXPORTFORMAT:0 COMPLEXBOX:TRUE COMPLEXBOXNAME:ContourReferenceStep PACKAGENAME:creaContours @@ -23,53 +24,57 @@ COMPLEX_PORT _iaxis 44.663851:-138.928196:-900.000000 FIN_COMPLEX_PORT -COMPLEXINPUTS:10 +COMPLEXINPUTS:11 COMPLEX_PORT _point --95.177952:132.490235:-900.000000 +-97.282050:176.831329:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _wxvtkbaseview2 --23.007148:131.240817:-900.000000 +-26.329408:158.040379:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _wxvtkbaseview3 --8.135462:130.908009:-900.000000 +-11.457722:157.707571:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _wxvtkbaseview4 -5.368938:130.904544:-900.000000 +2.046678:157.704106:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _boxExecViewer -30.874800:130.349763:-900.000000 +27.552540:157.149325:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _wxcontourmainframe -54.076450:130.437436:-900.000000 +50.754190:157.236998:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _lstPssblIncnsnstntCntrY -94.496836:133.008477:-900.000000 +91.174576:159.808039:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _lstX -125.561850:132.305340:-900.000000 +122.239590:159.104902:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _image -164.159531:133.213929:-900.000000 +160.837271:160.013491:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _wxvtkbaseview1 --55.620375:130.484914:-900.000000 +-58.942635:157.284476:-900.000000 FIN_COMPLEX_PORT -BOXES:75 +COMPLEX_PORT +_direction +-150.810013:164.563769:-900.000000 +FIN_COMPLEX_PORT +BOXES:82 BOX creaContours:SetViewerPosition:Box83 ISEXEC:FALSE --86.213980:-13.989874:-900.000000 --63.878980:-16.489874:-900.000000 +-306.397185:-49.360769:-900.000000 +-284.062185:-51.860769:-900.000000 PORT Direction:"1" FIN_BOX @@ -84,8 +89,8 @@ FIN_BOX BOX wx:Slider:Box86 ISEXEC:FALSE --42.314768:64.249613:-900.000000 --12.514768:61.749613:-900.000000 +-18.014851:72.040426:-900.000000 +11.785149:69.540426:-900.000000 PORT In:"0" PORT @@ -108,8 +113,8 @@ FIN_BOX BOX wx:CommandButton:Box153 ISEXEC:FALSE --35.191919:36.930269:-900.000000 --12.806919:34.430269:-900.000000 +-36.265034:45.821791:-900.000000 +-13.880034:43.321791:-900.000000 PORT Label:"-" FIN_BOX @@ -124,38 +129,38 @@ FIN_BOX BOX creaMaracasVisu:SetPosition:Box155 ISEXEC:FALSE --217.935580:9.606191:-900.000000 --196.165580:7.106191:-900.000000 +-347.113476:-46.554501:-900.000000 +-325.343476:-49.054501:-900.000000 FIN_BOX BOX std:GetVectorIntElement:Box156 ISEXEC:FALSE --206.361274:69.968619:-900.000000 --183.591274:67.468619:-900.000000 +-294.488888:80.317375:-900.000000 +-271.718888:77.817375:-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 +-220.404982:87.609065:-900.000000 +-197.634982:85.109065:-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 +-170.922489:85.834136:-900.000000 +-148.152489:83.334136:-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 +-302.395871:30.421794:-900.000000 +-279.635871:27.921794:-900.000000 PORT In2:" " PORT @@ -164,22 +169,22 @@ FIN_BOX BOX std:Add:Box160 ISEXEC:FALSE --211.921426:31.303611:-900.000000 --190.776426:28.803611:-900.000000 +-288.376618:42.458736:-900.000000 +-267.231618:39.958736:-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 +-265.468980:-49.738976:-900.000000 +-243.698980:-52.238976:-900.000000 FIN_BOX BOX std:ConcatStrings:Box162 ISEXEC:FALSE --3.973803:31.723101:-900.000000 -18.786197:29.223101:-900.000000 +-201.927991:32.098441:-900.000000 +-179.167991:29.598441:-900.000000 PORT In2:" " PORT @@ -188,32 +193,32 @@ FIN_BOX BOX std:MathOperation:Box164 ISEXEC:FALSE -4.910005:40.896024:-900.000000 -27.120005:38.396024:-900.000000 +40.710646:27.911335:-900.000000 +62.920646:25.411335:-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 +-229.352030:70.988014:-900.000000 +-207.142030:68.488014:-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 +-224.244142:81.424255:-900.000000 +-202.034142:78.924255:-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 +-226.688869:75.921700:-900.000000 +-204.478869:73.421700:-900.000000 PORT Type:"22" FIN_BOX @@ -226,8 +231,8 @@ FIN_BOX BOX wx:OutputText:Box225 ISEXEC:FALSE --26.776287:-32.155108:-900.000000 --4.996287:-34.655108:-900.000000 +-15.832049:-29.743666:-900.000000 +5.947951:-32.243666:-900.000000 FIN_BOX BOX std:MultipleInputs:Box256 @@ -258,14 +263,14 @@ FIN_BOX BOX std:VectorFilterDouble:Box283 ISEXEC:FALSE -90.361482:93.520704:-900.000000 -116.641482:91.020704:-900.000000 +111.379800:124.102933:-900.000000 +137.659800:121.602933:-900.000000 FIN_BOX BOX std:CreateArithmeticSuiteVector:Box284 ISEXEC:FALSE -95.399927:38.482410:-900.000000 -118.929927:35.982410:-900.000000 +88.707994:56.677515:-900.000000 +112.237994:54.177515:-900.000000 PORT Delta:"0" PORT @@ -274,22 +279,22 @@ FIN_BOX BOX std:GetDoubleVectorSize:Box285 ISEXEC:FALSE -96.721181:48.435719:-900.000000 -119.546181:45.935719:-900.000000 +99.344123:65.073879:-900.000000 +122.169123:62.573879:-900.000000 FIN_BOX BOX std:VectorFilterDouble:Box286 ISEXEC:FALSE -87.579072:18.959204:-900.000000 -113.859072:16.459204:-900.000000 +90.041093:35.084159:-900.000000 +116.321093:32.584159:-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 +132.258507:60.730674:-900.000000 +155.018507:58.230674:-900.000000 PORT In1:"0 " PORT @@ -298,8 +303,8 @@ FIN_BOX BOX std:ConcatStrings:Box288 ISEXEC:FALSE -89.620365:12.609270:-900.000000 -112.380365:10.109270:-900.000000 +86.207247:28.598987:-900.000000 +108.967247:26.098987:-900.000000 FIN_BOX BOX std:MathOperation:Box291 @@ -322,8 +327,8 @@ FIN_BOX BOX std:GetVectorDoubleElement:Box298 ISEXEC:FALSE -73.259254:4.129028:-900.000000 -96.494254:1.629028:-900.000000 +70.198577:19.228366:-900.000000 +93.433577:16.728366:-900.000000 FIN_BOX BOX std:ReplaceCleanString:Box299 @@ -384,28 +389,28 @@ FIN_BOX BOX std:StringSelect:Box318 ISEXEC:FALSE --93.002181:-4.343389:-900.000000 --68.482181:-6.843389:-900.000000 +-245.225771:1.007881:-900.000000 +-220.705771:-1.492119:-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 +-286.231950:49.594901:-900.000000 +-265.086950:47.094901:-900.000000 FIN_BOX BOX std:Add:Box322 ISEXEC:FALSE -3.609911:51.088021:-900.000000 -24.754911:48.588021:-900.000000 +42.007490:37.361350:-900.000000 +63.152490:34.861350:-900.000000 FIN_BOX BOX std:ConcatStrings:Box324 ISEXEC:FALSE --142.658615:30.103534:-900.000000 --119.898615:27.603534:-900.000000 +-258.383491:39.167082:-900.000000 +-235.623491:36.667082:-900.000000 PORT In2:" " PORT @@ -438,8 +443,8 @@ FIN_BOX BOX std:ConcatStrings:Box329 ISEXEC:FALSE -22.891103:12.675794:-900.000000 -45.651103:10.175794:-900.000000 +23.496209:2.086436:-900.000000 +46.256209:-0.413564:-900.000000 PORT In2:" " PORT @@ -448,8 +453,8 @@ FIN_BOX BOX wx:ComboBox:Box330 ISEXEC:FALSE --66.849709:36.915486:-900.000000 --40.569709:34.415486:-900.000000 +-66.236501:46.113613:-900.000000 +-39.956501:43.613613:-900.000000 PORT In:"Direct Grid Contour Nothing" PORT @@ -516,30 +521,22 @@ FIN_BOX BOX std:GetVectorIntElement:Box436 ISEXEC:FALSE -116.175614:68.682532:-900.000000 -138.945614:66.182532:-900.000000 +132.935911:69.244296:-900.000000 +155.705911:66.744296:-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" +172.415091:123.709779:-900.000000 +195.060091:121.209779:-900.000000 FIN_BOX BOX creaMaracasVisu:wxVtkBaseView_Info:Box447 ISEXEC:FALSE -6.369882:82.111167:-900.000000 -35.409882:79.611167:-900.000000 +6.126250:86.740182:-900.000000 +35.166250:84.240182:-900.000000 PORT InteractionType:"6" FIN_BOX @@ -552,34 +549,34 @@ FIN_BOX BOX creaMaracasVisu:wxVtkBaseView_Info:Box449 ISEXEC:FALSE -39.132893:78.338539:-900.000000 -68.172893:75.838539:-900.000000 +39.160251:87.314730:-900.000000 +68.200251:84.814730:-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 +-107.427833:144.084412:-900.000000 +-85.717833:141.584412:-900.000000 FIN_BOX BOX std:MagicBox:Box451 ISEXEC:FALSE --62.179115:118.867368:-900.000000 --40.469115:116.367368:-900.000000 +-65.501375:145.666930:-900.000000 +-43.791375:143.166930:-900.000000 FIN_BOX BOX std:MagicBox:Box452 ISEXEC:FALSE --27.117246:119.513310:-900.000000 --5.407246:117.013310:-900.000000 +-30.439506:146.312872:-900.000000 +-8.729506:143.812872:-900.000000 FIN_BOX BOX std:MagicBox:Box453 ISEXEC:FALSE --12.784438:115.029846:-900.000000 -8.925562:112.529846:-900.000000 +-16.106698:141.829408:-900.000000 +5.603302:139.329408:-900.000000 FIN_BOX BOX std:MagicBox:Box454 @@ -590,8 +587,8 @@ FIN_BOX BOX std:MagicBox:Box455 ISEXEC:FALSE -25.409122:119.132043:-900.000000 -47.119122:116.632043:-900.000000 +22.086862:145.931605:-900.000000 +43.796862:143.431605:-900.000000 FIN_BOX BOX wx:LayoutTab:Box456 @@ -602,42 +599,102 @@ FIN_BOX BOX std:MagicBox:Box457 ISEXEC:FALSE -48.491316:121.680522:-900.000000 -70.201316:119.180522:-900.000000 +45.169056:148.480084:-900.000000 +66.879056:145.980084:-900.000000 FIN_BOX BOX std:MagicBox:Box458 ISEXEC:FALSE -88.987369:123.438518:-900.000000 -110.697369:120.938518:-900.000000 +85.665109:150.238080:-900.000000 +107.375109:147.738080:-900.000000 FIN_BOX BOX std:MagicBox:Box459 ISEXEC:FALSE -119.944211:125.358797:-900.000000 -141.654211:122.858797:-900.000000 +116.621951:152.158359:-900.000000 +138.331951:149.658359:-900.000000 FIN_BOX BOX std:MagicBox:Box460 ISEXEC:FALSE -159.076462:124.392572:-900.000000 -180.786462:121.892572:-900.000000 +155.754202:151.192134:-900.000000 +177.464202:148.692134:-900.000000 FIN_BOX BOX std:Div:Box81 ISEXEC:FALSE -69.617562:-8.459008:-900.000000 -90.542562:-10.959008:-900.000000 +91.009059:0.592042:-900.000000 +111.934059:-1.907958:-900.000000 FIN_BOX BOX std:GetVectorDoubleElement:Box82 ISEXEC:FALSE -142.469319:58.169232:-900.000000 -165.594319:55.669232:-900.000000 +164.544085:33.189061:-900.000000 +187.669085:30.689061:-900.000000 PORT I:"1" FIN_BOX -CONNECTIONS:123 +BOX +std:MagicBox:Box75 +ISEXEC:FALSE +-168.593455:133.868150:-900.000000 +-146.993455:131.368150:-900.000000 +FIN_BOX +BOX +std:VectorFilterDouble:Box76 +ISEXEC:FALSE +-102.104675:153.543465:-900.000000 +-75.824675:151.043465:-900.000000 +PORT +Type:"15" +FIN_BOX +BOX +std:MagicBox:Box77 +ISEXEC:FALSE +-94.889628:165.433252:-900.000000 +-73.289628:162.933252:-900.000000 +FIN_BOX +BOX +std:VectorFilterDouble:Box78 +ISEXEC:FALSE +-354.492562:-29.465390:-900.000000 +-328.212562:-31.965390:-900.000000 +PORT +Type:"15" +FIN_BOX +BOX +std:VectorFilterDouble:Box79 +ISEXEC:FALSE +-308.014491:-32.411782:-900.000000 +-281.734491:-34.911782:-900.000000 +PORT +Type:"15" +FIN_BOX +BOX +std:VectorFilterDouble:Box80 +ISEXEC:FALSE +-261.234862:-37.043013:-900.000000 +-234.954862:-39.543013:-900.000000 +PORT +Type:"15" +FIN_BOX +BOX +std:VectorFilterDouble:Box96 +ISEXEC:FALSE +177.403121:105.440928:-900.000000 +203.683121:102.940928:-900.000000 +PORT +Type:"15" +FIN_BOX +BOX +std:MathOperationVector:Box97 +ISEXEC:FALSE +149.706042:90.721645:-900.000000 +174.226042:88.221645:-900.000000 +PORT +Type:"2" +FIN_BOX +CONNECTIONS:136 CONNECTION Box86:Widget:Box84:Widget2 NumberOfControlPoints:0 @@ -651,9 +708,6 @@ CONNECTION Box158:Out:Box159:In5 NumberOfControlPoints:0 CONNECTION -Box159:Out:Box155:Point -NumberOfControlPoints:0 -CONNECTION Box152:BoxChange:Box155:BoxExecute NumberOfControlPoints:0 CONNECTION @@ -666,9 +720,6 @@ CONNECTION Box158:Out:Box162:In5 NumberOfControlPoints:0 CONNECTION -Box162:Out:Box161:Point -NumberOfControlPoints:0 -CONNECTION Box164:Out:Box162:In3 NumberOfControlPoints:0 CONNECTION @@ -771,9 +822,6 @@ CONNECTION Box317:Out:Box164:In2 NumberOfControlPoints:0 CONNECTION -Box318:Out:Box83:Position -NumberOfControlPoints:0 -CONNECTION Box160:BoxChange:Box256:In1 NumberOfControlPoints:0 CONNECTION @@ -879,12 +927,6 @@ 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 @@ -894,9 +936,6 @@ CONNECTION Box449:BoxChange:Box448:In3 NumberOfControlPoints:0 CONNECTION -_point:_point:Box450:In -NumberOfControlPoints:0 -CONNECTION Box450:Out:Box157:In NumberOfControlPoints:0 CONNECTION @@ -987,18 +1026,12 @@ 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 @@ -1007,4 +1040,67 @@ NumberOfControlPoints:0 CONNECTION Box81:Out:Box299:In NumberOfControlPoints:0 +CONNECTION +_direction:_direction:Box75:In +NumberOfControlPoints:0 +CONNECTION +_point:_point:Box77:In +NumberOfControlPoints:0 +CONNECTION +Box77:Out:Box76:In0 +NumberOfControlPoints:0 +CONNECTION +Box76:Out0:Box450:In +NumberOfControlPoints:0 +CONNECTION +Box75:Out:Box76:k1 +NumberOfControlPoints:0 +CONNECTION +Box75:Out:Box78:k1 +NumberOfControlPoints:0 +CONNECTION +Box159:Out:Box78:In0 +NumberOfControlPoints:0 +CONNECTION +Box78:Out0:Box155:Point +NumberOfControlPoints:0 +CONNECTION +Box318:Out:Box79:In0 +NumberOfControlPoints:0 +CONNECTION +Box79:Out0:Box83:Position +NumberOfControlPoints:0 +CONNECTION +Box75:Out:Box79:k1 +NumberOfControlPoints:0 +CONNECTION +Box75:Out:Box83:Direction +NumberOfControlPoints:0 +CONNECTION +Box162:Out:Box80:In0 +NumberOfControlPoints:0 +CONNECTION +Box80:Out0:Box161:Point +NumberOfControlPoints:0 +CONNECTION +Box75:Out:Box80:k1 +NumberOfControlPoints:0 +CONNECTION +Box437:Spacing:Box96:In0 +NumberOfControlPoints:0 +CONNECTION +Box75:Out:Box96:k1 +NumberOfControlPoints:0 +CONNECTION +Box96:Out0:Box82:In +NumberOfControlPoints:0 +CONNECTION +Box96:Out0:Box97:In1 +NumberOfControlPoints:0 +CONNECTION +Box450:Out:Box97:In0 +NumberOfControlPoints:0 +CONNECTION +Box97:Out:Box436:In +NumberOfControlPoints:0 APP_END diff --git a/bbtk/bbs/boxes/ContourReferenceStep.bbs b/bbtk/bbs/boxes/ContourReferenceStep.bbs index bb119c8..76812cc 100644 --- a/bbtk/bbs/boxes/ContourReferenceStep.bbs +++ b/bbtk/bbs/boxes/ContourReferenceStep.bbs @@ -1,5 +1,5 @@ # ---------------------------------- -# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) +# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box) # - /Users/davila/Creatis/C23/creatools_source/creaContours/bbtk/bbs/boxes/ContourReferenceStep.bbs # ---------------------------------- @@ -191,9 +191,6 @@ new std:GetVectorIntElement Box436 new vtk:ImageVtkProperties Box437 -new std:VectorFilterDouble Box438 - set Box438.Type "11" - new creaMaracasVisu:wxVtkBaseView_Info Box447 set Box447.InteractionType "6" @@ -229,17 +226,37 @@ new std:Div Box81 new std:GetVectorDoubleElement Box82 set Box82.I "1" +new std:MagicBox Box75 + +new std:VectorFilterDouble Box76 + set Box76.Type "15" + +new std:MagicBox Box77 + +new std:VectorFilterDouble Box78 + set Box78.Type "15" + +new std:VectorFilterDouble Box79 + set Box79.Type "15" + +new std:VectorFilterDouble Box80 + set Box80.Type "15" + +new std:VectorFilterDouble Box96 + set Box96.Type "15" + +new std:MathOperationVector Box97 + set Box97.Type "2" + 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 @@ -274,7 +291,6 @@ 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 @@ -310,8 +326,6 @@ 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 @@ -334,15 +348,31 @@ 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 +connect Box77.Out Box76.In0 +connect Box76.Out0 Box450.In +connect Box75.Out Box76.k1 +connect Box75.Out Box78.k1 +connect Box159.Out Box78.In0 +connect Box78.Out0 Box155.Point +connect Box318.Out Box79.In0 +connect Box79.Out0 Box83.Position +connect Box75.Out Box79.k1 +connect Box75.Out Box83.Direction +connect Box162.Out Box80.In0 +connect Box80.Out0 Box161.Point +connect Box75.Out Box80.k1 +connect Box437.Spacing Box96.In0 +connect Box75.Out Box96.k1 +connect Box96.Out0 Box82.In +connect Box96.Out0 Box97.In1 +connect Box450.Out Box97.In0 +connect Box97.Out Box436.In # Complex input ports -input _point Box450.In " " input _wxvtkbaseview2 Box452.In " " input _wxvtkbaseview3 Box453.In " " input _wxvtkbaseview4 Box454.In " " @@ -352,6 +382,8 @@ input _lstPssblIncnsnstntCntrY Box458.In " " input _lstX Box459.In " " input _image Box460.In " " input _wxvtkbaseview1 Box451.In " " +input _direction Box75.In " " +input _point Box77.In " " # Complex output ports output _widget Box456.Widget " "