1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/corredor/Software/CreaTools/All_Dec2012/creatools_source/bbtk/packages/vtk/bbs/appli/exampleMeasureLength.bbs
4 # ----------------------------------
7 # ----------------------
11 include 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 set Box00.WinTitle "Points Widget"
21 set Box00.WinWidth "200"
24 set Box02.WinTitle "Image Viewer"
26 new CommandButton Box03
27 set Box03.Label "Evaluate length..."
28 set Box03.WinHeight "200"
29 set Box03.WinTitle "Measure Length"
30 set Box03.WinWidth "200"
32 new MeasureLength Box04
34 new PointsXYZtoVTKPoints Box05
38 new MetaImageReader Box07
40 new FileSelector Box08
41 set Box08.Message "Select an image ..."
42 set Box08.Title "Select an image ..."
45 connect Box02.Renderer1 Box00.Renderer
47 connect Box02.Point Box00.In
49 connect Box02.BoxChange Box00.BoxExecute
51 connect Box00.lstPointsX Box05.LstPointsX
53 connect Box00.lstPointsY Box05.LstPointsY
55 connect Box00.lstPointsZ Box05.LstPointsZ
57 connect Box05.Points Box04.Points
59 connect Box03.BoxChange Box06.BoxExecute
61 connect Box04.Length Box06.In
63 connect Box07.Out Box02.In
65 connect Box07.Out Box04.ImageData
67 connect Box07.Out Box00.Image
69 connect Box08.Out Box07.In