1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/FreePlane.bbs
4 # ----------------------------------
10 include creaMaracasVisu
14 define FreePlane creaMaracasVisu
17 description "Description ??"
21 new vtk:ImageVtkProperties Box00
23 new wx:LayoutLine Box01
24 set Box01.Orientation "V"
25 set Box01.WinTitle "Free plane"
27 new creaMaracasVisu:SliceImage Box02
28 set Box02.InterpolationMode "1"
30 set Box02.TypeOrientation "3"
33 new creaVtk:TransformVector Box03
38 new creaMaracasVisu:ImageActor Box04
39 set Box04.InterpolationMode "1"
42 new vtk:Transform Box06
44 new creaVtk:ConcatTransform Box07
46 new std:ConcatStrings Box08
48 new std:ConcatStrings Box09
52 new creaVtk:ScalarsToColors Box10
53 set Box10.BelowAboveRangeTransparence "false"
56 new vtk:vtkImageDataPointerRelay Box11
58 new std:MagicBox Box12
60 new creaMaracasVisu:wxVtkBaseView_Info Box13
61 set Box13.InteractionType "12"
64 set Box14.Title "Pivot plane"
66 new creaMaracasVisu:DrawAxisTree3D Box15
67 set Box15.Colour "1 0 0 1 1 0 0 0 1"
68 set Box15.ColourLaw "2"
69 set Box15.LineWidth "2"
70 set Box15.lstIndexs "2 2 2"
71 set Box15.lstPointX "0 20 0 0 0 0"
72 set Box15.lstPointY "0 0 0 80 0 0"
73 set Box15.lstPointZ "0 0 0 0 0 20"
75 new creaMaracasVisu:TransformWidget2 Box16
78 new std:MathOperationVector Box17
81 new vtk:UpdateRender Box19
82 set Box19.Active "true"
84 new std:MultipleInputs Box20
87 connect Box02.Out Box04.In
88 connect Box08.Out Box02.AxisOrigin
89 connect Box06.Out Box07.In3
90 connect Box07.Out Box04.Transform
91 connect Box03.OutX Box09.In1
92 connect Box03.OutY Box09.In3
93 connect Box03.OutZ Box09.In5
94 connect Box09.Out Box02.ResliceAxesDirectionCosines
95 connect Box10.LookupTable Box04.LookupTable
96 connect Box11.Out Box02.In
97 connect Box11.Out Box00.In
98 connect Box12.Out Box04.Renderer
99 connect Box13.WindowColorLevel Box10.WindowColorLevel
100 connect Box13.BoxChange Box10.BoxExecute
101 connect Box07.Out Box15.Transform
102 connect Box12.Out Box15.Renderer
103 connect Box16.Out Box03.Transform
104 connect Box16.Out Box07.In1
105 connect Box16.Widget Box01.Widget2
106 connect Box08.Out Box17.In0
107 connect Box00.Spacing Box17.In1
108 connect Box17.Out Box06.Translate
109 connect Box16.ActualPoint Box08.In1
110 connect Box14.Out Box15.Active
111 connect Box16.BoxChange Box15.BoxExecute
112 connect Box13.Image Box11.In
113 connect Box14.Out Box04.Active
114 connect Box12.Out Box19.Renderer
115 connect Box14.Widget Box01.Widget1
116 connect Box04.BoxChange Box20.In1
117 connect Box15.BoxChange Box20.In2
118 connect Box20.BoxChange Box19.BoxExecute
119 connect Box14.BoxChange Box20.In4
120 connect Box14.Out Box19.Active
122 # Complex input ports
123 input possiblePoint Box16.PossiblePoint " "
124 input wxvtkbaseview1 Box13.wxVtkBaseView " "
125 input wxvtkbaseview2 Box13.wxVtkBaseView2 " "
126 input render Box12.In " "
127 input wxvtkbaseview3 Box13.wxVtkBaseView3 " "
129 # Complex output ports
130 output widgetOut Box01.Widget " "