]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/appli/exampleShowNPoints.bbs
e353a3f38a732cdf57a1b7e59e8746cf029b7fb9
[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 # Here loads hola.mhd
18 # -------------------------
19 /*
20 include vtk/boxes/bbLoadHola
21 new LoadHola reader
22 */
23
24 # uncomment next lines to have a file selector
25 # ---------------------------------------------
26 /*
27 new FileSelector openFileDialog
28   set openFileDialog.Wildcard  "(*.mhd)|*.mhd"
29 new MetaImageReader reader
30    connect openFileDialog.Out reader.In
31 */
32
33 # uncomment next lines to use Gimmick
34 # -----------------------------------
35
36 load creaImageIO
37 new Gimmick reader
38
39
40 new ViewerNV viewer
41   connect reader.Out viewer.In
42   set viewer.nTypeView "5 1 2 0"
43
44 new ShowNPoints showNpoints
45   connect reader.Out showNpoints.Image
46   connect viewer.Renderer1 showNpoints.Renderer
47   connect viewer.Point showNpoints.In
48   connect viewer.BoxChange showNpoints.BoxExecute
49   set showNpoints.Radio 10
50
51 new LayoutSplit main
52    set main.Orientation H
53    connect showNpoints.Widget main.Widget1
54    connect viewer.Widget main.Widget2
55
56 exec main
57