# ----------------------------------
# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
-# - /home/garzon/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_Application.bbg
+# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_Application.bbg
# ----------------------------------
APP_START
MeshOut
-42.369841:-162.975814:-900.000000
FIN_COMPLEX_PORT
-COMPLEXINPUTS:9
+COMPLEXINPUTS:11
COMPLEX_PORT
MeshIn
-47.090275:91.551362:-900.000000
wxvtkbaseview4_In
206.922345:93.364879:-900.000000
FIN_COMPLEX_PORT
-BOXES:72
+COMPLEX_PORT
+BaseImageFileName_ExMa
+312.086632:91.809344:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+OutDir_ExMa
+334.933146:91.638847:-900.000000
+FIN_COMPLEX_PORT
+BOXES:74
BOX
creaMaracasVisu:ImageChangeInformation:Box07
ISEXEC:FALSE
BOX
creaMaracasVisu:Mesh_tool_ApplySurface:Box10
ISEXEC:FALSE
-2.455835:-6.388424:-900.000000
-25.480835:-8.888424:-900.000000
+95.483097:7.298827:-900.000000
+118.508097:4.798827:-900.000000
PORT
title:"Surface"
FIN_BOX
BOX
wx:LayoutLine:Box14
ISEXEC:FALSE
--34.558347:-6.679515:-900.000000
--1.238347:-9.179515:-900.000000
+56.199608:7.688528:-900.000000
+89.519608:5.188528:-900.000000
PORT
WinTitle:"Nothing"
FIN_BOX
BOX
creaMaracasVisu:Mesh_tool_ApplyPatch:Box38
ISEXEC:FALSE
-32.150859:-6.156547:-900.000000
-54.990859:-8.656547:-900.000000
+148.857701:7.327575:-900.000000
+171.697701:4.827575:-900.000000
PORT
title:"Patch"
FIN_BOX
BOX
creaMaracasVisu:Mesh_tool_ApplyByImage:Box46
ISEXEC:FALSE
-64.137604:-5.148169:-900.000000
-87.292604:-7.648169:-900.000000
+181.217392:7.190257:-900.000000
+204.372392:4.690257:-900.000000
PORT
title:"By Image"
FIN_BOX
BOX
creaMaracasVisu:Mesh_tool_ApplyDeformation:Box47
ISEXEC:FALSE
-100.295941:-5.968439:-900.000000
-123.785941:-8.468439:-900.000000
+217.375729:6.369987:-900.000000
+240.865729:3.869987:-900.000000
PORT
title:"Deformation"
FIN_BOX
BOX
creaMaracasVisu:Mesh_tool_ApplyThresholdConnectivity:Box70
ISEXEC:FALSE
-152.701645:-6.897257:-900.000000
-177.141645:-9.397257:-900.000000
+269.781433:5.441169:-900.000000
+294.221433:2.941169:-900.000000
PORT
title:"Threshold"
FIN_BOX
BOX
std:GetVectorStringElement:Box71
ISEXEC:FALSE
-33.287611:-45.080314:-900.000000
-56.242611:-47.580314:-900.000000
+27.670016:-38.441338:-900.000000
+50.625016:-40.941338:-900.000000
PORT
I:"5"
FIN_BOX
BOX
creaMaracasVisu:InteractorStyleMaracas_Model:Box72
ISEXEC:FALSE
-35.742663:-62.102066:-900.000000
-59.347663:-64.602066:-900.000000
+201.717061:-61.080685:-900.000000
+225.322061:-63.580685:-900.000000
FIN_BOX
BOX
creaMaracasVisu:Mesh_tool_ApplyExternalMask:Box73
ISEXEC:FALSE
-205.265688:-6.222912:-900.000000
-228.840688:-8.722912:-900.000000
+322.345476:6.115514:-900.000000
+345.920476:3.615514:-900.000000
PORT
title:"External Mask"
FIN_BOX
BOX
creaMaracasVisu:Mesh_tool_ApplyCut:Box74
ISEXEC:FALSE
-245.605306:-5.522601:-900.000000
-268.230306:-8.022601:-900.000000
+123.630594:6.937584:-900.000000
+146.255594:4.437584:-900.000000
PORT
title:"Cut"
FIN_BOX
-45.393590:-134.654487:-900.000000
-23.113590:-137.154487:-900.000000
FIN_BOX
-CONNECTIONS:195
+BOX
+std:MagicBox:Box95
+ISEXEC:FALSE
+305.266778:75.271196:-900.000000
+326.866778:72.771196:-900.000000
+FIN_BOX
+BOX
+std:MagicBox:Box96
+ISEXEC:FALSE
+332.054005:75.644815:-900.000000
+353.654005:73.144815:-900.000000
+FIN_BOX
+CONNECTIONS:199
CONNECTION
Box08:MeshBase:Box15:polydata
NumberOfControlPoints:0
CONNECTION
Box08:MeshSelection:Box79:Selection
NumberOfControlPoints:0
+CONNECTION
+BaseImageFileName_ExMa:BaseImageFileName_ExMa:Box95:In
+NumberOfControlPoints:0
+CONNECTION
+OutDir_ExMa:OutDir_ExMa:Box96:In
+NumberOfControlPoints:0
+CONNECTION
+Box95:Out:Box73:BaseImageFileName
+NumberOfControlPoints:0
+CONNECTION
+Box96:Out:Box73:OutDir
+NumberOfControlPoints:0
APP_END
# ----------------------------------
# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
-# - /home/garzon/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_Application.bbs
+# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_Application.bbs
# ----------------------------------
include std
new vtk:AppendPolyData Box94
+new std:MagicBox Box95
+
+new std:MagicBox Box96
+
connect Box08.MeshBase Box15.polydata
connect Box08.MeshTemp Box10.mesh
connect Box82.Widget Box93.Widget4
connect Box08.AllPolyDatas Box94.InVector
connect Box08.MeshSelection Box79.Selection
+connect Box95.Out Box73.BaseImageFileName
+connect Box96.Out Box73.OutDir
# Complex input ports
input MeshIn Box56.In " "
input wxvtkbaseview2_In Box67.In " "
input wxvtkbaseview3_In Box68.In " "
input wxvtkbaseview4_In Box69.In " "
+input BaseImageFileName_ExMa Box95.In " "
+input OutDir_ExMa Box96.In " "
# Complex output ports
output WidgetOut Box11.Widget " "
# ----------------------------------
# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
-# - /home/garzon/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbg
+# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbg
# ----------------------------------
APP_START
widget
-190.515959:-183.832070:-900.000000
FIN_COMPLEX_PORT
-COMPLEXINPUTS:9
+COMPLEXINPUTS:11
COMPLEX_PORT
boxChange
-6.086529:137.355528:-900.000000
meshmanagermodel
-131.800179:136.578564:-900.000000
FIN_COMPLEX_PORT
-BOXES:52
+COMPLEX_PORT
+BaseImageFileName
+-334.875060:137.005743:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+OutDir
+-306.137122:136.559941:-900.000000
+FIN_COMPLEX_PORT
+BOXES:73
BOX
wx:LayoutLine:Box08
ISEXEC:FALSE
FIN_BOX
BOX
creaVtk:MeshManager_tool:Box45
-ISEXEC:FALSE
+ISEXEC:TRUE
-88.859950:-132.940417:-900.000000
-66.359950:-135.440417:-900.000000
PORT
BOX
wx:ButtonSelectFilesDirectory:Box52
ISEXEC:FALSE
--396.842223:17.625198:-900.000000
--367.042223:15.125198:-900.000000
+-424.946739:18.218955:-900.000000
+-395.146739:15.718955:-900.000000
PORT
Label:"Read .mhd"
FIN_BOX
BOX
vtk:MetaImageReader:Box53
ISEXEC:FALSE
--406.322619:6.304432:-900.000000
--383.862619:3.804432:-900.000000
+-439.937827:4.474274:-900.000000
+-417.477827:1.974274:-900.000000
FIN_BOX
BOX
creaMaracasVisu:ColorLayerImageView:Box54
PORT
WinTitle:"Apply Changes"
FIN_BOX
-CONNECTIONS:80
+BOX
+std:ConcatStrings:Box78
+ISEXEC:FALSE
+-172.069744:122.723984:-900.000000
+-149.309744:120.223984:-900.000000
+FIN_BOX
+BOX
+wx:CommandButton:Box86
+ISEXEC:FALSE
+-420.157760:107.575729:-900.000000
+-397.882760:105.075729:-900.000000
+PORT
+Label:"Run Contour Application"
+FIN_BOX
+BOX
+std:ExecSystemCommand:Box94
+ISEXEC:FALSE
+-328.364289:26.520030:-900.000000
+-305.529289:24.020030:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box95
+ISEXEC:FALSE
+-304.695712:94.312863:-900.000000
+-281.935712:91.812863:-900.000000
+PORT
+In1:"bbi ia-01/ia-000302-contour.bbs "
+PORT
+In2:"BaseImageFileName="
+PORT
+In4:" OutDir="
+FIN_BOX
+BOX
+std:StringSelect:Box101
+ISEXEC:FALSE
+-313.066927:72.210668:-900.000000
+-288.546927:69.710668:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box102
+ISEXEC:FALSE
+-296.237448:88.437715:-900.000000
+-273.477448:85.937715:-900.000000
+PORT
+In1:"start /b "
+FIN_BOX
+BOX
+std:Configuration:Box103
+ISEXEC:FALSE
+-324.534424:85.426781:-900.000000
+-302.484424:82.926781:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box104
+ISEXEC:FALSE
+-337.598228:122.936041:-900.000000
+-314.838228:120.436041:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box105
+ISEXEC:FALSE
+-311.508485:123.201163:-900.000000
+-288.748485:120.701163:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box106
+ISEXEC:FALSE
+-365.124819:103.220752:-900.000000
+-342.364819:100.720752:-900.000000
+PORT
+In2:"contour-tmp-Imge.mhd"
+FIN_BOX
+BOX
+creaVtk:PolyDataToImageData:Box107
+ISEXEC:FALSE
+-351.859879:70.526457:-900.000000
+-328.949879:68.026457:-900.000000
+FIN_BOX
+BOX
+vtk:MetaImageWriter:Box108
+ISEXEC:FALSE
+-362.600781:40.666646:-900.000000
+-340.180781:38.166646:-900.000000
+PORT
+Compression:"true"
+FIN_BOX
+BOX
+vtk:CreateImage:Box109
+ISEXEC:FALSE
+-352.988123:81.417717:-900.000000
+-330.948123:78.917717:-900.000000
+FIN_BOX
+BOX
+vtk:ImageVtkProperties:Box110
+ISEXEC:FALSE
+-355.585600:90.824537:-900.000000
+-332.940600:88.324537:-900.000000
+FIN_BOX
+BOX
+creaVtk:MeshManager:Box113
+ISEXEC:FALSE
+-397.027004:101.635607:-900.000000
+-374.887004:99.135607:-900.000000
+FIN_BOX
+BOX
+creaVtk:MeshManager_tool:Box114
+ISEXEC:FALSE
+-393.995128:78.559698:-900.000000
+-371.385128:76.059698:-900.000000
+PORT
+Tool:"35"
+FIN_BOX
+BOX
+std:ConcatStrings:Box115
+ISEXEC:FALSE
+-318.626425:46.511085:-900.000000
+-295.866425:44.011085:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings_tool:Box116
+ISEXEC:FALSE
+-335.363634:36.374532:-900.000000
+-312.813634:33.874532:-900.000000
+PORT
+Type:"1"
+FIN_BOX
+BOX
+std:MultipleInputs:Box117
+ISEXEC:FALSE
+-373.321430:16.060843:-900.000000
+-351.241430:13.560843:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box120
+ISEXEC:FALSE
+-375.149923:60.105924:-900.000000
+-352.389923:57.605924:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings_tool:Box121
+ISEXEC:FALSE
+-374.372506:47.179429:-900.000000
+-351.822506:44.679429:-900.000000
+PORT
+Type:"1"
+FIN_BOX
+CONNECTIONS:113
CONNECTION
Box08:Widget:widget:widget
NumberOfControlPoints:0
Box35:Out:Box68:In
NumberOfControlPoints:0
CONNECTION
-title:title:Box08:WinTitle
-NumberOfControlPoints:0
-CONNECTION
Box66:Out:Box37:render
NumberOfControlPoints:0
CONNECTION
Box69:Out:Box54:WxVtkBaseView2
NumberOfControlPoints:0
CONNECTION
-Box54:Widget:Box50:Widget4
-NumberOfControlPoints:0
-CONNECTION
Box52:BoxChange:Box56:BoxExecute
NumberOfControlPoints:0
CONNECTION
CONNECTION
Box42:Widget:Box77:Widget2
NumberOfControlPoints:0
+CONNECTION
+title:title:Box78:In1
+NumberOfControlPoints:0
+CONNECTION
+Box78:Out:Box08:WinTitle
+NumberOfControlPoints:0
+CONNECTION
+Box54:Widget:Box50:Widget7
+NumberOfControlPoints:0
+CONNECTION
+Box86:Widget:Box50:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box95:Out:Box101:In0
+NumberOfControlPoints:0
+CONNECTION
+Box95:Out:Box102:In2
+NumberOfControlPoints:0
+CONNECTION
+Box102:Out:Box101:In1
+NumberOfControlPoints:0
+CONNECTION
+Box95:Out:Box101:In2
+NumberOfControlPoints:0
+CONNECTION
+Box103:SystemType:Box101:In
+NumberOfControlPoints:0
+CONNECTION
+BaseImageFileName:BaseImageFileName:Box104:In1
+NumberOfControlPoints:0
+CONNECTION
+OutDir:OutDir:Box105:In1
+NumberOfControlPoints:0
+CONNECTION
+Box104:Out:Box95:In3
+NumberOfControlPoints:0
+CONNECTION
+Box105:Out:Box95:In5
+NumberOfControlPoints:0
+CONNECTION
+Box105:Out:Box106:In1
+NumberOfControlPoints:0
+CONNECTION
+Box107:Out:Box108:In
+NumberOfControlPoints:0
+CONNECTION
+Box109:Out:Box107:InImage
+NumberOfControlPoints:0
+CONNECTION
+Box110:TypeName:Box109:OutputFormat
+NumberOfControlPoints:0
+CONNECTION
+Box110:Spacing:Box109:Spacing
+NumberOfControlPoints:0
+CONNECTION
+Box110:Size:Box109:Dimensions
+NumberOfControlPoints:0
+CONNECTION
+Box113:MeshManagerModel:Box114:MeshManagerModel
+NumberOfControlPoints:0
+CONNECTION
+Box67:Out:Box114:Mesh
+NumberOfControlPoints:0
+CONNECTION
+Box35:Out:Box110:In
+NumberOfControlPoints:0
+CONNECTION
+Box113:MeshBase:Box107:InPolyData
+NumberOfControlPoints:0
+CONNECTION
+Box115:Out:Box94:In
+NumberOfControlPoints:0
+CONNECTION
+Box101:Out:Box116:In1
+NumberOfControlPoints:0
+CONNECTION
+Box115:Box_ConcatStrings:Box116:Box_ConcatString
+NumberOfControlPoints:0
+CONNECTION
+Box86:BoxChange:Box117:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box114:BoxChange:Box117:In1
+NumberOfControlPoints:0
+CONNECTION
+Box106:Out:Box121:In1
+NumberOfControlPoints:0
+CONNECTION
+Box120:Box_ConcatStrings:Box121:Box_ConcatString
+NumberOfControlPoints:0
+CONNECTION
+Box120:Out:Box108:Filename
+NumberOfControlPoints:0
+CONNECTION
+Box116:BoxChange:Box117:In5
+NumberOfControlPoints:0
+CONNECTION
+Box121:BoxChange:Box117:In2
+NumberOfControlPoints:0
+CONNECTION
+Box108:BoxChange:Box117:In6
+NumberOfControlPoints:0
+CONNECTION
+Box108:BoxChange:Box94:BoxExecute
+NumberOfControlPoints:0
APP_END
# ----------------------------------
# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
-# - /home/garzon/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbs
+# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyExternalMask.bbs
# ----------------------------------
include std
set Box77.Orientation "V"
set Box77.WinTitle "Apply Changes"
+new std:ConcatStrings Box78
+
+new wx:CommandButton Box86
+ set Box86.Label "Run Contour Application"
+
+new std:ExecSystemCommand Box94
+
+new std:ConcatStrings Box95
+ set Box95.In1 "bbi ia-01/ia-000302-contour.bbs "
+ set Box95.In2 "BaseImageFileName="
+ set Box95.In4 " OutDir="
+
+new std:StringSelect Box101
+
+new std:ConcatStrings Box102
+ set Box102.In1 "start /b "
+
+new std:Configuration Box103
+
+new std:ConcatStrings Box104
+
+new std:ConcatStrings Box105
+
+new std:ConcatStrings Box106
+ set Box106.In2 "contour-tmp-Imge.mhd"
+
+new creaVtk:PolyDataToImageData Box107
+
+new vtk:MetaImageWriter Box108
+ set Box108.Compression "true"
+
+new vtk:CreateImage Box109
+
+new vtk:ImageVtkProperties Box110
+
+new creaVtk:MeshManager Box113
+
+new creaVtk:MeshManager_tool Box114
+ set Box114.Tool "35"
+
+new std:ConcatStrings Box115
+
+new std:ConcatStrings_tool Box116
+ set Box116.Type "1"
+
+new std:MultipleInputs Box117
+
+new std:ConcatStrings Box120
+
+new std:ConcatStrings_tool Box121
+ set Box121.Type "1"
+
connect Box66.Out Box11.Renderer
connect Box35.Out Box68.In
connect Box64.Out Box54.WxVtkBaseView
connect Box65.Out Box54.WxVtkBaseView1
connect Box69.Out Box54.WxVtkBaseView2
-connect Box54.Widget Box50.Widget4
connect Box52.BoxChange Box56.BoxExecute
connect Box97.Out Box60.In
connect Box60.Out Box56.In2
connect Box91.Widget Box50.Widget2
connect Box77.Widget Box82.Widget4
connect Box42.Widget Box77.Widget2
+connect Box78.Out Box08.WinTitle
+connect Box54.Widget Box50.Widget7
+connect Box86.Widget Box50.Widget4
+connect Box95.Out Box101.In0
+connect Box95.Out Box102.In2
+connect Box102.Out Box101.In1
+connect Box95.Out Box101.In2
+connect Box103.SystemType Box101.In
+connect Box104.Out Box95.In3
+connect Box105.Out Box95.In5
+connect Box105.Out Box106.In1
+connect Box107.Out Box108.In
+connect Box109.Out Box107.InImage
+connect Box110.TypeName Box109.OutputFormat
+connect Box110.Spacing Box109.Spacing
+connect Box110.Size Box109.Dimensions
+connect Box113.MeshManagerModel Box114.MeshManagerModel
+connect Box67.Out Box114.Mesh
+connect Box35.Out Box110.In
+connect Box113.MeshBase Box107.InPolyData
+connect Box115.Out Box94.In
+connect Box101.Out Box116.In1
+connect Box115.Box_ConcatStrings Box116.Box_ConcatString
+connect Box86.BoxChange Box117.BoxExecute
+connect Box114.BoxChange Box117.In1
+connect Box106.Out Box121.In1
+connect Box120.Box_ConcatStrings Box121.Box_ConcatString
+connect Box120.Out Box108.Filename
+connect Box116.BoxChange Box117.In5
+connect Box121.BoxChange Box117.In2
+connect Box108.BoxChange Box117.In6
+connect Box108.BoxChange Box94.BoxExecute
# Complex input ports
input mesh Box67.In " "
input image Box35.In " "
-input title Box08.WinTitle " "
input meshmanagermodel Box46.In " "
input boxChange Box63.In " "
input wxvtkbaseview2 Box64.In " "
input wxvtkbaseview3 Box65.In " "
input wxvtkbaseview4 Box69.In " "
input wxvtkbaseview1 Box71.In " "
+input title Box78.In1 " "
+input BaseImageFileName Box104.In1 " "
+input OutDir Box105.In1 " "
# Complex output ports
output widget Box08.Widget " "
+exec Box45
endefine
//------------------------------------------------------------------------
void WidgetShowNPoints::SetInitLstPoints( std::vector<double> initLstPointsX, std::vector<double> initLstPointsY, std::vector<double> initLstPointsZ, std::vector<std::string> initLstLabels, std::vector<int> initLstIndexs )
{
-
- printf("EED WidgetShowNPoints::SetInitLstPoints flag 1\n");
-
if (GetViewShowNPoints()->renderer==NULL)
{
return;