]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/appli/ExampleShowNPoints.bbs
*** empty log message ***
[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 new FileSelector openFileDialog
27   set openFileDialog.Wildcard  "(*.mhd)|*.mhd"
28 new MetaImageReader reader
29    connect openFileDialog.Out reader.In
30
31 # uncomment next lines to use Gimmick
32 # -----------------------------------
33 /*
34 load creaImageIO
35 new Gimmick reader
36 */
37
38 new ViewerNV viewer
39   connect reader.Out viewer.In
40   set viewer.nTypeView "5 1 2 0"
41
42 new ShowNPoints showNpoints
43   connect reader.Out showNpoints.Image
44   connect viewer.Renderer1 showNpoints.Renderer
45   connect viewer.Point showNpoints.In
46   connect viewer.BoxChange showNpoints.BoxExecute
47   set showNpoints.Radio 10
48
49 new LayoutSplit main
50    set main.Orientation H
51    connect showNpoints.Widget main.Widget1
52    connect viewer.Widget main.Widget2
53
54 exec main
55