# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script # - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleCutter.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include creaVtk include vtk include creaMaracasVisu include wx author "Author ??" description "Description ??" category "" new creaVtk:Cutter Box00 new vtk:SphereSource Box01 set Box01.CenterX "0" set Box01.CenterY "0" set Box01.CenterZ "0" set Box01.PhiResolution "15" set Box01.Radius "40" set Box01.ThetaResolution "15" new creaMaracasVisu:ViewerNV Box02 set Box02.nTypeView "7" new vtk:PolyDataToActor Box04 set Box04.Colour "1 0 0" set Box04.LineWidth "2" set Box04.Opacity "1" set Box04.Representation "1" new wx:LayoutSplit Box05 set Box05.Orientation "H" new vtk:PolyDataToActor Box09 set Box09.Opacity "0.2" set Box09.Representation "2" new vtk:UpdateRender Box13 set Box13.Active "true" new wx:CommandButton Box15 set Box15.Label "Refresh" new creaVtk:Plane Box10 set Box10.Normal "0 0 1" set Box10.Origin "0 0 30" new vtk:LoadHola Box11 connect Box00.Out Box04.In connect Box02.Renderer1 Box04.Renderer connect Box02.Widget Box05.Widget2 connect Box02.Renderer1 Box09.Renderer connect Box02.Renderer1 Box13.Renderer connect Box15.BoxChange Box04.BoxExecute connect Box04.BoxChange Box09.BoxExecute connect Box09.BoxChange Box13.BoxExecute connect Box01.Out Box00.In connect Box01.Out Box09.In connect Box15.Widget Box05.Widget1 connect Box10.Out Box00.ImplicitFunction connect Box11.Out Box02.In # Complex input ports exec Box05