1 description "Show N Points"
2 author "info-dev@creatis.insa-lyon.fr"
5 // To show how easy it is to add smthing
6 // =====================================
19 # Use new box (choose the way you want to select images)
20 # -----------------------------------------------------
23 #new ImageReader chooser
25 # Concatenate all the supposed-to-be consistent 2D images into a single vtkImageData
26 # WARNING : File names alphabetical order is suposed to be meaningful ...
28 #new ConcatImages reader
29 # connect chooser.Out reader.In
34 # -------------------------
36 include vtk/boxes/bbLoadHola
39 # uncomment next lines to have a file selector
40 # ---------------------------------------------
42 new FileSelector openFileDialog
43 set openFileDialog.Wildcard "(*.mhd)|*.mhd"
44 new MetaImageReader reader
45 connect openFileDialog.Out reader.In
48 # uncomment next lines to use Gimmick
49 # -----------------------------------
56 connect reader.Out viewer.In
57 set viewer.nTypeView "5 1 2 0"
59 new ShowNPoints showNpoints
60 connect reader.Out showNpoints.Image
61 connect viewer.Renderer1 showNpoints.Renderer
62 connect viewer.Point showNpoints.In
63 connect viewer.BoxChange showNpoints.BoxExecute
64 set showNpoints.Radio 10
67 set main.Orientation H
68 connect showNpoints.Widget main.Widget1
69 connect viewer.Widget main.Widget2