1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/creaTools/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Measure3DLength_Widget.bbs
4 # ----------------------------------
10 include creaMaracasVisu
13 define Measure3DLength_Widget creaMaracasVisu
15 author "Ricardo A Corredor"
16 description "Evaluates the sum of the Euclidean distances among the points in the list following their order. Put some points in the image using the Points Widget and the click on Evaluate Length button. "
20 new vtkImageDataPointerRelay Box17
27 set Box32.Proportion "10"
37 new ImageVtkProperties Box38
41 new UpdateRender Box41
42 set Box41.Active "true"
44 new MeasureLength Box42
46 new PointsXYZtoVTKPoints Box43
49 connect Box17.Out Box31.Image
50 connect Box34.Widget Box35.Widget1
51 connect Box35.Widget Box32.Widget1
52 connect Box31.Widget Box32.Widget2
53 connect Box32.Widget Box33.Widget1
54 connect Box24.Out Box31.Renderer
55 connect Box31.lstPointsY Box36.lstPointY
56 connect Box31.lstPointsX Box36.lstPointX
57 connect Box24.Out Box36.Renderer
58 connect Box31.lstPointsZ Box36.lstPointZ
59 connect Box17.Out Box38.In
60 connect Box39.Out Box36.Transform
61 connect Box38.Spacing Box39.Scale
62 connect Box24.Out Box41.Renderer
63 connect Box31.BoxChange Box41.BoxExecute
64 connect Box42.Length Box34.In
65 connect Box43.Points Box42.Points
66 connect Box31.lstPointsX Box43.LstPointsX
67 connect Box31.lstPointsY Box43.LstPointsY
68 connect Box31.lstPointsZ Box43.LstPointsZ
69 connect Box31.BoxChange Box34.BoxExecute
70 connect Box17.Out Box42.ImageData
71 connect Box31.BoxChange Box36.BoxExecute
74 input vtkimagedata Box17.In " "
75 input vtkrender Box24.In " "
76 input point Box31.In " "
77 input boxexecute Box31.BoxExecute " "
79 # Complex output ports
80 output widget Box33.Widget " "