From: perez Date: Tue, 8 Dec 2009 13:27:55 +0000 (+0000) Subject: bbScript for RenderingViewer added X-Git-Tag: CREATOOLS.2-0-3~90 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=df95b417638625cb8c30a51fb2511e44aa62b6ef;p=creaMaracasVisu.git bbScript for RenderingViewer added --- diff --git a/bbtk/bbs/appli/ExampleRenderingViewer.bbs b/bbtk/bbs/appli/ExampleRenderingViewer.bbs new file mode 100644 index 0000000..d685fbd --- /dev/null +++ b/bbtk/bbs/appli/ExampleRenderingViewer.bbs @@ -0,0 +1,37 @@ +load vtk +load wxvtk +load creaMaracasVisu +load std +load wx + +// To set a predeterminated input image uncomment next lines: +#new FileSelector filselect0 +# set filselect0.Message "Select image" +# set filselect0.Wildcard "*.mhd" +# set filselect0.DefaultDir "C:\Creatis\creaAppli\Data\Images" +#new MetaImageReader gimm +# connect filselect0.Out gimm.In +#new ImageCastToUShort image +# connect gimm.Out image.In + +new RenderingViewer volrend + +// Change default Viewer: +new ViewerNV view + set view.nTypeView 7 + connect view.wxVtkBaseView1 volrend.wxVtkBaseView + #connect gimm.Out view.In +#new Viewer3D view + + +new LayoutSplit layoutline1 + set layoutline1.Orientation H + connect volrend.Widget layoutline1.Widget1 + connect view.Widget layoutline1.Widget2 + +exec layoutline1 + +// For ViewerNV set view.Render1, for Viewer3D set view.Render +connect view.Renderer1 volrend.Renderer +#connect view.Renderer volrend.Renderer +exec volrend \ No newline at end of file