# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script # - /home/corredor/Software/CreaTools/All_Dec2012/creatools_source/bbtk/packages/vtk/bbs/appli/exampleMeasureLength.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include creaMaracasVisu include wx include vtk author "Ricardo A Corredor" 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. " category "example" new ShowNPoints Box00 set Box00.WinTitle "Points Widget" set Box00.WinWidth "200" new ViewerNV Box02 set Box02.WinTitle "Image Viewer" new CommandButton Box03 set Box03.Label "Evaluate length..." set Box03.WinHeight "200" set Box03.WinTitle "Measure Length" set Box03.WinWidth "200" new MeasureLength Box04 new PointsXYZtoVTKPoints Box05 new OutputText Box06 new MetaImageReader Box07 new FileSelector Box08 set Box08.Message "Select an image ..." set Box08.Title "Select an image ..." connect Box02.Renderer1 Box00.Renderer connect Box02.Point Box00.In connect Box02.BoxChange Box00.BoxExecute connect Box00.lstPointsX Box05.LstPointsX connect Box00.lstPointsY Box05.LstPointsY connect Box00.lstPointsZ Box05.LstPointsZ connect Box05.Points Box04.Points connect Box03.BoxChange Box06.BoxExecute connect Box04.Length Box06.In connect Box07.Out Box02.In connect Box07.Out Box04.ImageData connect Box07.Out Box00.Image connect Box08.Out Box07.In # Complex input ports exec Box00 exec Box02 exec Box03