# ----------------------------------
-# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
+# - BBTKGEditor v 1.6 BBG BlackBox Diagram file
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/FreePlane.bbg
# ----------------------------------
CATEGORY:<VOID>
DESCRIPTION:Description ??
AUTHOR:Author ??
+EXPORTFORMAT:0
COMPLEXBOX:TRUE
COMPLEXBOXNAME:FreePlane
PACKAGENAME:creaMaracasVisu
-COMPLEXOUTPUTS:4
+COMPLEXOUTPUTS:5
COMPLEX_PORT
widgetOut
-62.602729:-39.249279:-900.000000
boxChange
-109.488119:-40.220094:-900.000000
FIN_COMPLEX_PORT
+COMPLEX_PORT
+box_TransformWidget2
+-30.291440:-37.573030:-900.000000
+FIN_COMPLEX_PORT
COMPLEXINPUTS:5
COMPLEX_PORT
possiblePoint
PORT
Active:"true"
FIN_BOX
-CONNECTIONS:46
+CONNECTIONS:47
CONNECTION
Box02:Out:Box04:In
NumberOfControlPoints:0
CONNECTION
Box16:BoxChange:boxChange:boxChange
NumberOfControlPoints:0
+CONNECTION
+Box16:Box_TransformWidget2:box_TransformWidget2:box_TransformWidget2
+NumberOfControlPoints:0
APP_END
# ----------------------------------
-# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/FreePlane.bbs
# ----------------------------------
output transform Box16.Out " "
output actualPoint Box08.Out " "
output boxChange Box16.BoxChange " "
+output box_TransformWidget2 Box16.Box_TransformWidget2 " "
endefine
# ----------------------------------
-# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
+# - BBTKGEditor v 1.6 BBG BlackBox Diagram file
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyCut.bbg
# ----------------------------------
CATEGORY:demo
DESCRIPTION:Show N Points
AUTHOR:info-dev@creatis.insa-lyon.fr
+EXPORTFORMAT:0
COMPLEXBOX:TRUE
COMPLEXBOXNAME:Mesh_tool_ApplyCut
PACKAGENAME:creaMaracasVisu
creaMaracasVisu:ShowNPoints:showNpoints
ISEXEC:FALSE
65.325513:91.657411:-900.000000
-102.165513:89.157411:-900.000000
+87.175513:89.157411:-900.000000
PORT
Radio:"6"
PORT
OpenClose:"true"
PORT
OpenClose2:"false"
+PORT
+Param:"1"
FIN_BOX
BOX
wx:LayoutLine:Box08
ISEXEC:FALSE
-182.125107:-147.642582:-900.000000
--148.805107:-150.142582:-900.000000
+33.320000:-150.142582:-900.000000
FIN_BOX
BOX
vtk:UpdateRender:Box11
creaMaracasVisu:DrawAxisTree3D:Box30
ISEXEC:FALSE
66.011927:-0.645212:-900.000000
-94.051927:-3.145212:-900.000000
+88.191927:-3.145212:-900.000000
PORT
Colour:"0 0 1"
PORT
creaMaracasVisu:wxPopupMenu:Box57
ISEXEC:FALSE
-291.724262:77.620511:-900.000000
--269.659262:75.120511:-900.000000
+17.480000:75.120511:-900.000000
PORT
WithCtrlKey:"true"
FIN_BOX
std:AddStringToVector:Box58
ISEXEC:FALSE
-351.818140:103.053652:-900.000000
--327.298140:100.553652:-900.000000
+24.520000:100.553652:-900.000000
PORT
In0:"+ Add point"
PORT
creaMaracasVisu:ShowNPoints_Tools:Box60
ISEXEC:FALSE
-268.618686:51.736786:-900.000000
--246.183686:49.236786:-900.000000
+13.960000:49.236786:-900.000000
FIN_BOX
BOX
vtk:ImageVtkProperties:Box68
ISEXEC:FALSE
-103.142894:115.643157:-900.000000
--80.607894:113.143157:-900.000000
+18.480000:113.143157:-900.000000
FIN_BOX
BOX
std:VectorFilterDouble:Box70
ISEXEC:FALSE
38.732936:52.596353:-900.000000
-65.012936:50.096353:-900.000000
+61.162936:50.096353:-900.000000
PORT
Type:"11"
FIN_BOX
creaVtk:BooleanOperationPolyDataFilter:Box77
ISEXEC:FALSE
-89.099426:-23.521803:-900.000000
--65.369426:-26.021803:-900.000000
+12.200000:-26.021803:-900.000000
PORT
BoxProcessMode:"Manual"
PORT
wx:ComboBox:Box78
ISEXEC:FALSE
-153.877713:-5.775167:-900.000000
--127.597713:-8.275167:-900.000000
+26.280000:-8.275167:-900.000000
PORT
In:"Union Intersection Difference"
FIN_BOX
wx:LayoutLine:Box79
ISEXEC:FALSE
-140.715014:-113.385703:-900.000000
--107.395014:-115.885703:-900.000000
+33.320000:-115.885703:-900.000000
PORT
Orientation:"H"
PORT
wx:CommandButton:Box80
ISEXEC:FALSE
-107.184095:21.801731:-900.000000
--84.909095:19.301731:-900.000000
+21.000000:19.301731:-900.000000
PORT
Label:"Run"
FIN_BOX
std:MagicBox:Box66
ISEXEC:FALSE
-19.613231:111.536176:-900.000000
-1.986769:109.036176:-900.000000
+8.680000:109.036176:-900.000000
FIN_BOX
BOX
std:MagicBox:Box67
ISEXEC:FALSE
-62.444052:190.944708:-900.000000
--40.844052:188.444708:-900.000000
+8.680000:188.444708:-900.000000
FIN_BOX
BOX
creaMaracasVisu:PolyDataToActor_Widget:Box48
vtk:vtkImageDataPointerRelay:Box35
ISEXEC:FALSE
-102.009442:190.570103:-900.000000
--78.799442:188.070103:-900.000000
+6.920000:188.070103:-900.000000
FIN_BOX
BOX
wx:Slider:Box34
std:Div:Box36
ISEXEC:FALSE
-190.788172:-9.261990:-900.000000
--169.863172:-11.761990:-900.000000
+8.680000:-11.761990:-900.000000
PORT
In2:"100"
FIN_BOX
creaMaracasVisu:PolyDataToActor_Widget:Box37
ISEXEC:FALSE
-67.388857:-39.476785:-900.000000
--44.368857:-41.976785:-900.000000
+21.000000:-41.976785:-900.000000
PORT
color:"0 1 1"
PORT
wx:LayoutLine:Box38
ISEXEC:FALSE
-189.365895:-112.130065:-900.000000
--156.045895:-114.630065:-900.000000
+33.320000:-114.630065:-900.000000
PORT
Orientation:"H"
PORT
wx:LayoutTab:Box39
ISEXEC:FALSE
-191.762476:-120.265948:-900.000000
--158.442476:-122.765948:-900.000000
+33.320000:-122.765948:-900.000000
FIN_BOX
BOX
wx:LayoutTab:Box40
ISEXEC:FALSE
-144.699301:-119.796173:-900.000000
--111.379301:-122.296173:-900.000000
+33.320000:-122.296173:-900.000000
FIN_BOX
BOX
wx:CommandButton:Box42
ISEXEC:FALSE
-91.903796:13.441695:-900.000000
--69.628796:10.941695:-900.000000
+21.000000:10.941695:-900.000000
PORT
Label:"Apply (Magenta->To Red)"
FIN_BOX
wx:CommandButton:Box43
ISEXEC:FALSE
-85.356515:8.083838:-900.000000
--63.081515:5.583838:-900.000000
+21.000000:5.583838:-900.000000
PORT
Label:"Reset Tool"
FIN_BOX
creaVtk:MeshManager_tool:Box45
ISEXEC:FALSE
-90.848443:-133.408000:-900.000000
--68.348443:-135.908000:-900.000000
+15.720000:-135.908000:-900.000000
PORT
Tool:"30"
FIN_BOX
std:MagicBox:Box46
ISEXEC:FALSE
-147.130406:191.398904:-900.000000
--125.530406:188.898904:-900.000000
+8.680000:188.898904:-900.000000
FIN_BOX
BOX
wx:ComboBox:Box49
ISEXEC:FALSE
-188.003067:-15.129550:-900.000000
--161.723067:-17.629550:-900.000000
+26.280000:-17.629550:-900.000000
PORT
In:"25 50 100 150"
PORT
std:MultipleInputs:Box51
ISEXEC:FALSE
-92.949669:-148.627142:-900.000000
--70.979669:-151.127142:-900.000000
+21.000000:-151.127142:-900.000000
FIN_BOX
BOX
creaMaracasVisu:ShowNPoints_Tools:Box52
ISEXEC:FALSE
-48.321002:-133.648902:-900.000000
--25.886002:-136.148902:-900.000000
+13.960000:-136.148902:-900.000000
PORT
Type:"120"
FIN_BOX
std:MultipleInputs:Box53
ISEXEC:FALSE
-96.292390:-13.293248:-900.000000
--74.322390:-15.793248:-900.000000
+21.000000:-15.793248:-900.000000
FIN_BOX
BOX
std:MultipleInputs:Box55
ISEXEC:FALSE
-54.535637:-149.462814:-900.000000
--32.565637:-151.962814:-900.000000
+21.000000:-151.962814:-900.000000
FIN_BOX
BOX
creaMaracasVisu:MeshContours_Widget:Box62
ISEXEC:FALSE
-225.142216:1.512919:-900.000000
--202.347216:-0.987081:-900.000000
+21.000000:-0.987081:-900.000000
PORT
colorMesh:"1 1 0"
FIN_BOX
std:MagicBox:Box64
ISEXEC:FALSE
-238.031872:191.267325:-900.000000
--216.431872:188.767325:-900.000000
+8.680000:188.767325:-900.000000
FIN_BOX
BOX
std:MagicBox:Box65
ISEXEC:FALSE
-215.214256:191.441400:-900.000000
--193.614256:188.941400:-900.000000
+8.680000:188.941400:-900.000000
FIN_BOX
BOX
std:MagicBox:Box69
ISEXEC:FALSE
-192.711554:191.615475:-900.000000
--171.111554:189.115475:-900.000000
+8.680000:189.115475:-900.000000
FIN_BOX
BOX
std:MagicBox:Box71
ISEXEC:FALSE
-268.277413:191.441400:-900.000000
--246.677413:188.941400:-900.000000
+8.680000:188.941400:-900.000000
FIN_BOX
BOX
creaMaracasVisu:MeshContours_Widget:Box72
creaVtk:MeshManager:Box92
ISEXEC:FALSE
-56.608588:-81.789032:-900.000000
--34.578588:-84.289032:-900.000000
+14.960000:-84.289032:-900.000000
FIN_BOX
BOX
creaVtk:MeshManager_tool:Box93
ISEXEC:FALSE
-61.627153:-92.643884:-900.000000
--39.127153:-95.143884:-900.000000
+15.720000:-95.143884:-900.000000
PORT
Tool:"35"
FIN_BOX
std:MagicBox:Box94
ISEXEC:FALSE
-70.989776:-33.864327:-900.000000
--49.389776:-36.364327:-900.000000
+8.680000:-36.364327:-900.000000
FIN_BOX
BOX
creaMaracasVisu:wxVtkBaseView_Info:Box96
ISEXEC:FALSE
-163.829238:146.383440:-900.000000
--134.789238:143.883440:-900.000000
+29.040000:143.883440:-900.000000
FIN_BOX
BOX
creaVtk:PolyDataNormals:Box97
ISEXEC:FALSE
-88.026860:-72.332654:-900.000000
--65.731860:-74.832654:-900.000000
+12.200000:-74.832654:-900.000000
FIN_BOX
BOX
wx:LayoutLine:Box98
ISEXEC:FALSE
-143.911108:-17.437953:-900.000000
--110.591108:-19.937953:-900.000000
+33.320000:-19.937953:-900.000000
PORT
Orientation:"H"
FIN_BOX
std:AddStringToVector:Box99
ISEXEC:FALSE
-356.544913:110.563876:-900.000000
--332.024913:108.063876:-900.000000
+24.520000:108.063876:-900.000000
PORT
In0:"Auto Add Points (Start/Stop)"
FIN_BOX
std:VectorFilterString:Box100
ISEXEC:FALSE
-265.790737:67.872984:-900.000000
--237.750737:65.372984:-900.000000
+28.040000:65.372984:-900.000000
PORT
In0:"0 1 2 3 4 5 6 7 8 9 10"
PORT
std:ConcatStrings:Box101
ISEXEC:FALSE
-265.899318:61.380437:-900.000000
--243.139318:58.880437:-900.000000
+22.760000:58.880437:-900.000000
FIN_BOX
BOX
wx:CheckBox:Box103
ISEXEC:FALSE
-7.317202:68.352288:-900.000000
-14.422798:65.852288:-900.000000
+21.000000:65.852288:-900.000000
PORT
In:"false"
PORT
std:AddStringToVector:Box113
ISEXEC:FALSE
-355.045399:94.990615:-900.000000
--330.525399:92.490615:-900.000000
+24.520000:92.490615:-900.000000
FIN_BOX
BOX
std:ConcatStrings:Box114
ISEXEC:FALSE
-464.728425:29.536946:-900.000000
--441.968425:27.036946:-900.000000
+22.760000:27.036946:-900.000000
PORT
In2:" -1"
FIN_BOX
std:ConcatStrings:Box115
ISEXEC:FALSE
-432.344198:29.864985:-900.000000
--409.584198:27.364985:-900.000000
+22.760000:27.364985:-900.000000
PORT
In2:" 1"
FIN_BOX
wx:CommandButton:Box116
ISEXEC:FALSE
-472.775460:10.145161:-900.000000
--450.390460:7.645161:-900.000000
+21.000000:7.645161:-900.000000
PORT
Label:"-"
FIN_BOX
wx:CommandButton:Box117
ISEXEC:FALSE
-432.910292:9.836787:-900.000000
--410.525292:7.336787:-900.000000
+21.000000:7.336787:-900.000000
PORT
Label:"+"
FIN_BOX
creaMaracasVisu:ShowNPoints_Tools:Box118
ISEXEC:FALSE
-471.300578:-7.928308:-900.000000
--448.755578:-10.428308:-900.000000
+13.960000:-10.428308:-900.000000
PORT
BoxProcessMode:"Manual"
PORT
creaMaracasVisu:ShowNPoints_Tools:Box119
ISEXEC:FALSE
-434.200486:-9.777088:-900.000000
--411.655486:-12.277088:-900.000000
+13.960000:-12.277088:-900.000000
PORT
BoxProcessMode:"Manual"
PORT
wx:LayoutLine:Box120
ISEXEC:FALSE
-447.700334:-24.146328:-900.000000
--414.380334:-26.646328:-900.000000
+33.320000:-26.646328:-900.000000
PORT
Orientation:"H"
FIN_BOX
std:ConcatStrings:Box124
ISEXEC:FALSE
-352.818950:32.043657:-900.000000
--330.058950:29.543657:-900.000000
+22.760000:29.543657:-900.000000
PORT
In2:" 1"
FIN_BOX
wx:CommandButton:Box125
ISEXEC:FALSE
-397.658813:12.919589:-900.000000
--375.273813:10.419589:-900.000000
+21.000000:10.419589:-900.000000
PORT
Label:"-"
FIN_BOX
wx:CommandButton:Box126
ISEXEC:FALSE
-357.793645:12.611216:-900.000000
--335.408645:10.111216:-900.000000
+21.000000:10.111216:-900.000000
PORT
Label:"+"
FIN_BOX
creaMaracasVisu:ShowNPoints_Tools:Box127
ISEXEC:FALSE
-397.017991:-11.945508:-900.000000
--374.472991:-14.445508:-900.000000
+13.960000:-14.445508:-900.000000
PORT
BoxProcessMode:"Manual"
PORT
creaMaracasVisu:ShowNPoints_Tools:Box128
ISEXEC:FALSE
-359.083840:-12.364472:-900.000000
--336.538840:-14.864472:-900.000000
+13.960000:-14.864472:-900.000000
PORT
BoxProcessMode:"Manual"
PORT
std:GetVectorDoubleSubVector:Box130
ISEXEC:FALSE
-383.724561:42.940086:-900.000000
--360.264561:40.440086:-900.000000
+12.200000:40.440086:-900.000000
PORT
ErrorValue:"0"
PORT
wx:LayoutLine:Box131
ISEXEC:FALSE
-384.639381:-22.701742:-900.000000
--351.319381:-25.201742:-900.000000
+33.320000:-25.201742:-900.000000
PORT
Orientation:"H"
FIN_BOX
wx:OutputText:Box132
ISEXEC:FALSE
-422.764180:-37.645206:-900.000000
--400.984180:-40.145206:-900.000000
+19.240000:-40.145206:-900.000000
PORT
In:"Expand area"
FIN_BOX
wx:LayoutLine:Box135
ISEXEC:FALSE
97.947391:-26.661606:-900.000000
-131.267391:-29.161606:-900.000000
+119.717391:-29.161606:-900.000000
PORT
WinTitle:"Flat surface"
FIN_BOX
std:ConcatStrings:Box139
ISEXEC:FALSE
104.836384:20.027246:-900.000000
-127.596384:17.527246:-900.000000
+126.916384:17.527246:-900.000000
PORT
In2:" -1"
FIN_BOX
std:ConcatStrings:Box140
ISEXEC:FALSE
142.295507:22.734142:-900.000000
-165.055507:20.234142:-900.000000
+164.375507:20.234142:-900.000000
PORT
In2:" 1"
FIN_BOX
wx:LayoutLine:Box145
ISEXEC:FALSE
123.020932:-16.234652:-900.000000
-156.340932:-18.734652:-900.000000
+144.790932:-18.734652:-900.000000
PORT
Orientation:"H"
FIN_BOX
wx:LayoutLine:Box148
ISEXEC:FALSE
156.874712:-31.926957:-900.000000
-190.194712:-34.426957:-900.000000
+178.644712:-34.426957:-900.000000
PORT
WinTitle:"Volume"
FIN_BOX
std:ConcatStrings:Box162
ISEXEC:FALSE
170.601359:19.037925:-900.000000
-193.361359:16.537925:-900.000000
+192.681359:16.537925:-900.000000
PORT
In2:" -1"
FIN_BOX
std:ConcatStrings:Box163
ISEXEC:FALSE
208.060481:21.744821:-900.000000
-230.820481:19.244821:-900.000000
+230.140481:19.244821:-900.000000
PORT
In2:" 1"
FIN_BOX
wx:LayoutLine:Box168
ISEXEC:FALSE
186.402880:-15.599182:-900.000000
-219.722880:-18.099182:-900.000000
+208.172880:-18.099182:-900.000000
PORT
Orientation:"H"
FIN_BOX
wx:LayoutTab:Box184
ISEXEC:FALSE
72.294626:-57.981082:-900.000000
-105.614626:-60.481082:-900.000000
+94.019626:-60.481082:-900.000000
PORT
WinTitle:"Tool"
FIN_BOX
std:StringSelect:Box185
ISEXEC:FALSE
51.782029:38.833179:-900.000000
-76.302029:36.333179:-900.000000
+73.652029:36.333179:-900.000000
PORT
In0:"true"
PORT
wx:LayoutLine:Box187
ISEXEC:FALSE
278.482885:-29.312772:-900.000000
-311.802885:-31.812772:-900.000000
+300.252885:-31.812772:-900.000000
PORT
WinTitle:"Patch"
FIN_BOX
wx:LayoutLine:Box195
ISEXEC:FALSE
312.802450:-6.420662:-900.000000
-346.122450:-8.920662:-900.000000
+334.572450:-8.920662:-900.000000
PORT
Orientation:"H"
FIN_BOX
std:ConcatStrings:Box199
ISEXEC:FALSE
357.794032:32.699874:-900.000000
-380.554032:30.199874:-900.000000
+379.874032:30.199874:-900.000000
PORT
In2:" -1"
FIN_BOX
std:ConcatStrings:Box200
ISEXEC:FALSE
385.947432:33.047573:-900.000000
-408.707432:30.547573:-900.000000
+408.027432:30.547573:-900.000000
PORT
In2:" 1"
FIN_BOX
wx:LayoutLine:Box205
ISEXEC:FALSE
375.299418:-7.573093:-900.000000
-408.619418:-10.073093:-900.000000
+397.069418:-10.073093:-900.000000
PORT
Orientation:"H"
FIN_BOX
std:ConcatStrings:Box211
ISEXEC:FALSE
233.257446:22.881650:-900.000000
-256.017446:20.381650:-900.000000
+255.337446:20.381650:-900.000000
PORT
In2:" -1"
FIN_BOX
std:ConcatStrings:Box212
ISEXEC:FALSE
270.716569:25.588546:-900.000000
-293.476569:23.088546:-900.000000
+292.796569:23.088546:-900.000000
PORT
In2:" 1"
FIN_BOX
wx:LayoutLine:Box217
ISEXEC:FALSE
251.441994:-13.380248:-900.000000
-284.761994:-15.880248:-900.000000
+273.211994:-15.880248:-900.000000
PORT
Orientation:"H"
FIN_BOX
std:ConcatStrings:Box227
ISEXEC:FALSE
145.371679:57.840527:-900.000000
-168.131679:55.340527:-900.000000
+167.451679:55.340527:-900.000000
PORT
In1:"300"
FIN_BOX
wx:LayoutLine:Box222
ISEXEC:FALSE
-268.992908:-80.599530:-900.000000
--235.672908:-83.099530:-900.000000
+33.320000:-83.099530:-900.000000
PORT
Orientation:"V"
PORT
wx:OutputText:Box230
ISEXEC:FALSE
-205.396557:-31.822846:-900.000000
--183.616557:-34.322846:-900.000000
+19.240000:-34.322846:-900.000000
FIN_BOX
BOX
wx:LayoutLine:Box231
wx:LayoutTab:Box234
ISEXEC:FALSE
-252.747178:-90.038623:-900.000000
--219.427178:-92.538623:-900.000000
+33.320000:-92.538623:-900.000000
FIN_BOX
BOX
wx:OutputText:Box235
ISEXEC:FALSE
-260.792650:-72.045510:-900.000000
--239.012650:-74.545510:-900.000000
+19.240000:-74.545510:-900.000000
FIN_BOX
BOX
wx:LayoutLine:Box236
ISEXEC:FALSE
-231.469157:-80.892071:-900.000000
--198.149157:-83.392071:-900.000000
+33.320000:-83.392071:-900.000000
PORT
Orientation:"V"
PORT
wx:OutputText:Box237
ISEXEC:FALSE
-214.516357:-72.312285:-900.000000
--192.736357:-74.812285:-900.000000
+19.240000:-74.812285:-900.000000
FIN_BOX
BOX
creaMaracasVisu:ShowNPoints_Tools:Box238
std:VectorFilterDouble:Box239
ISEXEC:FALSE
67.977472:28.319012:-900.000000
-94.257472:25.819012:-900.000000
+90.517472:25.819012:-900.000000
PORT
Type:"14"
FIN_BOX
creaMaracasVisu:InteractorStyleMaracas_Model:Box240
ISEXEC:FALSE
-318.796469:-24.457869:-900.000000
--295.081469:-26.957869:-900.000000
+13.960000:-26.957869:-900.000000
FIN_BOX
BOX
std:ConcatStrings:Box241
ISEXEC:FALSE
104.361113:166.981758:-900.000000
-127.121113:164.481758:-900.000000
+126.441113:164.481758:-900.000000
FIN_BOX
BOX
std:ConcatStrings_tool:Box242
std:StringSelect:Box243
ISEXEC:FALSE
77.057189:166.884604:-900.000000
-101.577189:164.384604:-900.000000
+98.927189:164.384604:-900.000000
PORT
In0:"0"
PORT
std:ConcatStrings:Box245
ISEXEC:FALSE
-313.000327:60.169389:-900.000000
--290.240327:57.669389:-900.000000
+22.760000:57.669389:-900.000000
FIN_BOX
BOX
std:MagicBox:Box246
ISEXEC:FALSE
-378.475392:187.401740:-900.000000
--356.765392:184.901740:-900.000000
+8.680000:184.901740:-900.000000
FIN_BOX
BOX
std:MagicBox:Box247
ISEXEC:FALSE
-354.710232:187.449642:-900.000000
--333.000232:184.949642:-900.000000
+8.680000:184.949642:-900.000000
FIN_BOX
BOX
std:MagicBox:Box248
ISEXEC:FALSE
-330.666067:187.311541:-900.000000
--308.956067:184.811541:-900.000000
+8.680000:184.811541:-900.000000
FIN_BOX
CONNECTIONS:280
CONNECTION
# ----------------------------------
-# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyCut.bbs
# ----------------------------------
set Box06.NbPoints "100"
set Box06.OpenClose "true"
set Box06.OpenClose2 "false"
+ set Box06.Param "1"
new wx:LayoutLine Box08
# ----------------------------------
-# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
+# - BBTKGEditor v 1.6 BBG BlackBox Diagram file
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyPatch.bbg
# ----------------------------------
CATEGORY:demo
DESCRIPTION:Show N Points
AUTHOR:info-dev@creatis.insa-lyon.fr
+EXPORTFORMAT:0
COMPLEXBOX:TRUE
COMPLEXBOXNAME:Mesh_tool_ApplyPatch
PACKAGENAME:creaMaracasVisu
freeplane_transform
-320.924223:169.055148:-900.000000
FIN_COMPLEX_PORT
-BOXES:104
+BOXES:103
BOX
creaMaracasVisu:ShowNPoints:showNpoints
ISEXEC:FALSE
BOX
creaMaracasVisu:ManualContourModel_Box:Box06
ISEXEC:FALSE
-36.048489:25.206269:-900.000000
-60.568489:22.706269:-900.000000
+38.838235:26.859452:-900.000000
+63.358235:24.359452:-900.000000
PORT
DoubleContour:"1"
PORT
OpenClose:"false"
PORT
OpenClose2:"false"
+PORT
+Param:"1"
FIN_BOX
BOX
wx:LayoutLine:Box08
BOX
creaMaracasVisu:DrawAxisTree3D:Box30
ISEXEC:FALSE
-71.029541:7.424668:-900.000000
-99.069541:4.924668:-900.000000
+70.194402:4.919252:-900.000000
+98.234402:2.419252:-900.000000
PORT
Colour:"0 0 1"
PORT
BOX
creaMaracasVisu:ManualContourModel_Box:Box29
ISEXEC:FALSE
-78.902612:24.978132:-900.000000
-103.422612:22.478132:-900.000000
-PORT
-NbPoints:"40"
+82.521546:30.545723:-900.000000
+107.041546:28.045723:-900.000000
PORT
OpenClose:"false"
PORT
BOX
wx:ComboBox:Box49
ISEXEC:FALSE
--175.088364:49.898793:-900.000000
--148.808364:47.398793:-900.000000
+66.266698:78.015127:-900.000000
+92.546698:75.515127:-900.000000
PORT
-In:"25 50 100 150"
+In:"25 50 100 150 200 250 300"
PORT
Selection:"0"
PORT
BOX
wx:LayoutLine:Box50
ISEXEC:FALSE
--57.295971:-56.374591:-900.000000
--23.975971:-58.874591:-900.000000
+-51.792162:-57.763371:-900.000000
+-18.472162:-60.263371:-900.000000
PORT
Orientation:"V"
PORT
BOX
wx:LayoutTab:Box86
ISEXEC:FALSE
--54.290640:-69.094847:-900.000000
--20.970640:-71.594847:-900.000000
+-54.012260:-67.981329:-900.000000
+-20.692260:-70.481329:-900.000000
FIN_BOX
BOX
wx:OutputText:Box87
-304.362857:157.685314:-900.000000
FIN_BOX
BOX
-wx:LayoutLine:Box160
-ISEXEC:FALSE
-134.964613:21.874211:-900.000000
-168.284613:19.374211:-900.000000
-PORT
-Orientation:"H"
-PORT
-WinTitle:"Conf"
-FIN_BOX
-BOX
wx:CheckBox:Box161
ISEXEC:FALSE
-139.524925:32.934718:-900.000000
-161.264925:30.434718:-900.000000
+138.922076:52.079722:-900.000000
+160.662076:49.579722:-900.000000
PORT
Title:"Close Spline"
FIN_BOX
Box151:Out:Box107:active_widget
NumberOfControlPoints:0
CONNECTION
-Box160:Widget:Box106:Widget3
+Box161:Out:Box06:OpenClose
NumberOfControlPoints:0
CONNECTION
-Box161:Widget:Box160:Widget2
+Box161:Out:Box29:OpenClose
NumberOfControlPoints:0
CONNECTION
-Box161:Out:Box06:OpenClose
+Box49:OutString:Box29:NbPoints
NumberOfControlPoints:0
CONNECTION
-Box161:Out:Box29:OpenClose
+Box161:Widget:Box50:Widget1
NumberOfControlPoints:0
APP_END
# ----------------------------------
-# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyPatch.bbs
# ----------------------------------
set Box06.NbPoints "100"
set Box06.OpenClose "false"
set Box06.OpenClose2 "false"
+ set Box06.Param "1"
new wx:LayoutLine Box08
new std:MultipleInputs Box31
new creaMaracasVisu:ManualContourModel_Box Box29
- set Box29.NbPoints "40"
set Box29.OpenClose "false"
set Box29.OpenClose2 "false"
new std:MagicBox Box46
new wx:ComboBox Box49
- set Box49.In "25 50 100 150"
+ set Box49.In "25 50 100 150 200 250 300"
set Box49.Selection "0"
set Box49.Title "Number of Points"
new std:MagicBox Box159
-new wx:LayoutLine Box160
- set Box160.Orientation "H"
- set Box160.WinTitle "Conf"
-
new wx:CheckBox Box161
set Box161.Title "Close Spline"
connect Box159.Out Box107.Freeplane_transform
connect Box151.Out Box72.active_widget
connect Box151.Out Box107.active_widget
-connect Box160.Widget Box106.Widget3
-connect Box161.Widget Box160.Widget2
connect Box161.Out Box06.OpenClose
connect Box161.Out Box29.OpenClose
+connect Box49.OutString Box29.NbPoints
+connect Box161.Widget Box50.Widget1
# Complex input ports
input mesh Box67.In " "
# ----------------------------------
-# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
+# - BBTKGEditor v 1.6 BBG BlackBox Diagram file
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyPatchSimple.bbg
# ----------------------------------
CATEGORY:demo
DESCRIPTION:Show N Points
AUTHOR:info-dev@creatis.insa-lyon.fr
+EXPORTFORMAT:0
COMPLEXBOX:TRUE
COMPLEXBOXNAME:Mesh_tool_ApplyPatchSimple
PACKAGENAME:creaMaracasVisu
OpenClose:"false"
PORT
OpenClose2:"false"
+PORT
+Param:"1"
FIN_BOX
BOX
wx:LayoutLine:Box08
# ----------------------------------
-# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplyPatchSimple.bbs
# ----------------------------------
set Box06.NbPoints "100"
set Box06.OpenClose "false"
set Box06.OpenClose2 "false"
+ set Box06.Param "1"
new wx:LayoutLine Box08
# ----------------------------------
-# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
+# - BBTKGEditor v 1.6 BBG BlackBox Diagram file
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbg
# ----------------------------------
CATEGORY:demo
DESCRIPTION:Show N Points
AUTHOR:info-dev@creatis.insa-lyon.fr
+EXPORTFORMAT:0
COMPLEXBOX:TRUE
COMPLEXBOXNAME:Mesh_tool_ApplySurface
PACKAGENAME:creaMaracasVisu
creaMaracasVisu:ShowNPoints:showNpoints
ISEXEC:FALSE
26.647528:81.320946:-900.000000
-63.487528:78.820946:-900.000000
+48.497528:78.820946:-900.000000
PORT
Radio:"6"
PORT
wx:LayoutLine:Box08
ISEXEC:FALSE
-182.125107:-147.642582:-900.000000
--148.805107:-150.142582:-900.000000
+33.320000:-150.142582:-900.000000
FIN_BOX
BOX
vtk:UpdateRender:Box11
creaMaracasVisu:DrawAxisTree3D:Box30
ISEXEC:FALSE
66.011927:-0.645212:-900.000000
-94.051927:-3.145212:-900.000000
+88.191927:-3.145212:-900.000000
PORT
Colour:"0 0 1"
PORT
creaMaracasVisu:wxPopupMenu:Box57
ISEXEC:FALSE
-292.747240:80.007460:-900.000000
--270.682240:77.507460:-900.000000
+17.480000:77.507460:-900.000000
PORT
WithCtrlKey:"true"
FIN_BOX
std:AddStringToVector:Box58
ISEXEC:FALSE
-320.426360:96.890512:-900.000000
--295.906360:94.390512:-900.000000
+24.520000:94.390512:-900.000000
PORT
In0:"+ Add point"
PORT
creaMaracasVisu:ShowNPoints_Tools:Box60
ISEXEC:FALSE
-348.434487:40.648315:-900.000000
--325.999487:38.148315:-900.000000
+13.960000:38.148315:-900.000000
FIN_BOX
BOX
vtk:ImageVtkProperties:Box68
ISEXEC:FALSE
-102.915963:102.233618:-900.000000
--80.380963:99.733618:-900.000000
+18.480000:99.733618:-900.000000
FIN_BOX
BOX
std:VectorFilterDouble:Box70
ISEXEC:FALSE
49.750242:60.953814:-900.000000
-76.030242:58.453814:-900.000000
+72.180242:58.453814:-900.000000
PORT
Type:"11"
FIN_BOX
creaVtk:BooleanOperationPolyDataFilter:Box77
ISEXEC:FALSE
-87.603116:-25.092238:-900.000000
--63.873116:-27.592238:-900.000000
+12.200000:-27.592238:-900.000000
PORT
BoxProcessMode:"Manual"
PORT
wx:ComboBox:Box78
ISEXEC:FALSE
-150.912071:6.911190:-900.000000
--124.632071:4.411190:-900.000000
+26.280000:4.411190:-900.000000
PORT
In:"Union Intersection Difference Replace"
FIN_BOX
wx:LayoutLine:Box79
ISEXEC:FALSE
-143.046813:-112.731071:-900.000000
--109.726813:-115.231071:-900.000000
+33.320000:-115.231071:-900.000000
PORT
Orientation:"H"
PORT
std:MagicBox:Box66
ISEXEC:FALSE
-381.548793:71.104531:-900.000000
--359.948793:68.604531:-900.000000
+8.680000:68.604531:-900.000000
FIN_BOX
BOX
std:MagicBox:Box67
ISEXEC:FALSE
-67.526006:124.007723:-900.000000
--45.926006:121.507723:-900.000000
+8.680000:121.507723:-900.000000
FIN_BOX
BOX
creaMaracasVisu:PolyDataToActor_Widget:Box48
vtk:vtkImageDataPointerRelay:Box35
ISEXEC:FALSE
-107.091396:123.633118:-900.000000
--83.881396:121.133118:-900.000000
+6.920000:121.133118:-900.000000
FIN_BOX
BOX
wx:Slider:Box34
ISEXEC:FALSE
-194.856368:10.189476:-900.000000
--165.056368:7.689476:-900.000000
+29.800000:7.689476:-900.000000
PORT
In:"50"
PORT
std:Div:Box36
ISEXEC:FALSE
-190.788172:-9.261990:-900.000000
--169.863172:-11.761990:-900.000000
+8.680000:-11.761990:-900.000000
PORT
In2:"100"
FIN_BOX
wx:LayoutLine:Box38
ISEXEC:FALSE
-189.060716:-112.625309:-900.000000
--155.740716:-115.125309:-900.000000
+33.320000:-115.125309:-900.000000
PORT
Orientation:"H"
PORT
wx:LayoutTab:Box39
ISEXEC:FALSE
-194.094275:-119.611316:-900.000000
--160.774275:-122.111316:-900.000000
+33.320000:-122.111316:-900.000000
FIN_BOX
BOX
wx:LayoutTab:Box40
ISEXEC:FALSE
-147.031100:-119.141541:-900.000000
--113.711100:-121.641541:-900.000000
+33.320000:-121.641541:-900.000000
FIN_BOX
BOX
wx:CommandButton:Box42
wx:CommandButton:Box43
ISEXEC:FALSE
-85.356515:8.083838:-900.000000
--63.081515:5.583838:-900.000000
+21.000000:5.583838:-900.000000
PORT
Label:"Reset Tool"
FIN_BOX
wx:LayoutLine:Box44
ISEXEC:FALSE
-154.036190:-43.432527:-900.000000
--120.716190:-45.932527:-900.000000
+33.320000:-45.932527:-900.000000
PORT
Orientation:"V"
PORT
creaVtk:MeshManager_tool:Box45
ISEXEC:FALSE
-90.848443:-133.408000:-900.000000
--68.348443:-135.908000:-900.000000
+15.720000:-135.908000:-900.000000
PORT
Tool:"30"
FIN_BOX
std:MagicBox:Box46
ISEXEC:FALSE
-137.131256:113.921532:-900.000000
--115.531256:111.421532:-900.000000
+8.680000:111.421532:-900.000000
FIN_BOX
BOX
wx:ComboBox:Box49
ISEXEC:FALSE
-182.639251:-13.479145:-900.000000
--156.359251:-15.979145:-900.000000
+26.280000:-15.979145:-900.000000
PORT
In:"25 50 100 150"
PORT
wx:LayoutLine:Box50
ISEXEC:FALSE
-11.437173:-67.034258:-900.000000
-21.882827:-69.534258:-900.000000
+33.320000:-69.534258:-900.000000
PORT
Orientation:"V"
PORT
std:MultipleInputs:Box51
ISEXEC:FALSE
-92.949669:-148.627142:-900.000000
--70.979669:-151.127142:-900.000000
+21.000000:-151.127142:-900.000000
FIN_BOX
BOX
creaMaracasVisu:ShowNPoints_Tools:Box52
ISEXEC:FALSE
-48.321002:-133.648902:-900.000000
--25.886002:-136.148902:-900.000000
+13.960000:-136.148902:-900.000000
PORT
Type:"120"
FIN_BOX
std:MultipleInputs:Box53
ISEXEC:FALSE
-96.292390:-13.293248:-900.000000
--74.322390:-15.793248:-900.000000
+21.000000:-15.793248:-900.000000
FIN_BOX
BOX
std:MultipleInputs:Box55
ISEXEC:FALSE
-54.535637:-149.462814:-900.000000
--32.565637:-151.962814:-900.000000
+21.000000:-151.962814:-900.000000
FIN_BOX
BOX
creaMaracasVisu:MeshContours_Widget:Box62
ISEXEC:FALSE
-232.400613:-9.330453:-900.000000
--209.605613:-11.830453:-900.000000
+21.000000:-11.830453:-900.000000
PORT
colorMesh:"1 1 0"
FIN_BOX
std:MagicBox:Box64
ISEXEC:FALSE
-243.113826:124.330340:-900.000000
--221.513826:121.830340:-900.000000
+8.680000:121.830340:-900.000000
FIN_BOX
BOX
std:MagicBox:Box65
ISEXEC:FALSE
-220.296210:124.504415:-900.000000
--198.696210:122.004415:-900.000000
+8.680000:122.004415:-900.000000
FIN_BOX
BOX
std:MagicBox:Box69
ISEXEC:FALSE
-197.793508:124.678490:-900.000000
--176.193508:122.178490:-900.000000
+8.680000:122.178490:-900.000000
FIN_BOX
BOX
std:MagicBox:Box71
ISEXEC:FALSE
-273.359367:124.504415:-900.000000
--251.759367:122.004415:-900.000000
+8.680000:122.004415:-900.000000
FIN_BOX
BOX
creaMaracasVisu:MeshContours_Widget:Box72
ISEXEC:FALSE
-292.263718:-49.372271:-900.000000
--269.468718:-51.872271:-900.000000
+21.000000:-51.872271:-900.000000
PORT
colorMesh:"0 1 1"
FIN_BOX
wx:LayoutLine:Box81
ISEXEC:FALSE
-182.940708:-126.667438:-900.000000
--149.620708:-129.167438:-900.000000
+33.320000:-129.167438:-900.000000
PORT
WinTitle:"Step 1. Surface"
FIN_BOX
wx:LayoutTab:Box82
ISEXEC:FALSE
-141.270402:-52.730092:-900.000000
--107.950402:-55.230092:-900.000000
+33.320000:-55.230092:-900.000000
FIN_BOX
BOX
wx:OutputText:Box84
creaVtk:MeshManager:Box92
ISEXEC:FALSE
-52.296905:-77.931211:-900.000000
--30.266905:-80.431211:-900.000000
+14.960000:-80.431211:-900.000000
FIN_BOX
BOX
creaVtk:MeshManager_tool:Box93
ISEXEC:FALSE
-55.273094:-98.771012:-900.000000
--32.773094:-101.271012:-900.000000
+15.720000:-101.271012:-900.000000
PORT
BoxProcessMode:"Manual"
PORT
creaMaracasVisu:wxVtkBaseView_Info:Box96
ISEXEC:FALSE
-360.168851:83.553409:-900.000000
--331.128851:81.053409:-900.000000
+29.040000:81.053409:-900.000000
FIN_BOX
BOX
creaVtk:PolyDataNormals:Box97
wx:LayoutLine:Box98
ISEXEC:FALSE
-143.911108:-17.437953:-900.000000
--110.591108:-19.937953:-900.000000
+33.320000:-19.937953:-900.000000
PORT
Orientation:"H"
FIN_BOX
std:AddStringToVector:Box99
ISEXEC:FALSE
-300.772152:108.901840:-900.000000
--276.252152:106.401840:-900.000000
+24.520000:106.401840:-900.000000
PORT
In0:"Auto Add Points (Start/Stop)"
FIN_BOX
wx:CheckBox:Box106
ISEXEC:FALSE
-27.858197:70.649950:-900.000000
--6.118197:68.149950:-900.000000
+21.000000:68.149950:-900.000000
PORT
In:"true"
PORT
wx:ComboBox:Box108
ISEXEC:FALSE
135.425863:49.171195:-900.000000
-161.705863:46.671195:-900.000000
+157.250863:46.671195:-900.000000
FIN_BOX
BOX
std:AddStringToVector:Box109
ISEXEC:FALSE
-61.619335:85.076488:-900.000000
--37.099335:82.576488:-900.000000
+24.520000:82.576488:-900.000000
PORT
In0:"Close Spline 1"
PORT
std:StringSelect:Box110
ISEXEC:FALSE
-65.551330:66.131420:-900.000000
--41.031330:63.631420:-900.000000
+24.520000:63.631420:-900.000000
PORT
In0:"false false"
PORT
std:GetVectorStringElement:Box112
ISEXEC:FALSE
-50.087865:56.742292:-900.000000
--27.022865:54.242292:-900.000000
+10.440000:54.242292:-900.000000
PORT
I:"1"
FIN_BOX
wx:LayoutLine:Box114
ISEXEC:FALSE
-115.788886:-43.199453:-900.000000
--82.468886:-45.699453:-900.000000
+33.320000:-45.699453:-900.000000
PORT
Orientation:"V"
PORT
std:AddStringToVector:Box115
ISEXEC:FALSE
-303.164612:89.794401:-900.000000
--278.644612:87.294401:-900.000000
+24.520000:87.294401:-900.000000
PORT
In0:"Tool - Inverse Normals"
PORT
wx:OutputText:Box131
ISEXEC:FALSE
-4.444858:-53.549638:-900.000000
-17.335142:-56.049638:-900.000000
+19.240000:-56.049638:-900.000000
FIN_BOX
BOX
creaMaracasVisu:ShowNPoints_Tools:Box132
std:ConcatStrings:Box120
ISEXEC:FALSE
134.627918:41.900202:-900.000000
-157.387918:39.400202:-900.000000
+156.707918:39.400202:-900.000000
FIN_BOX
BOX
wx:LayoutTab:Box122
wx:LayoutLine:Box123
ISEXEC:FALSE
-124.678268:-98.617918:-900.000000
--91.358268:-101.117918:-900.000000
+33.320000:-101.117918:-900.000000
PORT
Orientation:"V"
PORT
wx:LayoutTab:Box124
ISEXEC:FALSE
-17.303165:-81.933059:-900.000000
-16.016835:-84.433059:-900.000000
+33.320000:-84.433059:-900.000000
FIN_BOX
BOX
wx:LayoutLine:Box125
wx:LayoutLine:Box126
ISEXEC:FALSE
-179.812141:-71.797263:-900.000000
--146.492141:-74.297263:-900.000000
+33.320000:-74.297263:-900.000000
PORT
Orientation:"V"
PORT
wx:LayoutTab:Box128
ISEXEC:FALSE
-125.937402:-105.186652:-900.000000
--92.617402:-107.686652:-900.000000
+33.320000:-107.686652:-900.000000
FIN_BOX
BOX
wx:OutputText:Box129
wx:LayoutTab:Box136
ISEXEC:FALSE
-252.330390:-98.316800:-900.000000
--219.010390:-100.816800:-900.000000
+33.320000:-100.816800:-900.000000
FIN_BOX
BOX
wx:OutputText:Box137
ISEXEC:FALSE
-202.528742:-78.471524:-900.000000
--180.748742:-80.971524:-900.000000
+19.240000:-80.971524:-900.000000
FIN_BOX
BOX
wx:OutputText:Box139
std:VectorFilterDouble:Box140
ISEXEC:FALSE
87.289087:26.966402:-900.000000
-113.569087:24.466402:-900.000000
+109.829087:24.466402:-900.000000
PORT
Type:"14"
FIN_BOX
std:MagicBox:Box141
ISEXEC:FALSE
-379.690365:113.117077:-900.000000
--357.980365:110.617077:-900.000000
+8.680000:110.617077:-900.000000
FIN_BOX
BOX
std:MagicBox:Box142
ISEXEC:FALSE
-353.346525:113.061609:-900.000000
--331.636525:110.561609:-900.000000
+8.680000:110.561609:-900.000000
FIN_BOX
BOX
std:ConcatStrings:Box143
ISEXEC:FALSE
-382.419742:97.623864:-900.000000
--359.659742:95.123864:-900.000000
+22.760000:95.123864:-900.000000
PORT
In2:" "
PORT
creaVtk:TransformVector:Box144
ISEXEC:FALSE
-387.593536:106.615574:-900.000000
--365.273536:104.115574:-900.000000
+12.200000:104.115574:-900.000000
PORT
InX:"0"
PORT
std:ConcatStrings:Box146
ISEXEC:FALSE
45.583120:115.261182:-900.000000
-68.343120:112.761182:-900.000000
+67.663120:112.761182:-900.000000
FIN_BOX
BOX
std:ConcatStrings_tool:Box147
std:StringSelect:Box148
ISEXEC:FALSE
-13.448146:107.009497:-900.000000
-11.071854:104.509497:-900.000000
+24.520000:104.509497:-900.000000
PORT
In0:"0"
PORT
std:ConcatStrings:Box149
ISEXEC:FALSE
-377.523367:63.561263:-900.000000
--354.763367:61.061263:-900.000000
+22.760000:61.061263:-900.000000
FIN_BOX
BOX
creaMaracasVisu:InteractorStyleMaracas_Model:Box150
std:MagicBox:Box158
ISEXEC:FALSE
-403.731557:113.420656:-900.000000
--382.021557:110.920656:-900.000000
+8.680000:110.920656:-900.000000
FIN_BOX
CONNECTIONS:201
CONNECTION
# ----------------------------------
-# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Mesh_tool_ApplySurface.bbs
# ----------------------------------
return result;
}
+void ShowNPoints_Tools::LoadCollection()
+{
+ WidgetShowNPoints* wsp = bbGetInputWidgetShowNPoints();
+ if ((wsp!=NULL) && (bbGetInputParamsStr().size()==1))
+ {
+ std::string filename = bbGetInputParamsStr()[0];
+ wsp->OnLoadCollections_( filename );
+ }
+}
+
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
-
+
if (bbGetInputWidgetShowNPoints()!=NULL)
{
if (bbGetInputType()==1)
{
SeparateSplines();
} // if Type
+ if(bbGetInputType()==500)
+ {
+ LoadCollection();
+ } // if Type
} // if bbGetInputWidgetShowNPoints
}
//=====
BBTK_DECLARE_INPUT(Mesh,vtkPolyData*);
BBTK_DECLARE_INPUT(Type,int);
BBTK_DECLARE_INPUT(Params, std::vector<double>);
+ BBTK_DECLARE_INPUT(ParamsStr, std::vector<std::string>);
BBTK_DECLARE_OUTPUT(Out, std::vector<double>);
// BBTK_DECLARE_OUTPUT(Out,double);
BBTK_PROCESS(Process);
void JoinPoints();
void SetMesh();
void SeparateSplines();
+ void LoadCollection();
std::vector<double> GetProjectionPointOnAxis(double pointToProject[3], double originAxis[3], double axisDir[3]);
std::vector<std::vector<std::vector<double>>> GetOrderedPointsAroundPlane(std::vector<double> planeOrigin, std::vector<double> planeNormal, std::vector<double> rotAxis, std::vector<double> pX, std::vector<double> pY, std::vector<double> pZ);
std::vector<double> GetPlaneNormalFromPointsRefPoint(std::vector<double> pointsX, std::vector<double> pointsY, std::vector<double> pointsZ, std::vector<double> refPoint);
BBTK_INPUT(ShowNPoints_Tools,WidgetShowNPoints,"WidgetShowNPoints",WidgetShowNPoints*,"");
BBTK_INPUT(ShowNPoints_Tools,Spacing,"(default [1,1,1] )Spacing",std::vector<double>,"");
BBTK_INPUT(ShowNPoints_Tools,Mesh,"Mesh en format vtkPolyData ",vtkPolyData*,"");
- BBTK_INPUT(ShowNPoints_Tools,Type,"(default 0) 0:Nothing 1:Auto add poits 5:Add Point 10:Insert Point 20:TrackPoint 30:Set nearest point 40:Erase point 50:Deleta all points 100:Insert group after 110:Delete group 120:Reset colletion 200:Tool 3 or 4 points to patch surface - Create Mesh (based on 1 group and 3 or 4 points) 205:Tool 3 or 4 points to volume surface - Create Mesh (based on 1 group and 3 or 4 points) 210: Invert points 220: Move patch center (param is the step ex [-1] or [1]) 230: Move point in normal of surface (Params [-1] or [1]) 235: ChangeCurrentPoint (Params [-1] or [1]) 240: Join all start-end points to the start-end points on selected spline 250: Set Mesh SPC (Params: [0]:Patch [1]:CloseSpline1 [2]:CloseSpline2) 300: Create expanded surface 310: Create wide expanded surface 320: Expand Surface, 330: Widen surface, 340: Expand patch, 400: Separate and Order Splines given a rotation origin",int,"");
+ BBTK_INPUT(ShowNPoints_Tools,Type,"(default 0) 0:Nothing 1:Auto add poits 5:Add Point 10:Insert Point 20:TrackPoint 30:Set nearest point 40:Erase point 50:Deleta all points 100:Insert group after 110:Delete group 120:Reset collection 200:Tool 3 or 4 points to patch surface - Create Mesh (based on 1 group and 3 or 4 points) 205:Tool 3 or 4 points to volume surface - Create Mesh (based on 1 group and 3 or 4 points) 210: Invert points 220: Move patch center (param is the step ex [-1] or [1]) 230: Move point in normal of surface (Params [-1] or [1]) 235: ChangeCurrentPoint (Params [-1] or [1]) 240: Join all start-end points to the start-end points on selected spline 250: Set Mesh SPC (Params: [0]:Patch [1]:CloseSpline1 [2]:CloseSpline2) 300: Create expanded surface 310: Create wide expanded surface 320: Expand Surface, 330: Widen surface, 340: Expand patch, 400: Separate and Order Splines given a rotation origin, 500:Load collection (ParamStr filenaname.xls)",int,"");
BBTK_INPUT(ShowNPoints_Tools, Params,"Optional params for the tools, required for 200: normal and direction, 320: centroid and direction, 330: normal and direction, 340: centroid and direction, 400: reference point", std::vector<double>,"");
-
+BBTK_INPUT(ShowNPoints_Tools, ParamsStr,"Optional params for the tools, required for 500:filename.xls", std::vector<std::string>,"");
+
BBTK_OUTPUT(ShowNPoints_Tools, Out, "Output", std::vector<double>, "");
// BBTK_OUTPUT(ShowNPoints_Tools,Out,"First output",double,"");
BBTK_END_DESCRIBE_BLACK_BOX(ShowNPoints_Tools);
void OnRadioButtonZ(wxEvent& event);
void OnRadioButtonN(wxEvent& event);
void OnSave(wxCommandEvent& event);
+ void Save(std::string filename);
void OnLoad(wxCommandEvent& event);
+ void Load(std::string filename);
void OnReset(wxCommandEvent& event);
void OnMoveDown(wxCommandEvent& event);
void OnMoveUp(wxCommandEvent& event);
mMemoryMatrix->DeepCopy( t->GetMatrix() );
}
+void TransformWidgetPanel::Save(std::string filename)
+{
+ FILE *ff;
+ ff = fopen( filename.c_str() , "w+" );
+ if (ff!=NULL)
+ {
+ fprintf(ff,"ActualPoint:\n");
+ fprintf(ff,"%f %f %f\n",mActualPoint[0], mActualPoint[1], mActualPoint[2] );
+ vtkMatrix4x4 *m = t->GetMatrix();
+ fprintf(ff,"Transform:\n");
+ fprintf(ff,"%f %f %f %f \n",m->GetElement(0,0), m->GetElement(1,0), m->GetElement(2,0), m->GetElement(3,0) );
+ fprintf(ff,"%f %f %f %f \n",m->GetElement(0,1), m->GetElement(1,1), m->GetElement(2,1), m->GetElement(3,1) );
+ fprintf(ff,"%f %f %f %f \n",m->GetElement(0,2), m->GetElement(1,2), m->GetElement(2,2), m->GetElement(3,2) );
+ fprintf(ff,"%f %f %f %f\n\n",m->GetElement(0,3), m->GetElement(1,3), m->GetElement(2,3), m->GetElement(3,3) );
+ fclose(ff);
+ } else { // else ff
+ printf("TransformWidgetPanel::OnSave ...Error... creating file \n");
+ } //ff
+}
+
void TransformWidgetPanel::OnSave(wxCommandEvent& event)
{
wxFileDialog* FD = new wxFileDialog( 0,
if (FD->GetReturnCode()==wxID_OK)
{
std::string filename= (const char*) ( FD->GetPath().mb_str() );
- FILE *ff;
- ff = fopen( filename.c_str() , "w+" );
- if (ff!=NULL)
- {
- fprintf(ff,"ActualPoint:\n");
- fprintf(ff,"%f %f %f\n",mActualPoint[0], mActualPoint[1], mActualPoint[2] );
- vtkMatrix4x4 *m = t->GetMatrix();
- fprintf(ff,"Transform:\n");
- fprintf(ff,"%f %f %f %f \n",m->GetElement(0,0), m->GetElement(1,0), m->GetElement(2,0), m->GetElement(3,0) );
- fprintf(ff,"%f %f %f %f \n",m->GetElement(0,1), m->GetElement(1,1), m->GetElement(2,1), m->GetElement(3,1) );
- fprintf(ff,"%f %f %f %f \n",m->GetElement(0,2), m->GetElement(1,2), m->GetElement(2,2), m->GetElement(3,2) );
- fprintf(ff,"%f %f %f %f\n\n",m->GetElement(0,3), m->GetElement(1,3), m->GetElement(2,3), m->GetElement(3,3) );
- fclose(ff);
- } else { // else ff
- printf("TransformWidgetPanel::OnSave ...Error... creating file \n");
- } //ff
+ Save( filename );
} // dialog box
}
+void TransformWidgetPanel::Load(std::string filename)
+{
+ FILE *ff;
+ ff = fopen( filename.c_str() , "r" );
+ if (ff!=NULL)
+ {
+ char tmpStr[128];
+ float t0,t1,t2,t3;
+ fscanf(ff,"%s\n",tmpStr); // ActualPoint:
+ fscanf(ff,"%f %f %f\n",&t0,&t1,&t2);
+ mActualPoint[0]=t0;
+ mActualPoint[1]=t1;
+ mActualPoint[2]=t2;
+
+ vtkMatrix4x4 *m = t->GetMatrix();
+ fscanf(ff,"%s\n",tmpStr); // Transform:
+ fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
+ m->SetElement(0,0,t0);
+ m->SetElement(1,0,t1);
+ m->SetElement(2,0,t2);
+ m->SetElement(3,0,t3);
+ fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
+ m->SetElement(0,1,t0);
+ m->SetElement(1,1,t1);
+ m->SetElement(2,1,t2);
+ m->SetElement(3,1,t3);
+ fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
+ m->SetElement(0,2,t0);
+ m->SetElement(1,2,t1);
+ m->SetElement(2,2,t2);
+ m->SetElement(3,2,t3);
+ fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
+ m->SetElement(0,3,t0);
+ m->SetElement(1,3,t1);
+ m->SetElement(2,3,t2);
+ m->SetElement(3,3,t3);
+ t->Update();
+
+ mBox->bbSetOutputActualPoint( mActualPoint );
+ mBox->bbSignalOutputModification(std::string("ActualPoint"));
+ mBox->bbSetOutputOut( t );
+ mBox->bbSignalOutputModification(std::string("Out"));
+
+ fclose(ff);
+ } else { // else ff
+ printf("TransformWidgetPanel::OnLoad ...Error... reading file \n");
+ } //ff
+}
+
void TransformWidgetPanel::OnLoad(wxCommandEvent& event)
{
wxFileDialog* FD = new wxFileDialog( 0,
- _T("Load groups of points .."),
+ _T("Load configuration.."),
_T(""),
_T(""),
_T("(*.fpConf)|*.fpConf"),
if (FD->GetReturnCode()==wxID_OK)
{
std::string filename= (const char*) ( FD->GetPath().mb_str() );
- FILE *ff;
- ff = fopen( filename.c_str() , "r" );
- if (ff!=NULL)
- {
- char tmpStr[128];
- float t0,t1,t2,t3;
- fscanf(ff,"%s\n",tmpStr); // ActualPoint:
- fscanf(ff,"%f %f %f\n",&t0,&t1,&t2);
- mActualPoint[0]=t0;
- mActualPoint[1]=t1;
- mActualPoint[2]=t2;
-
- vtkMatrix4x4 *m = t->GetMatrix();
- fscanf(ff,"%s\n",tmpStr); // Transform:
- fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
- m->SetElement(0,0,t0);
- m->SetElement(1,0,t1);
- m->SetElement(2,0,t2);
- m->SetElement(3,0,t3);
- fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
- m->SetElement(0,1,t0);
- m->SetElement(1,1,t1);
- m->SetElement(2,1,t2);
- m->SetElement(3,1,t3);
- fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
- m->SetElement(0,2,t0);
- m->SetElement(1,2,t1);
- m->SetElement(2,2,t2);
- m->SetElement(3,2,t3);
- fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
- m->SetElement(0,3,t0);
- m->SetElement(1,3,t1);
- m->SetElement(2,3,t2);
- m->SetElement(3,3,t3);
- t->Update();
-
- mBox->bbSetOutputActualPoint( mActualPoint );
- mBox->bbSignalOutputModification(std::string("ActualPoint"));
- mBox->bbSetOutputOut( t );
- mBox->bbSignalOutputModification(std::string("Out"));
-
- fclose(ff);
- } else { // else ff
- printf("TransformWidgetPanel::OnLoad ...Error... reading file \n");
- } //ff
+ Load( filename );
} // dialog box
-
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
+
+//------------------------------------------------------
+void TransformWidget2::Save(std::string filename)
+{
+ TransformWidgetPanel *w = (TransformWidgetPanel*) bbGetOutputWidget( );
+ w->Save(filename);
+}
+
+//------------------------------------------------------
+void TransformWidget2::Load(std::string filename)
+{
+ TransformWidgetPanel *w = (TransformWidgetPanel*) bbGetOutputWidget( );
+ w->Load(filename);
+}
+
+//------------------------------------------------------
void TransformWidget2::Process()
{
TransformWidgetPanel *w = (TransformWidgetPanel*) bbGetOutputWidget( );
{
firsttime=false;
w->_OnSetPoint();
+ bbSetOutputBox_TransformWidget2(this);
}// if
}
{
firsttime=true;
bbSetInputType(1);
+ bbSetOutputBox_TransformWidget2(NULL);
}
//=====
BBTK_DECLARE_INPUT(PossiblePoint,std::vector< double >);
BBTK_DECLARE_OUTPUT(Out,vtkLinearTransform *);
BBTK_DECLARE_OUTPUT(ActualPoint,std::vector< double >);
+ BBTK_DECLARE_OUTPUT(Box_TransformWidget2,TransformWidget2*);
BBTK_PROCESS(Process);
+ void Save(std::string filename);
+ void Load(std::string filename);
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
void CreateWidget(wxWindow*);
BBTK_INPUT(TransformWidget2,PossiblePoint,"Potential Point [x y z]",std::vector<double>,"");
BBTK_OUTPUT(TransformWidget2,Out,"vtkTransform result",vtkLinearTransform *,"");
BBTK_OUTPUT(TransformWidget2,ActualPoint,"Origin [x,y,z]",std::vector<double>,"");
+ BBTK_OUTPUT(TransformWidget2,Box_TransformWidget2,"bbtk box TransformWidget2",TransformWidget2*,"");
BBTK_END_DESCRIBE_BLACK_BOX(TransformWidget2);
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
--- /dev/null
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+#include "bbcreaMaracasVisuTransformWidget2_tool.h"
+#include "bbcreaMaracasVisuPackage.h"
+namespace bbcreaMaracasVisu
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,TransformWidget2_tool)
+BBTK_BLACK_BOX_IMPLEMENTATION(TransformWidget2_tool,bbtk::AtomicBlackBox);
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+void TransformWidget2_tool::Process()
+{
+
+// THE MAIN PROCESSING METHOD BODY
+// Here we simply set the input 'In' value to the output 'Out'
+// And print out the output value
+// INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
+// void bbSet{Input|Output}NAME(const TYPE&)
+// const TYPE& bbGet{Input|Output}NAME() const
+// Where :
+// * NAME is the name of the input/output
+// (the one provided in the attribute 'name' of the tag 'input')
+// * TYPE is the C++ type of the input/output
+// (the one provided in the attribute 'type' of the tag 'input')
+// bbSetOutputOut( bbGetInputIn() );
+// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
+
+ if (bbGetInputType()==1)
+ {
+ if (bbGetInputParam01().size()==1)
+ {
+ bbGetInputBox_TransformWidget2()->Save( bbGetInputParam01()[0] );
+ }
+ } // Type 1 Save
+ if (bbGetInputType()==2)
+ {
+ if (bbGetInputParam01().size()==1)
+ {
+ bbGetInputBox_TransformWidget2()->Load( bbGetInputParam01()[0] );
+ }
+ } // Type 2 Load
+
+}
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+void TransformWidget2_tool::bbUserSetDefaultValues()
+{
+
+// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
+// Here we initialize the input 'In' to 0
+ bbSetInputType(0);
+
+}
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+void TransformWidget2_tool::bbUserInitializeProcessing()
+{
+
+// THE INITIALIZATION METHOD BODY :
+// Here does nothing
+// but this is where you should allocate the internal/output pointers
+// if any
+
+
+}
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+void TransformWidget2_tool::bbUserFinalizeProcessing()
+{
+
+// THE FINALIZATION METHOD BODY :
+// Here does nothing
+// but this is where you should desallocate the internal/output pointers
+// if any
+
+}
+}
+// EO namespace bbcreaMaracasVisu
+
+
--- /dev/null
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+#ifndef __bbcreaMaracasVisuTransformWidget2_tool_h_INCLUDED__
+#define __bbcreaMaracasVisuTransformWidget2_tool_h_INCLUDED__
+
+#include "bbcreaMaracasVisu_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+#include "bbcreaMaracasVisuTransformWidget2.h"
+
+
+namespace bbcreaMaracasVisu
+{
+
+class bbcreaMaracasVisu_EXPORT TransformWidget2_tool
+ :
+ public bbtk::AtomicBlackBox
+{
+ BBTK_BLACK_BOX_INTERFACE(TransformWidget2_tool,bbtk::AtomicBlackBox);
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+ BBTK_DECLARE_INPUT(Type,int);
+ BBTK_DECLARE_INPUT(Param01,std::vector<std::string>);
+ BBTK_DECLARE_INPUT(Box_TransformWidget2,TransformWidget2*);
+// BBTK_DECLARE_OUTPUT(Out,double);
+ BBTK_PROCESS(Process);
+ void Process();
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(TransformWidget2_tool,bbtk::AtomicBlackBox);
+ BBTK_NAME("TransformWidget2_tool");
+ BBTK_AUTHOR("InfoDev");
+ BBTK_DESCRIPTION("No Description.");
+ BBTK_CATEGORY("empty");
+ BBTK_INPUT(TransformWidget2_tool,Type,"(default 0) 0:Nothing 1:Save file configuration 2:Load file configuration",int,"");
+ BBTK_INPUT(TransformWidget2_tool,Param01,"1:[FileName_save] 2:[FileName_load]",std::vector<std::string>,"");
+ BBTK_INPUT(TransformWidget2_tool,Box_TransformWidget2,"bbtk Box TransformWidget2",TransformWidget2*,"");
+// BBTK_OUTPUT(TransformWidget2_tool,Out,"First output",double,"");
+BBTK_END_DESCRIBE_BLACK_BOX(TransformWidget2_tool);
+//=====
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//=====
+}
+// EO namespace bbcreaMaracasVisu
+
+#endif // __bbcreaMaracasVisuTransformWidget2_tool_h_INCLUDED__
+
if (mwxwidget!=NULL)
{
mwxwidget -> setRepresentedValues( bbGetInputInMin(), bbGetInputInMax() );
- if (firsttime==true)
- {
- firsttime=false;
+// if (firsttime==true)
+// {
+// firsttime=false;
mwxwidget -> SetStart(bbGetInputInMinShow());
- mwxwidget -> SetEnd(bbGetInputInMaxShow());
- }
+ mwxwidget -> SetEnd(bbGetInputInMaxShow());
+// }
+
bbSetOutputOutStart(mwxwidget->GetStart());
bbSetOutputOutEnd(mwxwidget->GetEnd());
bbSetOutputOutActual(mwxwidget->GetActual());