]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/boxes/SetPositionPointPicker.bbs
5a0a5935a7f37c45c6acdd08ad14803319707fca
[creaMaracasVisu.git] / bbtk / bbs / boxes / SetPositionPointPicker.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/C22/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/SetPositionPointPicker.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include vtk
9 include creaVtk
10 include std
11 include creaMaracasVisu
12
13 define SetPositionPointPicker creaMaracasVisu
14
15 author "info-dev@creatis.insa-lyon.fr"
16 description "Show N Points"
17
18 category "demo"
19
20 new vtk:ImageVtkProperties Box24
21
22 new creaVtk:PointPicker Box47
23   set Box47.TypeEvent "2"
24
25 new std:MathOperationVector Box48
26   set Box48.Type "3"
27
28 new std:MathOperationVector Box49
29   set Box49.Type "23"
30
31 new creaMaracasVisu:SetPosition Box50
32   set Box50.FixAxis2D "true"
33
34 new creaMaracasVisu:SetPosition Box32
35   set Box32.FixAxis2D "false"
36
37 new std:MagicBox Box100
38
39
40 connect Box47.Point Box48.In0
41 connect Box24.Spacing Box48.In1
42 connect Box48.Out Box49.In0
43 connect Box49.Out Box50.Point
44 connect Box47.BoxChange Box50.BoxExecute
45 connect Box100.Out Box50.wxVtkBaseView
46
47 # Complex input ports
48 input render Box47.Renderer " "
49 input image Box24.In " "
50 input wxvtkbaseview Box100.In " "
51 input vtkprop3D Box47.Prop3D " "
52
53 # Complex output ports
54 output boxchange Box47.BoxChange " "
55 output pointid Box47.PointId " "
56 output normal Box47.Normal " "
57 output PositionWorld Box47.Point " "
58 output PositionImage Box49.Out " "
59
60
61 endefine