From 2d7aa89cbd749ab0de479f9e966397441261deb3 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Thu, 12 Oct 2023 12:46:28 +0200 Subject: [PATCH] #3329 Refresh at start application. ViewerPlaneContourDicom3D --- .../bbs/boxes/SliceVectorImageDicom3D.bbg | 185 +++++++++--------- .../bbs/boxes/SliceVectorImageDicom3D.bbs | 7 +- .../bbs/boxes/ViewerPlaneContourDicom3D.bbg | 132 +++++++------ .../bbs/boxes/ViewerPlaneContourDicom3D.bbs | 2 + .../bbs/boxes/bbImageActorDicom.bbg | 135 +++++++------ .../bbs/boxes/bbImageActorDicom.bbs | 9 +- 6 files changed, 239 insertions(+), 231 deletions(-) diff --git a/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbg b/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbg index 328673a..f0372a1 100644 --- a/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbg +++ b/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbg @@ -1,6 +1,6 @@ # ---------------------------------- -# - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/davila/CreatisWorks/Transform3Ddicom/Transform3Ddicom/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbg +# - BBTKGEditor v 1.5 BBG BlackBox Diagram file +# - /Users/davila/Creatis/C23/creatools_source/creaImageIO/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbg # ---------------------------------- APP_START @@ -10,96 +10,100 @@ AUTHOR:Author ?? COMPLEXBOX:TRUE COMPLEXBOXNAME:SliceVectorImageDicom3D PACKAGENAME:Transform3Ddicom -COMPLEXOUTPUTS:4 +COMPLEXOUTPUTS:5 COMPLEX_PORT image -249.120318:-219.330582:-900.000000 +160.711017:-76.933973:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _widget -43.472161:-220.849845:-900.000000 +50.718128:-73.156926:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT OutTransform -176.310013:-217.844425:-900.000000 +118.385293:-76.126237:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT renderer -14.698791:-220.972223:-900.000000 +3.178031:-76.958351:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxChange_ImageActor +105.587382:-75.659822:-900.000000 FIN_COMPLEX_PORT COMPLEXINPUTS:7 COMPLEX_PORT VecImage -231.454112:140.145676:-900.000000 +164.783507:41.697999:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT VecDicomMap -43.104687:142.291274:-900.000000 +46.939905:43.378789:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT render -155.405937:142.780324:-900.000000 +111.031229:43.006949:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT indexZ -111.368770:144.554625:-900.000000 +71.735474:43.020683:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT boxExecute -201.690488:140.179960:-900.000000 +132.022197:42.745395:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT OpacityPlane -334.807021:136.701557:-900.000000 +197.437486:39.124811:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT IPP_Correction --27.575359:143.578603:-900.000000 +4.409058:43.210134:-900.000000 FIN_COMPLEX_PORT -BOXES:36 +BOXES:35 BOX creaImageIO:GetDicomAttributesFromMaps:Box02 ISEXEC:FALSE -17.036541:47.664847:-900.000000 -72.361541:37.664847:-900.000000 +25.125170:14.613730:-900.000000 +48.675170:12.113730:-900.000000 PORT KeyDicom:"D0020_0032" FIN_BOX BOX std:GetVectorStringElement:Box04 ISEXEC:FALSE -28.847243:16.052421:-900.000000 -78.247243:6.052421:-900.000000 +19.407380:6.229968:-900.000000 +42.362380:3.729968:-900.000000 PORT ErrorValue:"1000 1000 1000 " FIN_BOX BOX creaImageIO:GetDicomAttributesFromMaps:Box09 ISEXEC:FALSE -102.783991:44.492135:-900.000000 -158.108991:34.492135:-900.000000 +87.505455:13.347640:-900.000000 +111.055455:10.847640:-900.000000 PORT KeyDicom:"D0020_0037" FIN_BOX BOX std:GetVectorStringElement:Box10 ISEXEC:FALSE -116.592585:17.347283:-900.000000 -165.992585:7.347283:-900.000000 +81.614809:5.204185:-900.000000 +104.569809:2.704185:-900.000000 PORT ErrorValue:"1 0 0 0 0 1" FIN_BOX BOX vtk:GetVectorVtkImageDataElement:Box12 ISEXEC:FALSE -241.642760:46.026468:-900.000000 -299.892760:36.026468:-900.000000 +152.336167:14.436492:-900.000000 +176.171167:11.936492:-900.000000 FIN_BOX BOX Transform3Ddicom:ImageActorDicom:Box14 ISEXEC:FALSE -163.348301:-79.529289:-900.000000 -207.598301:-89.529289:-900.000000 +114.343811:-23.858787:-900.000000 +136.778811:-26.358787:-900.000000 PORT IPP:"-143.58 -59.34 -24.34" PORT @@ -112,14 +116,14 @@ FIN_BOX BOX vtk:ImageVtkProperties:Box15 ISEXEC:FALSE -265.903480:-1.638027:-900.000000 -311.253480:-11.638027:-900.000000 +163.661703:0.372851:-900.000000 +186.196703:-2.127149:-900.000000 FIN_BOX BOX std:ReplaceString:Box16 ISEXEC:FALSE -25.102352:-0.546209:-900.000000 -64.827352:-10.546209:-900.000000 +17.571646:-0.163863:-900.000000 +39.541646:-2.663863:-900.000000 PORT Replace:" " PORT @@ -128,8 +132,8 @@ FIN_BOX BOX std:ReplaceString:Box17 ISEXEC:FALSE -112.926974:-9.285246:-900.000000 -152.651974:-19.285246:-900.000000 +79.048882:-2.785574:-900.000000 +101.018882:-5.285574:-900.000000 PORT Replace:" " PORT @@ -138,198 +142,192 @@ FIN_BOX BOX std:MagicBox:Box19 ISEXEC:FALSE -228.578090:109.632455:-900.000000 -264.653090:99.632455:-900.000000 +160.004663:32.889736:-900.000000 +181.604663:30.389736:-900.000000 FIN_BOX BOX std:MagicBox:Box20 ISEXEC:FALSE -152.494629:109.349565:-900.000000 -188.569629:99.349565:-900.000000 +106.746240:32.804869:-900.000000 +128.346240:30.304869:-900.000000 FIN_BOX BOX std:MagicBox:Box21 ISEXEC:FALSE -36.142339:109.278938:-900.000000 -72.217339:99.278938:-900.000000 +42.239113:32.956533:-900.000000 +63.839113:30.456533:-900.000000 FIN_BOX BOX std:MagicBox:Box22 ISEXEC:FALSE -96.128878:108.397070:-900.000000 -132.203878:98.397070:-900.000000 +67.290215:32.519121:-900.000000 +88.890215:30.019121:-900.000000 FIN_BOX BOX wx:LayoutTab:Box23 ISEXEC:FALSE -41.682128:-189.532161:-900.000000 -99.242128:-199.532161:-900.000000 +47.373598:-61.670114:-900.000000 +80.693598:-64.170114:-900.000000 FIN_BOX BOX creaMaracasVisu:ViewerNV:Box24 ISEXEC:FALSE --19.604981:-70.005515:-900.000000 -44.115019:-80.005515:-900.000000 +-3.475104:-19.955901:-900.000000 +36.884896:-22.455901:-900.000000 PORT nTypeView:"-1" FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box25 ISEXEC:FALSE -82.917913:-89.092725:-900.000000 -135.067913:-99.092725:-900.000000 +58.042539:-26.727818:-900.000000 +81.257539:-29.227818:-900.000000 FIN_BOX BOX wx:LayoutLine:Box26 ISEXEC:FALSE -94.432010:-168.591424:-900.000000 -151.992010:-178.591424:-900.000000 +66.102407:-50.577427:-900.000000 +99.422407:-53.077427:-900.000000 PORT WinTitle:"DicomInfo" FIN_BOX BOX wx:OutputText:Box28 ISEXEC:FALSE -136.878287:-124.038843:-900.000000 -173.653287:-134.038843:-900.000000 +95.814801:-37.211653:-900.000000 +117.484801:-39.711653:-900.000000 PORT Title:"Orientation" FIN_BOX BOX wx:OutputText:Box29 ISEXEC:FALSE -192.336835:-122.852062:-900.000000 -229.111835:-132.852062:-900.000000 +134.635784:-36.855619:-900.000000 +156.305784:-39.355619:-900.000000 PORT Title:"Spacing" FIN_BOX BOX std:MagicBox:Box30 ISEXEC:FALSE -178.112414:-8.868085:-900.000000 -214.187414:-18.868085:-900.000000 +124.678690:-2.660426:-900.000000 +146.278690:-5.160426:-900.000000 FIN_BOX BOX std:ConcatStrings:Box31 ISEXEC:FALSE -269.332306:-31.960372:-900.000000 -309.057306:-41.960372:-900.000000 +166.061881:-8.723853:-900.000000 +188.821881:-11.223853:-900.000000 PORT In2:" 1.17188" FIN_BOX BOX vtk:RescaleSlopeIntercept:Box35 ISEXEC:FALSE -201.556367:-26.680455:-900.000000 -249.681367:-36.680455:-900.000000 +133.232557:-8.004136:-900.000000 +156.057557:-10.504136:-900.000000 PORT A:"1" FIN_BOX BOX creaImageIO:GetDicomAttributesFromMaps:Box36 ISEXEC:FALSE --89.282445:47.883046:-900.000000 --33.957445:37.883046:-900.000000 +-40.327740:14.574065:-900.000000 +-16.777740:12.074065:-900.000000 PORT KeyDicom:"D0018_1060" FIN_BOX BOX std:GetVectorStringElement:Box37 ISEXEC:FALSE --67.730377:15.697598:-900.000000 --18.330377:5.697598:-900.000000 +-25.241293:4.918430:-900.000000 +-2.286293:2.418430:-900.000000 PORT ErrorValue:"1000 1000 1000 " FIN_BOX BOX wx:OutputText:Box38 ISEXEC:FALSE --24.277914:-120.278509:-900.000000 -12.497086:-130.278509:-900.000000 +-16.994540:-36.083553:-900.000000 +4.675460:-38.583553:-900.000000 PORT Title:"Trigger Time" FIN_BOX BOX creaImageIO:GetDicomAttributesFromMaps:Box39 ISEXEC:FALSE --163.121024:47.447089:-900.000000 --107.796024:37.447089:-900.000000 +-76.615222:15.543244:-900.000000 +-53.065222:13.043244:-900.000000 PORT KeyDicom:"D0020_1041" FIN_BOX BOX std:GetVectorStringElement:Box40 ISEXEC:FALSE --148.241922:14.844580:-900.000000 --98.841922:4.844580:-900.000000 +-66.199851:5.762491:-900.000000 +-43.244851:3.262491:-900.000000 PORT ErrorValue:"-9999" FIN_BOX BOX wx:OutputText:Box41 ISEXEC:FALSE --154.281929:-122.188350:-900.000000 --117.506929:-132.188350:-900.000000 +-72.728513:-33.674183:-900.000000 +-51.058513:-36.174183:-900.000000 PORT Title:"Slice Location" FIN_BOX BOX std:MagicBox:Box42 ISEXEC:FALSE -335.931963:92.060897:-900.000000 -372.006963:82.060897:-900.000000 +198.224946:25.732613:-900.000000 +219.824946:23.232613:-900.000000 FIN_BOX BOX wx:LayoutLine:Box43 ISEXEC:FALSE -15.490400:-159.213039:-900.000000 -73.050400:-169.213039:-900.000000 +10.843280:-47.763912:-900.000000 +44.163280:-50.263912:-900.000000 PORT WinTitle:"Image" FIN_BOX BOX std:MathOperationVector:Box45 ISEXEC:FALSE -76.185811:-40.265742:-900.000000 -123.710811:-50.265742:-900.000000 +53.330068:-12.079723:-900.000000 +77.850068:-14.579723:-900.000000 PORT Type:"1" FIN_BOX BOX wx:OutputText:Box46 ISEXEC:FALSE -44.517616:-109.343866:-900.000000 -81.292616:-119.343866:-900.000000 +39.647783:-37.674438:-900.000000 +61.317783:-40.174438:-900.000000 PORT Title:"Position" FIN_BOX BOX std:ConcatStrings:Box47 ISEXEC:FALSE --39.212616:103.224036:-900.000000 -0.512384:93.224036:-900.000000 -FIN_BOX -BOX -std:MathOperationVector:Box49 -ISEXEC:FALSE --82.813370:-70.757278:-900.000000 --35.288370:-80.757278:-900.000000 +1.201353:31.394154:-900.000000 +23.961353:28.894154:-900.000000 FIN_BOX BOX std:ConcatStrings:Box51 ISEXEC:FALSE -53.411499:-17.673116:-900.000000 -93.136499:-27.673116:-900.000000 +37.388049:-5.301935:-900.000000 +60.148049:-7.801935:-900.000000 FIN_BOX BOX wx:OutputText:Box52 ISEXEC:FALSE -101.356149:-110.457707:-900.000000 -138.131149:-120.457707:-900.000000 +69.535062:-37.851452:-900.000000 +91.205062:-40.351452:-900.000000 PORT Title:"Position Correction" FIN_BOX -CONNECTIONS:63 +CONNECTIONS:64 CONNECTION Box02:Out:Box04:In NumberOfControlPoints:0 @@ -519,4 +517,7 @@ NumberOfControlPoints:0 CONNECTION Box30:Out:Box52:BoxExecute NumberOfControlPoints:0 +CONNECTION +Box14:boxChangeImageActor:boxChange_ImageActor:boxChange_ImageActor +NumberOfControlPoints:0 APP_END diff --git a/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbs b/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbs index d83624c..7dfc5c7 100644 --- a/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbs +++ b/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbs @@ -1,6 +1,6 @@ # ---------------------------------- -# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) -# - /home/davila/CreatisWorks/Transform3Ddicom/Transform3Ddicom/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbs +# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/C23/creatools_source/creaImageIO/bbtk_Transform3Ddicom_PKG/bbs/boxes/SliceVectorImageDicom3D.bbs # ---------------------------------- include std @@ -113,8 +113,6 @@ new wx:OutputText Box46 new std:ConcatStrings Box47 -new std:MathOperationVector Box49 - new std:ConcatStrings Box51 new wx:OutputText Box52 @@ -188,6 +186,7 @@ output image Box12.Out " " output _widget Box23.Widget " " output OutTransform Box14.outTransform " " output renderer Box24.Renderer1 " " +output boxChange_ImageActor Box14.boxChangeImageActor " " endefine diff --git a/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbg b/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbg index 9a7c8c4..60daa82 100644 --- a/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbg +++ b/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbg @@ -10,7 +10,7 @@ AUTHOR:Author ?? COMPLEXBOX:TRUE COMPLEXBOXNAME:ViewerPlaneContourDicom3D PACKAGENAME:Transform3Ddicom -COMPLEXOUTPUTS:3 +COMPLEXOUTPUTS:4 COMPLEX_PORT widgetControls -84.060941:-204.994795:-900.000000 @@ -21,48 +21,52 @@ widget2D FIN_COMPLEX_PORT COMPLEX_PORT boxExecuteForRender --49.536060:-206.347454:-900.000000 +-47.258409:-204.575948:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxchange_imageactor +-0.099143:-206.170829:-900.000000 FIN_COMPLEX_PORT COMPLEXINPUTS:10 COMPLEX_PORT lstDirInstans -134.554596:158.419878:-900.000000 +129.622933:112.689909:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT StartPlane -94.490381:158.104978:-900.000000 +89.558718:112.375009:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT TitleWidget -49.582729:157.998052:-900.000000 +44.651066:112.268083:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT boxchange -13.464874:157.988783:-900.000000 +8.533211:112.258814:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT iPlane --32.774563:156.436618:-900.000000 +-37.706226:110.706649:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT render3D --244.040378:153.664634:-900.000000 +-210.998233:107.934665:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT surfExternal --121.654895:151.087396:-900.000000 +-88.612750:105.357427:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT surfInternal --185.604285:149.859505:-900.000000 +-152.562140:104.129536:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT TransformRefForSurface -204.340279:161.889514:-900.000000 +199.408616:116.159545:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT dicomExtension -168.972818:157.725063:-900.000000 +164.041155:111.995094:-900.000000 FIN_COMPLEX_PORT BOXES:50 BOX @@ -104,28 +108,28 @@ FIN_BOX BOX vtk:Transform:Box73 ISEXEC:FALSE -175.601205:70.490192:-900.000000 -197.156205:67.990192:-900.000000 +182.733243:67.499337:-900.000000 +204.288243:64.999337:-900.000000 PORT Scale:"1 1 1" FIN_BOX BOX creaVtk:ConcatTransform:Box75 ISEXEC:FALSE -149.519381:63.466426:-900.000000 -171.799381:60.966426:-900.000000 +144.688001:53.803665:-900.000000 +166.968001:51.303665:-900.000000 FIN_BOX BOX std:GetVectorStringElement:Box119 ISEXEC:FALSE -18.986212:51.989100:-900.000000 -42.051212:49.489100:-900.000000 +21.516935:49.688443:-900.000000 +44.581935:47.188443:-900.000000 FIN_BOX BOX wx:LayoutLine:Box121 ISEXEC:FALSE --68.249205:-10.357772:-900.000000 --34.929205:-12.857772:-900.000000 +-73.260037:-14.811845:-900.000000 +-39.940037:-17.311845:-900.000000 FIN_BOX BOX wx:Slider:Box124 @@ -156,14 +160,14 @@ FIN_BOX BOX wx:LayoutTab:Box126 ISEXEC:FALSE --74.495641:-20.173109:-900.000000 --41.175641:-22.673109:-900.000000 +-76.444298:-26.575838:-900.000000 +-43.124298:-29.075838:-900.000000 FIN_BOX BOX std:MultipleInputs:Box129 ISEXEC:FALSE --39.125102:-34.471580:-900.000000 --17.045102:-36.971580:-900.000000 +-44.789993:-41.636879:-900.000000 +-22.709993:-44.136879:-900.000000 FIN_BOX BOX vtk:PolyDataToActor:Box130 @@ -182,8 +186,8 @@ FIN_BOX BOX creaVtk:Plane:Box131 ISEXEC:FALSE -12.466651:-103.661504:-900.000000 -33.741651:-106.161504:-900.000000 +18.312621:-103.939884:-900.000000 +39.587621:-106.439884:-900.000000 PORT Origin:"0 0 35" FIN_BOX @@ -210,20 +214,20 @@ FIN_BOX BOX creaVtk:ApplyTransformToPoint3D:Box136 ISEXEC:FALSE -30.408803:-93.052069:-900.000000 -53.583803:-95.552069:-900.000000 +18.160103:-94.165587:-900.000000 +41.335103:-96.665587:-900.000000 FIN_BOX BOX std:MultipleInputs:Box151 ISEXEC:FALSE --24.851833:-173.151333:-900.000000 --2.771833:-175.651333:-900.000000 +-24.851833:-171.391237:-900.000000 +-2.771833:-173.891237:-900.000000 FIN_BOX BOX creaVtk:ConcatTransform:Box152 ISEXEC:FALSE -75.953157:-139.888296:-900.000000 -98.343157:-142.388296:-900.000000 +103.512732:-139.331537:-900.000000 +125.902732:-141.831537:-900.000000 FIN_BOX BOX vtk:Transform:Box153 @@ -260,54 +264,54 @@ FIN_BOX BOX std:MagicBox:Box145 ISEXEC:FALSE -131.859441:137.712122:-900.000000 -153.569441:135.212122:-900.000000 +126.927778:91.982153:-900.000000 +148.637778:89.482153:-900.000000 FIN_BOX BOX std:MagicBox:Box146 ISEXEC:FALSE -5.645699:135.217701:-900.000000 -27.355699:132.717701:-900.000000 +0.714036:89.487732:-900.000000 +22.424036:86.987732:-900.000000 FIN_BOX BOX std:MagicBox:Box147 ISEXEC:FALSE --42.691914:135.290500:-900.000000 --20.981914:132.790500:-900.000000 +-47.623577:89.560531:-900.000000 +-25.913577:87.060531:-900.000000 FIN_BOX BOX std:MagicBox:Box148 ISEXEC:FALSE --247.979730:132.258948:-900.000000 --226.269730:129.758948:-900.000000 +-214.937585:86.528979:-900.000000 +-193.227585:84.028979:-900.000000 FIN_BOX BOX std:ConcatStrings:Box150 ISEXEC:FALSE -43.771154:135.347840:-900.000000 -66.531154:132.847840:-900.000000 +38.839491:89.617871:-900.000000 +61.599491:87.117871:-900.000000 PORT In1:"Plan" FIN_BOX BOX std:ConcatStrings:Box160 ISEXEC:FALSE -90.488236:136.439725:-900.000000 -113.248236:133.939725:-900.000000 +85.556573:90.709756:-900.000000 +108.316573:88.209756:-900.000000 PORT In1:"0" FIN_BOX BOX std:MagicBox:Box161 ISEXEC:FALSE --129.532916:134.451785:-900.000000 --107.822916:131.951785:-900.000000 +-96.490771:88.721816:-900.000000 +-74.780771:86.221816:-900.000000 FIN_BOX BOX std:MagicBox:Box53 ISEXEC:FALSE --190.262842:132.955833:-900.000000 --168.662842:130.455833:-900.000000 +-157.220697:87.225864:-900.000000 +-135.620697:84.725864:-900.000000 FIN_BOX BOX creaVtk:Cutter:Box54 @@ -420,22 +424,22 @@ FIN_BOX BOX std:MagicBox:Box67 ISEXEC:FALSE -199.016591:107.120895:-900.000000 -220.616591:104.620895:-900.000000 +194.981594:92.774238:-900.000000 +216.581594:90.274238:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box51 ISEXEC:FALSE --125.141187:-20.915054:-900.000000 --103.116187:-23.415054:-900.000000 +-115.119524:-23.698849:-900.000000 +-93.094524:-26.198849:-900.000000 PORT Active:"true" FIN_BOX BOX std:MultipleInputs:Box52 ISEXEC:FALSE --117.850846:-9.143315:-900.000000 --95.880846:-11.643315:-900.000000 +-111.169737:-12.483869:-900.000000 +-89.199737:-14.983869:-900.000000 FIN_BOX BOX std:ConcatStrings:Box68 @@ -464,22 +468,22 @@ FIN_BOX BOX wx:ComboBox:Box71 ISEXEC:FALSE --68.864436:61.633129:-900.000000 --42.584436:59.133129:-900.000000 +-64.493187:53.580828:-900.000000 +-38.213187:51.080828:-900.000000 FIN_BOX BOX std:SplitFilePathVector:Box72 ISEXEC:FALSE -97.932044:77.139337:-900.000000 -120.352044:74.639337:-900.000000 +-65.874760:68.626905:-900.000000 +-43.454760:66.126905:-900.000000 FIN_BOX BOX std:MagicBox:Box74 ISEXEC:FALSE -163.986516:137.771829:-900.000000 -185.586516:135.271829:-900.000000 +159.054853:92.041860:-900.000000 +180.654853:89.541860:-900.000000 FIN_BOX -CONNECTIONS:92 +CONNECTIONS:94 CONNECTION Box24:DicomInfo:Box11:VecDicomMap NumberOfControlPoints:0 @@ -756,4 +760,10 @@ NumberOfControlPoints:0 CONNECTION Box160:Out:Box71:Selection NumberOfControlPoints:0 +CONNECTION +Box11:boxChange_ImageActor:boxchange_imageactor:boxchange_imageactor +NumberOfControlPoints:0 +CONNECTION +Box11:boxChange_ImageActor:Box151:In5 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbs b/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbs index 2576238..e0d9b4a 100644 --- a/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbs +++ b/bbtk_Transform3Ddicom_PKG/bbs/boxes/ViewerPlaneContourDicom3D.bbs @@ -256,6 +256,7 @@ connect Box71.Out Box119.I connect Box71.BoxChange Box52.In3 connect Box71.BoxChange Box129.In4 connect Box160.Out Box71.Selection +connect Box11.boxChange_ImageActor Box151.In5 # Complex input ports input lstDirInstans Box145.In " " @@ -273,6 +274,7 @@ input dicomExtension Box74.In " " output widgetControls Box126.Widget " " output widget2D Box11._widget " " output boxExecuteForRender Box151.BoxChange " " +output boxchange_imageactor Box11.boxChange_ImageActor " " endefine diff --git a/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbg b/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbg index 504f0f0..aa6b86b 100644 --- a/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbg +++ b/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbg @@ -1,6 +1,6 @@ # ---------------------------------- -# - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/davila/CreatisWorks/Transform3Ddicom/Transform3Ddicom/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbg +# - BBTKGEditor v 1.5 BBG BlackBox Diagram file +# - /Users/davila/Creatis/C23/creatools_source/creaImageIO/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbg # ---------------------------------- APP_START @@ -10,64 +10,68 @@ AUTHOR:davila.eduardo@creatis.univ-lyon1.fr COMPLEXBOX:TRUE COMPLEXBOXNAME:ImageActorDicom PACKAGENAME:Transform3Ddicom -COMPLEXOUTPUTS:3 +COMPLEXOUTPUTS:4 COMPLEX_PORT Out --22.580539:-191.276628:-900.000000 +-13.806439:-57.954399:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT widget --102.458530:-190.978864:-900.000000 +-75.292289:-57.007954:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT outTransform -59.438055:-186.470820:-900.000000 +-38.533738:-57.798331:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxChangeImageActor +-21.818610:-57.556076:-900.000000 FIN_COMPLEX_PORT COMPLEXINPUTS:8 COMPLEX_PORT IPP --97.577691:105.411996:-900.000000 +-60.526053:31.969302:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT OPP --51.103223:101.663885:-900.000000 +-30.240999:31.017721:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT PixelSpacing -0.411126:100.172339:-900.000000 +0.287788:30.051702:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT Z -77.418921:101.075256:-900.000000 +47.452025:30.668280:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT Image -146.113088:98.206537:-900.000000 +76.869948:27.214888:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT Renderer -168.522158:95.627372:-900.000000 +116.064141:29.725322:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT boxexecute --134.102954:101.827186:-900.000000 +-90.069328:30.721008:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT opacity --186.491998:105.993763:-900.000000 +-113.432071:29.723907:-900.000000 FIN_COMPLEX_PORT -BOXES:23 +BOXES:22 BOX std:MagicBox:magicboxZ ISEXEC:FALSE -68.675753:74.710523:-900.000000 -104.750753:64.710523:-900.000000 +40.640400:15.844789:-900.000000 +62.765400:13.344789:-900.000000 FIN_BOX BOX std:ConcatStrings:strCat ISEXEC:FALSE -6.768675:37.526144:-900.000000 -46.293675:27.526144:-900.000000 +13.034959:6.936548:-900.000000 +35.794959:4.436548:-900.000000 PORT In1:"0 " PORT @@ -76,32 +80,32 @@ FIN_BOX BOX Transform3Ddicom:NewDicomImaPosPat:ndipp ISEXEC:FALSE --23.803821:-0.410982:-900.000000 -23.096179:-10.410982:-900.000000 +-16.662675:-0.123295:-900.000000 +6.032325:-2.623295:-900.000000 FIN_BOX BOX Transform3Ddicom:TransformSimple:ts ISEXEC:FALSE --15.704031:-55.156027:-900.000000 -22.020969:-65.156027:-900.000000 +-10.992822:-16.546808:-900.000000 +10.792178:-19.046808:-900.000000 FIN_BOX BOX creaMaracasVisu:ImageActor:actor ISEXEC:FALSE --22.279183:-162.519843:-900.000000 -15.670817:-172.519843:-900.000000 +-15.595428:-48.755953:-900.000000 +6.139572:-51.255953:-900.000000 FIN_BOX BOX std:MagicBox:Box11 ISEXEC:FALSE --129.830737:32.760280:-900.000000 --93.755737:22.760280:-900.000000 +-90.881516:9.828084:-900.000000 +-69.281516:7.328084:-900.000000 FIN_BOX BOX creaMaracasVisu:DrawAxisTree3D:Box10 ISEXEC:FALSE -75.996292:-96.671176:-900.000000 -117.821292:-106.671176:-900.000000 +53.197404:-29.001353:-900.000000 +81.237404:-31.501353:-900.000000 PORT ColourLaw:"2" PORT @@ -116,110 +120,102 @@ FIN_BOX BOX Transform3Ddicom:CreateAxesTreeData:Box12 ISEXEC:FALSE -53.900495:-40.298824:-900.000000 -100.350495:-50.298824:-900.000000 +37.730346:-12.089647:-900.000000 +60.375346:-14.589647:-900.000000 FIN_BOX BOX std:MagicBox:Box13 ISEXEC:FALSE -183.192815:67.125154:-900.000000 -219.267815:57.125154:-900.000000 +110.085532:15.124844:-900.000000 +131.685532:12.624844:-900.000000 FIN_BOX BOX vtk:ImageVtkProperties:Box14 ISEXEC:FALSE -51.995790:-11.469660:-900.000000 -97.345790:-21.469660:-900.000000 +36.397053:-3.440898:-900.000000 +58.932053:-5.940898:-900.000000 FIN_BOX BOX creaVtk:ConcatTransform:Box15 ISEXEC:FALSE --57.107264:-105.151538:-900.000000 --14.307264:-115.151538:-900.000000 +-39.975085:-31.545461:-900.000000 +-17.695085:-34.045461:-900.000000 FIN_BOX BOX vtk:TransformWidget:Box16 ISEXEC:FALSE --113.922675:-52.774113:-900.000000 --71.547675:-62.774113:-900.000000 +-79.745872:-15.832234:-900.000000 +-57.510872:-18.332234:-900.000000 PORT TitleWindow:"Transform" FIN_BOX BOX std:MultipleInputs:Box17 ISEXEC:FALSE --127.882155:-114.693539:-900.000000 --88.182155:-124.693539:-900.000000 +-99.517199:-31.979565:-900.000000 +-77.547199:-34.479565:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box18 ISEXEC:FALSE --86.146344:-166.577827:-900.000000 --45.821344:-176.577827:-900.000000 +-59.956737:-46.343460:-900.000000 +-37.931737:-48.843460:-900.000000 PORT Active:"true" FIN_BOX BOX -wx:OutputText:Box19 -ISEXEC:FALSE --153.587851:-146.322271:-900.000000 --116.812851:-156.322271:-900.000000 -PORT -In:"ups" -FIN_BOX -BOX vtk:Transform:Box20 ISEXEC:FALSE --162.946513:-53.080408:-900.000000 --127.371513:-63.080408:-900.000000 +-114.062559:-15.924122:-900.000000 +-92.507559:-18.424122:-900.000000 PORT Translate:"-130 -114 0" FIN_BOX BOX vtk:Transform:Box21 ISEXEC:FALSE --60.832803:-55.144106:-900.000000 --25.257803:-65.144106:-900.000000 +-42.582962:-16.543232:-900.000000 +-21.027962:-19.043232:-900.000000 PORT Translate:"130 114 0" FIN_BOX BOX std:ConcatStrings:Box23 ISEXEC:FALSE --54.406756:66.940383:-900.000000 --14.681756:56.940383:-900.000000 +-32.553472:11.958081:-900.000000 +-9.793472:9.458081:-900.000000 FIN_BOX BOX std:ConcatStrings:Box24 ISEXEC:FALSE --109.505146:65.313515:-900.000000 --69.780146:55.313515:-900.000000 +-63.344014:10.778613:-900.000000 +-40.584014:8.278613:-900.000000 FIN_BOX BOX std:ConcatStrings:Box25 ISEXEC:FALSE --7.271279:70.555787:-900.000000 -32.453721:60.555787:-900.000000 +-4.225636:13.388405:-900.000000 +18.534364:10.888405:-900.000000 FIN_BOX BOX std:MagicBox:Box27 ISEXEC:FALSE --184.425562:63.976237:-900.000000 --148.350562:53.976237:-900.000000 +-117.171120:10.895985:-900.000000 +-95.571120:8.395985:-900.000000 FIN_BOX BOX creaMaracasVisu:SliceImage:Box28 ISEXEC:FALSE -61.458724:26.789468:-900.000000 -98.683724:16.789468:-900.000000 +43.021107:8.036840:-900.000000 +64.746107:5.536840:-900.000000 FIN_BOX BOX vtk:vtkImageDataPointerRelay:Box29 ISEXEC:FALSE -132.667432:70.161670:-900.000000 -184.842432:60.161670:-900.000000 +72.816394:14.307281:-900.000000 +96.026394:11.807281:-900.000000 FIN_BOX -CONNECTIONS:49 +CONNECTIONS:50 CONNECTION magicboxZ:Out:strCat:In3 NumberOfControlPoints:0 @@ -367,4 +363,7 @@ NumberOfControlPoints:0 CONNECTION Box28:Out:ts:InImage NumberOfControlPoints:0 +CONNECTION +actor:BoxChange:boxChangeImageActor:boxChangeImageActor +NumberOfControlPoints:0 APP_END diff --git a/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbs b/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbs index 81837df..25264de 100644 --- a/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbs +++ b/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbs @@ -1,6 +1,6 @@ # ---------------------------------- -# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) -# - /home/davila/CreatisWorks/Transform3Ddicom/Transform3Ddicom/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbs +# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/C23/creatools_source/creaImageIO/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbImageActorDicom.bbs # ---------------------------------- include std @@ -10,7 +10,6 @@ include Transform3Ddicom include creaMaracasVisu include vtk include creaVtk -include wx define ImageActorDicom Transform3Ddicom @@ -56,9 +55,6 @@ new std:MultipleInputs Box17 new vtk:UpdateRender Box18 set Box18.Active "true" -new wx:OutputText Box19 - set Box19.In "ups" - new vtk:Transform Box20 set Box20.Translate "-130 -114 0" @@ -131,6 +127,7 @@ input Image Box29.In " " output Out actor.Out " " output widget Box16.Window " " output outTransform Box15.Out " " +output boxChangeImageActor actor.BoxChange " " endefine -- 2.47.1