]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/appli/exampleShowNPoints.bbs
Now LoadHola is called a 'reader' everywhere, not an 'image'
[creaMaracasVisu.git] / bbtk / bbs / appli / exampleShowNPoints.bbs
1 description "Show N Points"
2 author "info-dev@creatis.insa-lyon.fr"
3 category "demo"
4
5 // To show how easy it is to add smthing
6 // =====================================
7
8 load vtk
9 include wxvtk
10 load std
11 load itk
12 include vtk
13 include wx
14 load itkvtk
15 load creaMaracasVisu
16
17
18
19 # Use new box (choose the way you want to select images)
20 # -----------------------------------------------------
21 load creaImageIO
22 new ImagesReader chooser
23
24 # Concatenate all the supposed-to-be consistent 2D images into a single vtkImageData
25 # WARNING : File names alphabetical order is suposed to be meaningful ...
26
27 new ConcatImages reader
28    connect chooser.Out reader.In
29
30
31
32 # Here loads hola.mhd
33 # -------------------------
34 /*
35 include vtk/boxes/bbLoadHola
36 new LoadHola reader
37 */
38
39 # uncomment next lines to have a file selector
40 # ---------------------------------------------
41 /*
42 new FileSelector openFileDialog
43   set openFileDialog.Wildcard  "(*.mhd)|*.mhd"
44 new MetaImageReader reader
45    connect openFileDialog.Out reader.In
46 */
47
48 # uncomment next lines to use Gimmick
49 # -----------------------------------
50 /*
51 load creaImageIO
52 new Gimmick reader
53 */
54
55 new ViewerNV viewer
56   connect reader.Out viewer.In
57   set viewer.nTypeView "5 1 2 0"
58
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
65
66 new LayoutSplit main
67    set main.Orientation H
68    connect showNpoints.Widget main.Widget1
69    connect viewer.Widget main.Widget2
70
71 exec main
72