From: Eduardo Davila Date: Wed, 14 Nov 2012 07:38:00 +0000 (+0000) Subject: Feature #1759 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=119d55be4c9d3d25ad2f2fdd55983208d45c60ae;p=creaMaracasVisu.git Feature #1759 Add example viewerNV WindowLevelColor --- diff --git a/bbtk/bbs/appli/exampleViewerNV_WindowLevelColor.bbg b/bbtk/bbs/appli/exampleViewerNV_WindowLevelColor.bbg new file mode 100644 index 0000000..526c986 --- /dev/null +++ b/bbtk/bbs/appli/exampleViewerNV_WindowLevelColor.bbg @@ -0,0 +1,104 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All5/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleViewerNV_WindowLevelColor.bbg +# ---------------------------------- + +APP_START +CATEGORY:example +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:7 +BOX +vtk:LoadHola:Box00 +ISEXEC:FALSE +-88.335890:64.547800:-900.000000 +-42.760890:54.547800:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +-60.791786:-47.297957:-900.000000 +-0.151786:-57.297957:-900.000000 +FIN_BOX +BOX +wx:Slider:Box02 +ISEXEC:FALSE +9.598703:49.801967:-900.000000 +60.998703:39.801967:-900.000000 +PORT +In:"1000" +PORT +Max:"5000" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +wx:Slider:Box03 +ISEXEC:FALSE +-48.828185:48.410850:-900.000000 +2.571815:38.410850:-900.000000 +PORT +In:"1000" +PORT +Max:"5000" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +wx:LayoutLine:Box04 +ISEXEC:FALSE +13.215606:7.512028:-900.000000 +70.775606:-2.487972:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box05 +ISEXEC:TRUE +-17.667178:-78.737187:-900.000000 +27.907822:-88.737187:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +std:MultipleInputs:Box06 +ISEXEC:FALSE +-69.416707:6.955582:-900.000000 +-23.841707:-3.044418:-900.000000 +FIN_BOX +CONNECTIONS:10 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:2 +-82.493202:6.677359:-900.000000 +-49.941078:-24.483648:-900.000000 +CONNECTION +Box03:Out:Box01:WindowLevel +NumberOfControlPoints:2 +-39.090370:28.656998:-900.000000 +-17.388954:15.580503:-900.000000 +CONNECTION +Box02:Out:Box01:ColorLevel +NumberOfControlPoints:0 +CONNECTION +Box03:Widget:Box04:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box05:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box04:Widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box02:BoxChange:Box06:In1 +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box06:In2 +NumberOfControlPoints:0 +CONNECTION +Box06:BoxChange:Box01:BoxExecute +NumberOfControlPoints:0 +APP_END diff --git a/bbtk/bbs/appli/exampleViewerNV_WindowLevelColor.bbs b/bbtk/bbs/appli/exampleViewerNV_WindowLevelColor.bbs new file mode 100644 index 0000000..7034308 --- /dev/null +++ b/bbtk/bbs/appli/exampleViewerNV_WindowLevelColor.bbs @@ -0,0 +1,65 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/Creatis/All5/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleViewerNV_WindowLevelColor.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include creaMaracasVisu +include wx +include std + +author "Author ??" +description "Description ??" +category "example" + +new LoadHola Box00 + +new ViewerNV Box01 + +new Slider Box02 + set Box02.In "1000" + set Box02.Max "5000" + set Box02.ReactiveOnTrack "true" + +new Slider Box03 + set Box03.In "1000" + set Box03.Max "5000" + set Box03.ReactiveOnTrack "true" + +new LayoutLine Box04 + +new LayoutSplit Box05 + set Box05.Orientation "H" + +new MultipleInputs Box06 + + +connect Box00.Out Box01.In + +connect Box03.Out Box01.WindowLevel + +connect Box02.Out Box01.ColorLevel + +connect Box03.Widget Box04.Widget1 + +connect Box02.Widget Box04.Widget2 + +connect Box01.Widget Box05.Widget1 + +connect Box04.Widget Box05.Widget2 + +connect Box02.BoxChange Box06.In1 + +connect Box03.BoxChange Box06.In2 + +connect Box06.BoxChange Box01.BoxExecute + + + +# Complex input ports +exec Box05