From: Eduardo Davila Date: Wed, 1 Jun 2011 06:22:39 +0000 (+0000) Subject: no message X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=72cd17feceb6c0cfefb6d42d298ad2a22b0c3d09;p=bbtk.git no message --- diff --git a/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbg b/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbg new file mode 100644 index 0000000..2b9c820 --- /dev/null +++ b/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbg @@ -0,0 +1,205 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All3/creatools_source/bbtk/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbg +# ---------------------------------- + +APP_START +CATEGORY:image;mesh;widget;viewer +DESCRIPTION:Image iso-surface extractor (vtk +AUTHOR:laurent.guigues@creatis.insa-lyon.fr +COMPLEXBOX:TRUE +COMPLEXBOXNAME:IsoSurfaceWidget +PACKAGENAME:wxvtk +COMPLEXINPUTS:8 +COMPLEX_PORT +Title +269.713920:108.970260:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +In +-37.343740:114.308545:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Opacity +95.735038:118.363406:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Isovalue +4.347463:114.949730:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Colour +147.814907:117.940519:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +BoxExecute +230.326575:112.814205:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Vertical +244.742921:108.328020:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +vtkRenderer +63.230501:116.504290:900.000000 +FIN_COMPLEX_PORT +COMPLEXOUTPUTS:3 +COMPLEX_PORT +Out +123.419879:-163.996877:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +BoxChange +163.638864:-162.837195:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Widget +200.292101:-163.464554:900.000000 +FIN_COMPLEX_PORT +BOXES:9 +BOX +wx:LayoutLine:controls +ISEXEC:FALSE +250.542332:-104.126603:900.000000 +308.102332:-114.126603:900.000000 +PORT +Orientation:"HORIZONTAL" +FIN_BOX +BOX +wx:LayoutLine:sliders +ISEXEC:FALSE +182.583206:-67.170661:900.000000 +240.143206:-77.170661:900.000000 +FIN_BOX +BOX +vtk:IsoSurfaceExtractor:surface +ISEXEC:FALSE +18.126928:-122.910193:900.000000 +89.301928:-132.910193:900.000000 +FIN_BOX +BOX +wx:Slider:isovalue +ISEXEC:FALSE +-7.898242:76.039566:900.000000 +43.501758:66.039566:900.000000 +PORT +Max:5000 +PORT +Title:"Isovalue" +FIN_BOX +BOX +wx:Slider:opacity +ISEXEC:FALSE +76.865190:77.834104:900.000000 +128.265190:67.834104:900.000000 +PORT +In:"100" +PORT +Max:"100" +PORT +Min:"0" +PORT +Title:"Opacity" +FIN_BOX +BOX +wx:LayoutLine:colourFrame +ISEXEC:FALSE +207.052627:1.971466:900.000000 +264.612627:-8.028534:900.000000 +PORT +WinTitle:"Colour" +FIN_BOX +BOX +wx:ColourSelectorButton:colour +ISEXEC:FALSE +138.214333:79.325623:900.000000 +209.389333:69.325623:900.000000 +FIN_BOX +BOX +std:MultipleInputs:refresh +ISEXEC:FALSE +145.174698:-86.754201:900.000000 +190.749698:-96.754201:900.000000 +FIN_BOX +BOX +std:Div:div +ISEXEC:FALSE +14.827619:4.428984:900.000000 +47.602619:-5.571016:900.000000 +PORT +In2:"100" +FIN_BOX +CONNECTIONS:24 +CONNECTION +sliders:Widget:controls:Widget1 +NumberOfControlPoints:0 +CONNECTION +colourFrame:Widget:controls:Widget2 +NumberOfControlPoints:0 +CONNECTION +colour:Widget:colourFrame:Widget1 +NumberOfControlPoints:0 +CONNECTION +isovalue:Widget:sliders:Widget1 +NumberOfControlPoints:0 +CONNECTION +opacity:Widget:sliders:Widget2 +NumberOfControlPoints:0 +CONNECTION +isovalue:Out:surface:Isovalue +NumberOfControlPoints:0 +CONNECTION +opacity:Out:div:In1 +NumberOfControlPoints:0 +CONNECTION +div:Out:surface:Opacity +NumberOfControlPoints:0 +CONNECTION +colour:Out:surface:Colour +NumberOfControlPoints:0 +CONNECTION +isovalue:BoxChange:refresh:In1 +NumberOfControlPoints:0 +CONNECTION +opacity:BoxChange:refresh:In2 +NumberOfControlPoints:0 +CONNECTION +colour:BoxChange:refresh:In3 +NumberOfControlPoints:0 +CONNECTION +Title:Title:controls:WinTitle +NumberOfControlPoints:0 +CONNECTION +In:In:surface:In +NumberOfControlPoints:0 +CONNECTION +Opacity:Opacity:opacity:In +NumberOfControlPoints:0 +CONNECTION +Isovalue:Isovalue:isovalue:In +NumberOfControlPoints:0 +CONNECTION +Colour:Colour:colour:In +NumberOfControlPoints:0 +CONNECTION +Vertical:Vertical:controls:Orientation +NumberOfControlPoints:0 +CONNECTION +surface:Out:Out:Out +NumberOfControlPoints:0 +CONNECTION +refresh:Out:BoxChange:BoxChange +NumberOfControlPoints:0 +CONNECTION +controls:Widget:Widget:Widget +NumberOfControlPoints:0 +CONNECTION +BoxExecute:BoxExecute:refresh:In4 +NumberOfControlPoints:0 +CONNECTION +refresh:Out:surface:BoxExecute +NumberOfControlPoints:0 +CONNECTION +vtkRenderer:vtkRenderer:surface:Renderer +NumberOfControlPoints:0 +APP_END diff --git a/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs b/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs index f7f1862..6fddd51 100644 --- a/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs +++ b/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs @@ -1,65 +1,77 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All3/creatools_source/bbtk/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs +# ---------------------------------- + +include std +include itkvtk include wx include vtk include std -include wxvtk define IsoSurfaceWidget wxvtk - author "laurent.guigues@creatis.insa-lyon.fr" - description "Image iso-surface extractor (vtk::IsoSurfaceExtractor) with associated control panel (isovalue, opacity and colour)" - category "image;mesh;widget;viewer" - - new LayoutLine controls - new LayoutLine sliders - new IsoSurfaceExtractor surface - new Slider isovalue - new Slider opacity - new LayoutLine colourFrame - new ColourSelectorButton colour - new MultipleInputs refresh - new Div div - - connect sliders.Widget controls.Widget1 - connect colourFrame.Widget controls.Widget2 - - connect colour.Widget colourFrame.Widget1 - connect isovalue.Widget sliders.Widget1 - connect opacity.Widget sliders.Widget2 - - connect isovalue.Out surface.Isovalue - connect opacity.Out div.In1 - set div.In2 100 - connect div.Out surface.Opacity - connect colour.Out surface.Colour - - connect isovalue.BoxChange refresh.In1 - connect opacity.BoxChange refresh.In2 - connect colour.BoxChange refresh.In3 - -# connect colourButton.BoxChange colour.BoxExecute - set colourFrame.WinTitle "Colour" - set controls.Orientation HORIZONTAL +author "laurent.guigues@creatis.insa-lyon.fr" +description "Image iso-surface extractor (vtk" + +category "image;mesh;widget;viewer" + +new LayoutLine controls + set controls.Orientation "HORIZONTAL" + +new LayoutLine sliders + +new IsoSurfaceExtractor surface + +new Slider isovalue + set isovalue.Max 5000 set isovalue.Title "Isovalue" + +new Slider opacity + set opacity.In "100" + set opacity.Max "100" + set opacity.Min "0" set opacity.Title "Opacity" - set opacity.Min 0 - set opacity.Max 100 - set opacity.In 100 - -# set colourButton.Label "Colour" - input Title controls.WinTitle "Title of the control panel" - input In surface.In "Input image" +new LayoutLine colourFrame + set colourFrame.WinTitle "Colour" + +new ColourSelectorButton colour + +new MultipleInputs refresh + +new Div div + set div.In2 "100" + - input Opacity opacity.In "Initial opacity" - input Isovalue isovalue.In "Initial isovalue" - input Colour colour.In "Initial colour" +connect sliders.Widget controls.Widget1 +connect colourFrame.Widget controls.Widget2 +connect colour.Widget colourFrame.Widget1 +connect isovalue.Widget sliders.Widget1 +connect opacity.Widget sliders.Widget2 +connect isovalue.Out surface.Isovalue +connect opacity.Out div.In1 +connect div.Out surface.Opacity +connect colour.Out surface.Colour +connect isovalue.BoxChange refresh.In1 +connect opacity.BoxChange refresh.In2 +connect colour.BoxChange refresh.In3 +connect refresh.Out surface.BoxExecute - input BoxExecute surface.BoxExecute "Box execution" - input Vertical controls.Orientation "Set to 1 to have controls arranged vertically" +# Complex input ports +input Title controls.WinTitle " " +input In surface.In " " +input Opacity opacity.In " " +input Isovalue isovalue.In " " +input Colour colour.In " " +input Vertical controls.Orientation " " +input BoxExecute refresh.In4 " " +input vtkRenderer surface.Renderer " " - output Out surface.Out "Output surface" - output BoxChange refresh.Out "BoxChange" - output Widget controls.Widget "Widget" +# Complex output ports +output Out surface.Out " " +output BoxChange refresh.Out " " +output Widget controls.Widget " " endefine diff --git a/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs_OLD b/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs_OLD new file mode 100644 index 0000000..f7f1862 --- /dev/null +++ b/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs_OLD @@ -0,0 +1,65 @@ +include wx +include vtk +include std +include wxvtk + +define IsoSurfaceWidget wxvtk + author "laurent.guigues@creatis.insa-lyon.fr" + description "Image iso-surface extractor (vtk::IsoSurfaceExtractor) with associated control panel (isovalue, opacity and colour)" + category "image;mesh;widget;viewer" + + new LayoutLine controls + new LayoutLine sliders + new IsoSurfaceExtractor surface + new Slider isovalue + new Slider opacity + new LayoutLine colourFrame + new ColourSelectorButton colour + new MultipleInputs refresh + new Div div + + connect sliders.Widget controls.Widget1 + connect colourFrame.Widget controls.Widget2 + + connect colour.Widget colourFrame.Widget1 + connect isovalue.Widget sliders.Widget1 + connect opacity.Widget sliders.Widget2 + + connect isovalue.Out surface.Isovalue + connect opacity.Out div.In1 + set div.In2 100 + connect div.Out surface.Opacity + connect colour.Out surface.Colour + + connect isovalue.BoxChange refresh.In1 + connect opacity.BoxChange refresh.In2 + connect colour.BoxChange refresh.In3 + +# connect colourButton.BoxChange colour.BoxExecute + + set colourFrame.WinTitle "Colour" + set controls.Orientation HORIZONTAL + set isovalue.Title "Isovalue" + set opacity.Title "Opacity" + set opacity.Min 0 + set opacity.Max 100 + set opacity.In 100 + +# set colourButton.Label "Colour" + + input Title controls.WinTitle "Title of the control panel" + input In surface.In "Input image" + + input Opacity opacity.In "Initial opacity" + input Isovalue isovalue.In "Initial isovalue" + input Colour colour.In "Initial colour" + + input BoxExecute surface.BoxExecute "Box execution" + + input Vertical controls.Orientation "Set to 1 to have controls arranged vertically" + + output Out surface.Out "Output surface" + output BoxChange refresh.Out "BoxChange" + output Widget controls.Widget "Widget" + +endefine